提交修改
This commit is contained in:
parent
4ca324ac4e
commit
4f8517d71b
@ -90,8 +90,11 @@ public class ApiConstants {
|
|||||||
public static final String get = "get";
|
public static final String get = "get";
|
||||||
public static String NOT_SIGN_RECEIPT = "not_sign_receipt";
|
public static String NOT_SIGN_RECEIPT = "not_sign_receipt";
|
||||||
public static String SIGN_RECEIPT = "sign_receipt";
|
public static String SIGN_RECEIPT = "sign_receipt";
|
||||||
|
|
||||||
public static String SET_TOKEN = "setToken";
|
public static String SET_TOKEN = "setToken";
|
||||||
|
|
||||||
|
public static String SET_BUYER_NAME = "setBuyerName";
|
||||||
|
|
||||||
public static final String token_activity = "token_activity";
|
public static final String token_activity = "token_activity";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -84,8 +84,7 @@ public class VvTradeOrderConvertServiceImpl implements VvTradeOrderConvertServic
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int addOrderLineStatusLogList(List<Long> tradeOrderLineIdList,
|
public int addOrderLineStatusLogList(List<Long> tradeOrderLineIdList, Object status,
|
||||||
Object status,
|
|
||||||
Long changeStatusUserId,String changeStatusUser, String... reason) {
|
Long changeStatusUserId,String changeStatusUser, String... reason) {
|
||||||
for (Long tradeOrderLineId : tradeOrderLineIdList) {
|
for (Long tradeOrderLineId : tradeOrderLineIdList) {
|
||||||
addOrderLineStatusLog(tradeOrderLineId, status,changeStatusUserId, changeStatusUser, reason);
|
addOrderLineStatusLog(tradeOrderLineId, status,changeStatusUserId, changeStatusUser, reason);
|
||||||
@ -93,9 +92,9 @@ public class VvTradeOrderConvertServiceImpl implements VvTradeOrderConvertServic
|
|||||||
return tradeOrderLineIdList.size();
|
return tradeOrderLineIdList.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int addOrderLineStatusLog(Long tradeOrderLineId, Object status
|
public int addOrderLineStatusLog(Long tradeOrderLineId, Object status, Long changeStatusUserId, String changeStatusUser, String... reason) {
|
||||||
,Long changeStatusUserId,String changeStatusUser, String ... reason) {
|
|
||||||
VvTradeOrderLineStatusLogEntity entity = new VvTradeOrderLineStatusLogEntity();
|
VvTradeOrderLineStatusLogEntity entity = new VvTradeOrderLineStatusLogEntity();
|
||||||
entity.setTradeOrderLineId(tradeOrderLineId);
|
entity.setTradeOrderLineId(tradeOrderLineId);
|
||||||
if (status instanceof OrderStatusEnums) {
|
if (status instanceof OrderStatusEnums) {
|
||||||
@ -120,9 +119,6 @@ public class VvTradeOrderConvertServiceImpl implements VvTradeOrderConvertServic
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<AppPackageDTO> buildAppPackageDTO(List<VVOrderListResp> vvOrderListResps) {
|
public List<AppPackageDTO> buildAppPackageDTO(List<VVOrderListResp> vvOrderListResps) {
|
||||||
List<AppPackageDTO> appPackageDTOList = new ArrayList<>();
|
List<AppPackageDTO> appPackageDTOList = new ArrayList<>();
|
||||||
|
|||||||
@ -97,10 +97,8 @@ public class ZhenZhenLogAop {
|
|||||||
if (sig instanceof MethodSignature) {
|
if (sig instanceof MethodSignature) {
|
||||||
methodName = ((MethodSignature) sig).getMethod().getName();
|
methodName = ((MethodSignature) sig).getMethod().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
describe = AnnotationUtils.getAnnotationValueByMethod(method, "Describe", "value");
|
describe = AnnotationUtils.getAnnotationValueByMethod(method, "Describe", "value");
|
||||||
|
|
||||||
|
|
||||||
Class clazz = point.getTarget().getClass();
|
Class clazz = point.getTarget().getClass();
|
||||||
className = clazz.getName();
|
className = clazz.getName();
|
||||||
|
|
||||||
@ -122,19 +120,29 @@ public class ZhenZhenLogAop {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BuyerDTO buyerDTO = null;
|
||||||
if (StringUtils.isNotBlank(token)) {
|
if (StringUtils.isNotBlank(token)) {
|
||||||
Object tokenValue = redisUtils.get(token);
|
Object tokenValue = redisUtils.get(token);
|
||||||
if (tokenValue != null) {
|
if (tokenValue != null) {
|
||||||
String tokenStr = tokenValue.toString();
|
String tokenStr = tokenValue.toString();
|
||||||
BuyerDTO buyerDTO = JSONObject.parseObject(tokenStr, BuyerDTO.class);
|
buyerDTO = JSONObject.parseObject(tokenStr, BuyerDTO.class);
|
||||||
buyerId = buyerDTO.getBuyerId();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (buyerDTO != null) {
|
||||||
for (Method m : methods) {
|
for (Method m : methods) {
|
||||||
if (ApiConstants.SET_TOKEN.equalsIgnoreCase(m.getName())) {
|
if (ApiConstants.SET_TOKEN.equalsIgnoreCase(m.getName())) {
|
||||||
m.setAccessible(true);
|
m.setAccessible(true);
|
||||||
m.invoke(argArr, new Object[]{token});
|
m.invoke(argArr, new Object[]{token});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ApiConstants.SET_BUYER_NAME.equalsIgnoreCase(m.getName())) {
|
||||||
|
m.setAccessible(true);
|
||||||
|
m.invoke(argArr, new Object[]{buyerDTO.getBuyerName()});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -146,7 +154,6 @@ public class ZhenZhenLogAop {
|
|||||||
if (!adminNotNeedLogin && tokenValue == null) {
|
if (!adminNotNeedLogin && tokenValue == null) {
|
||||||
// return R.error("请登录");
|
// return R.error("请登录");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tokenValue != null) {
|
if (tokenValue != null) {
|
||||||
try {
|
try {
|
||||||
VVAdminDTO vvAdminDTO = JSONObject.parseObject(tokenValue + "", VVAdminDTO.class);
|
VVAdminDTO vvAdminDTO = JSONObject.parseObject(tokenValue + "", VVAdminDTO.class);
|
||||||
@ -167,19 +174,18 @@ public class ZhenZhenLogAop {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result = point.proceed();
|
result = point.proceed();
|
||||||
if (result instanceof R) {
|
if (result instanceof R) {
|
||||||
R r = (R) result;
|
R r = (R) result;
|
||||||
Object object = r.getData();
|
Object object = r.getData();
|
||||||
convertImage(object, token);
|
convertImage(object, token);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("LogAop set error " + sb.toString(), e);
|
log.error("LogAop set error " + sb.toString(), e);
|
||||||
} finally {
|
} finally {
|
||||||
@ -257,8 +263,6 @@ public class ZhenZhenLogAop {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void printLog(Object result, String args, String ip, String className, String methodName,
|
public void printLog(Object result, String args, String ip, String className, String methodName,
|
||||||
String preUri, String token, String traceId, Long startTime, Long buyerId,
|
String preUri, String token, String traceId, Long startTime, Long buyerId,
|
||||||
String describe
|
String describe
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user