提交 39648be2 作者: 余乾开

Merge branch 'develop'

...@@ -5,3 +5,5 @@ metadata: ...@@ -5,3 +5,5 @@ metadata:
namespace: default namespace: default
data: data:
SPRING_PROFILES_ACTIVE: default SPRING_PROFILES_ACTIVE: default
SW_AGENT_COLLECTOR_BACKEND_SERVICES: "default-oap.skywalking-swck-system:11800"
SW_AGENT_NAME: payment
...@@ -14,6 +14,7 @@ spec: ...@@ -14,6 +14,7 @@ spec:
metadata: metadata:
labels: labels:
app: payment app: payment
swck-java-agent-injected: 'true'
spec: spec:
containers: containers:
- name: payment - name: payment
...@@ -21,6 +22,9 @@ spec: ...@@ -21,6 +22,9 @@ spec:
volumeMounts: volumeMounts:
- name: log-of-app - name: log-of-app
mountPath: /var/log/app mountPath: /var/log/app
- name: localtime
mountPath: /etc/localtime
readOnly: true
resources: resources:
limits: limits:
memory: 1024Mi memory: 1024Mi
...@@ -33,7 +37,20 @@ spec: ...@@ -33,7 +37,20 @@ spec:
configMapKeyRef: configMapKeyRef:
name: payment-map name: payment-map
key: SPRING_PROFILES_ACTIVE key: SPRING_PROFILES_ACTIVE
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
valueFrom:
configMapKeyRef:
name: payment-map
key: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- name: SW_AGENT_NAME
valueFrom:
configMapKeyRef:
name: payment-map
key: SW_AGENT_NAME
volumes: volumes:
- name: log-of-app - name: log-of-app
hostPath: hostPath:
path: /var/log/app path: /var/log/app
\ No newline at end of file - name: localtime
hostPath:
path: /etc/localtime
\ No newline at end of file
...@@ -14,4 +14,4 @@ patches: ...@@ -14,4 +14,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/payment newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/payment
newTag: 100991a5fb3e8db73695404a54af20b579da421f newTag: f5eadfeec3ddfc5625a89ed26a6e25ffd58ace2a
...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON; ...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature; import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.extern.slf4j.Slf4j;
import java.io.*; import java.io.*;
import java.util.List; import java.util.List;
...@@ -13,12 +14,13 @@ import java.util.List; ...@@ -13,12 +14,13 @@ import java.util.List;
* @Date 2023/5/23 19:31 * @Date 2023/5/23 19:31
* @Version 1.0 * @Version 1.0
*/ */
@Slf4j
public class JsonUtil { public class JsonUtil {
public static void main(String[] args) { public static void main(String[] args) {
String array = "[1,24,23]"; String array = "[1,24,23]";
List<Integer> list = JSONArray.parseArray(array, Integer.class); List<Integer> list = JSONArray.parseArray(array, Integer.class);
System.out.println(list.get(2)); log.info(String.valueOf(list.get(2)));
} }
/** /**
......
...@@ -30,6 +30,7 @@ import com.mmc.payment.model.vo.repo.RepoOrderPayVO; ...@@ -30,6 +30,7 @@ import com.mmc.payment.model.vo.repo.RepoOrderPayVO;
import com.mmc.payment.model.vo.wallet.WalletUsersVO; import com.mmc.payment.model.vo.wallet.WalletUsersVO;
import com.mmc.payment.service.RepoCashService; import com.mmc.payment.service.RepoCashService;
import io.jsonwebtoken.lang.Collections; import io.jsonwebtoken.lang.Collections;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate;
...@@ -52,6 +53,7 @@ import java.util.stream.Collectors; ...@@ -52,6 +53,7 @@ import java.util.stream.Collectors;
* @Author small @Date 2023/5/24 10:06 @Version 1.0 * @Author small @Date 2023/5/24 10:06 @Version 1.0
*/ */
@Service @Service
@Slf4j
public class RepoCashServiceImpl implements RepoCashService { public class RepoCashServiceImpl implements RepoCashService {
@Autowired @Autowired
...@@ -101,7 +103,7 @@ public class RepoCashServiceImpl implements RepoCashService { ...@@ -101,7 +103,7 @@ public class RepoCashServiceImpl implements RepoCashService {
t.setUserName(account.getUserName()); t.setUserName(account.getUserName());
} }
}); });
System.out.println(list); log.info(String.valueOf(list));
List<RepoCashDTO> data = List<RepoCashDTO> data =
list.stream() list.stream()
...@@ -494,7 +496,7 @@ public class RepoCashServiceImpl implements RepoCashService { ...@@ -494,7 +496,7 @@ public class RepoCashServiceImpl implements RepoCashService {
HttpEntity<MultiValueMap<String, Object>> formEntity = new HttpEntity<MultiValueMap<String, Object>>(headers); HttpEntity<MultiValueMap<String, Object>> formEntity = new HttpEntity<MultiValueMap<String, Object>>(headers);
ResponseEntity<String> exchange = restTemplate.exchange(omsUrl + "RentalOrders/orderStatusChanges?orderNo=" + orderNo + "&tranStatus=" + 200, ResponseEntity<String> exchange = restTemplate.exchange(omsUrl + "RentalOrders/orderStatusChanges?orderNo=" + orderNo + "&tranStatus=" + 200,
HttpMethod.GET, formEntity, String.class); HttpMethod.GET, formEntity, String.class);
System.out.println(exchange); log.info(String.valueOf(exchange));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论