33333333333
This commit is contained in:
@@ -22,4 +22,6 @@ public interface OrderLogsService extends IService<OrderLogs> {
|
||||
void createBaseSuccess(String orderNo, String stepName);
|
||||
|
||||
void createAliPayLogs(String orderNo, String inParams, JSONObject jsonObject, boolean success,TrdPayTypeEnum typeEnum,String stepName);
|
||||
|
||||
void createAliPayLogs(String orderNo, String url, String params, String body, boolean success, TrdPayTypeEnum typeEnum, String stepName);
|
||||
}
|
||||
|
||||
@@ -60,9 +60,22 @@ public class OrderLogsServiceImpl extends ServiceImpl<OrderLogsMapper, OrderLogs
|
||||
this.save(orderLogs);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createAliPayLogs(String orderNo, String url, String params, String body, boolean success, TrdPayTypeEnum typeEnum, String stepName){
|
||||
OrderLogs orderLogs = new OrderLogs();
|
||||
orderLogs.setOrderNo(orderNo);
|
||||
orderLogs.setStepName(stepName);
|
||||
orderLogs.setInParams(JSON.toJSONString(new UrlJson(url,params)));
|
||||
orderLogs.setOutParams(body);
|
||||
orderLogs.setFlagName(typeEnum.name());
|
||||
orderLogs.setSuccess(success?"成功":"失败");
|
||||
this.save(orderLogs);
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class UrlJson{
|
||||
private String url;
|
||||
private String params;
|
||||
|
||||
public UrlJson() {
|
||||
}
|
||||
@@ -70,6 +83,11 @@ public class OrderLogsServiceImpl extends ServiceImpl<OrderLogsMapper, OrderLogs
|
||||
public UrlJson(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public UrlJson(String url, String params) {
|
||||
this.url = url;
|
||||
this.params = params;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user