diff --git a/box-bps/src/main/java/com/ruoyi/bps/controller/ExpSubsPushApiController.java b/box-bps/src/main/java/com/ruoyi/bps/controller/ExpSubsPushApiController.java index dd190880f..8bb2ae3d1 100644 --- a/box-bps/src/main/java/com/ruoyi/bps/controller/ExpSubsPushApiController.java +++ b/box-bps/src/main/java/com/ruoyi/bps/controller/ExpSubsPushApiController.java @@ -55,7 +55,7 @@ public class ExpSubsPushApiController extends BaseController { //接受topgp订阅, @Log(title = "快递订阅", businessType = BusinessType.OTHER) @CrossOrigin - @ApiOperation(value="topgp订阅快递",notes = "request body格式: {\"requestId\":\"1628584040740\",\"deliveryNo\":\"S301-2108020001\",\"expressNo\":\"300444235610\",\"company\":\"annengwuliu\",\"phone\":\"13800138000\"}") + @ApiOperation(value="topgp订阅快递",notes = "request body格式: {\"requestId\":\"1628584040740\",\"deliveryNum\":\"S301-2108020001\",\"expressNum\":\"300444235610\",\"company\":\"annengwuliu\",\"phone\":\"13800138000\"}") @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header", dataType = "String", dataTypeClass = String.class), @ApiImplicitParam(name = "requestJson", value = "请求json",required = true, paramType = "body", dataType = "String", dataTypeClass = String.class) @@ -69,8 +69,8 @@ public class ExpSubsPushApiController extends BaseController { @Log(title = "TOPGP出货已转签收", businessType = BusinessType.OTHER) @CrossOrigin @ApiOperation(value="接受TOPGP已转签收消息推送",notes = "request body格式: {\"requestId\":\"topgpSign1628584040740\"," + - "\"signedInfoList\":[{\"deliveryNo\":\"S301-2108020001\",\"signNo\":\"S501-2108020001\"},{\"deliveryNo\":\"S301-2108020002\",\"signNo\":\"S501-2108020002\"}]," + - "\"expressNo\":\"300444235610\",\"company\":\"annengwuliu\",\"phone\":\"13800138000\",\"status\":\"0\"}" + "\"signedInfoList\":[{\"deliveryNum\":\"S301-2108020001\",\"signNo\":\"S501-2108020001\"},{\"deliveryNum\":\"S301-2108020002\",\"signNo\":\"S501-2108020002\"}]," + + "\"expressNum\":\"300444235610\",\"company\":\"annengwuliu\",\"phone\":\"13800138000\",\"status\":\"0\"}" ) @ApiImplicitParams({ @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header", dataType = "String", dataTypeClass = String.class), diff --git a/box-bps/src/main/java/com/ruoyi/bps/domain/ExpTopgpLog.java b/box-bps/src/main/java/com/ruoyi/bps/domain/ExpTopgpLog.java index 3e3bbd29f..371ddd225 100644 --- a/box-bps/src/main/java/com/ruoyi/bps/domain/ExpTopgpLog.java +++ b/box-bps/src/main/java/com/ruoyi/bps/domain/ExpTopgpLog.java @@ -28,11 +28,11 @@ public class ExpTopgpLog extends BaseEntity /** 快递单 */ @Excel(name = "快递单") - private String expressNumber; + private String expressNum; /** 出货单号 */ @Excel(name = "出货单号") - private String deliveryNumber; + private String deliveryNum; /** 请求报文 */ @Excel(name = "请求报文") @@ -77,23 +77,23 @@ public class ExpTopgpLog extends BaseEntity { return requestType; } - public void setExpressNumber(String expressNumber) + public void setExpressNum(String expressNum) { - this.expressNumber = expressNumber; + this.expressNum = expressNum; } - public String getExpressNumber() + public String getExpressNum() { - return expressNumber; + return expressNum; } - public void setDeliveryNumber(String deliveryNumber) + public void setDeliveryNum(String deliveryNum) { - this.deliveryNumber = deliveryNumber; + this.deliveryNum = deliveryNum; } - public String getDeliveryNumber() + public String getDeliveryNum() { - return deliveryNumber; + return deliveryNum; } public void setRequestStr(String requestStr) { @@ -138,8 +138,8 @@ public class ExpTopgpLog extends BaseEntity .append("sid", getSid()) .append("requestId", getRequestId()) .append("requestType", getRequestType()) - .append("expressNumber", getExpressNumber()) - .append("deliveryNumber", getDeliveryNumber()) + .append("expressNum", getExpressNum()) + .append("deliveryNum", getDeliveryNum()) .append("requestStr", getRequestStr()) .append("requestTime", getRequestTime()) .append("responseCode", getResponseCode()) diff --git a/box-bps/src/main/java/com/ruoyi/bps/service/impl/ExpSubsPushApiServiceImpl.java b/box-bps/src/main/java/com/ruoyi/bps/service/impl/ExpSubsPushApiServiceImpl.java index 85be23795..4483d28a2 100644 --- a/box-bps/src/main/java/com/ruoyi/bps/service/impl/ExpSubsPushApiServiceImpl.java +++ b/box-bps/src/main/java/com/ruoyi/bps/service/impl/ExpSubsPushApiServiceImpl.java @@ -172,15 +172,15 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService { return "貌似没有接受到任何参数!"; } String requestId=contentJson.getString("requestId"); //TOPGP请求ID,年月日时分稍毫秒 - String deliveryNo= contentJson.getString("deliveryNo"); //TOPGP出货单号 - String expressNo = contentJson.getString("expressNo"); //TOPGP快递单号 + String deliveryNum= contentJson.getString("deliveryNum"); //TOPGP出货单号 + String expressNum = contentJson.getString("expressNum"); //TOPGP快递单号 String company = contentJson.getString("company"); //TOPGP物流公司编号 String phone = contentJson.getString("phone"); //TOPGP出货单号 //Long timeStamp = System.currentTimeMillis(); //获取时间戳 String subscribeTime= DateUtils.dateTimeNow("yyyy-MM-dd HH:mm:ss"); //获取订阅时间 SubscribeResp subscribeResp=new SubscribeResp(); //如果请求ID、出货单号或者快递单号为空,则不向快递100请求订阅,自己组合返回信息。 - if(StringUtils.isEmpty(deliveryNo) || StringUtils.isEmpty(expressNo) || StringUtils.isEmpty(requestId)){ + if(StringUtils.isEmpty(deliveryNum) || StringUtils.isEmpty(expressNum) || StringUtils.isEmpty(requestId)){ subscribeResp.setMessage("请求ID、快递单号或出货单号不可为空"); subscribeResp.setResult(false); subscribeResp.setReturnCode("700"); @@ -188,7 +188,7 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService { //组合向快递100推送订阅请求的参数 ExpSubscribe expSubscribe=new ExpSubscribe(); expSubscribe.setSid(Long.getLong(requestId)); //时间戳 - expSubscribe.setNumber(expressNo); + expSubscribe.setNumber(expressNum); expSubscribe.setCompany(company); expSubscribe.setPhone(phone); expSubscribe.setSubscribeTime(subscribeTime); //订阅时间 @@ -201,8 +201,8 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService { //根据快递100的订阅返回结果,组合返回Topgp的JSON字符串 Map map= new HashMap<>(); map.put("requestId",requestId); //从TOPGP传过来的requestId, 时间戳 - map.put("deliveryNo",deliveryNo); //出货单号 - map.put("expressNo",expressNo); //快递单号 + map.put("deliveryNum",deliveryNum); //出货单号 + map.put("expressNum",expressNum); //快递单号 map.put("responseStr",subscribeResp.getMessage()); //返回消息 map.put("responseCode",subscribeResp.getReturnCode()); //返回码 map.put("result",subscribeResp.isResult()); //订阅结果 @@ -214,8 +214,8 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService { ExpTopgpLog expTopgpLog=new ExpTopgpLog(); expTopgpLog.setRequestId(requestId); expTopgpLog.setRequestType("fromTopgp"); - expTopgpLog.setExpressNumber(expressNo); - expTopgpLog.setDeliveryNumber(deliveryNo); + expTopgpLog.setExpressNum(expressNum); + expTopgpLog.setDeliveryNum(deliveryNum); expTopgpLog.setRequestStr(contentJson.toString()); expTopgpLog.setRequestTime(subscribeTime); expTopgpLog.setResponseCode(subscribeResp.getReturnCode()); @@ -257,9 +257,9 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService { ExpTopgpLog expTopgpLog=new ExpTopgpLog(); expTopgpLog.setRequestId(contentJson.getString("requestId")); expTopgpLog.setRequestType("topgpSigned"); - expTopgpLog.setExpressNumber(contentJson.getString("expressNum")); + expTopgpLog.setExpressNum(contentJson.getString("expressNum")); expTopgpLog.setRequestStr(contentJson.toString()); - expTopgpLog.setDeliveryNumber(deliveryNum); + expTopgpLog.setDeliveryNum(deliveryNum); expTopgpLog.setRequestTime(DateUtils.dateTimeNow("yyyy-MM-dd HH:mm:ss")); expTopgpLog.setResponseCode("200"); expTopgpLog.setResponseStr(returnStr); @@ -357,7 +357,7 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService { ExpTopgpLog expTopgpLog=new ExpTopgpLog(); expTopgpLog.setRequestId(requestMap.get("requestId").toString()); expTopgpLog.setRequestType("toTopgp"); - expTopgpLog.setExpressNumber(requestMap.get("expressNum").toString()); + expTopgpLog.setExpressNum(requestMap.get("expressNum").toString()); expTopgpLog.setRequestStr(JSONObject.toJSONString(requestMap)); expTopgpLog.setRequestTime(DateUtils.dateTimeNow("yyyy-MM-dd HH:mm:ss")); JSONObject object = jsonObject.getJSONObject("execution"); diff --git a/box-bps/src/main/resources/mapper/bps/ExpTopgpLogMapper.xml b/box-bps/src/main/resources/mapper/bps/ExpTopgpLogMapper.xml index 78ca7c67e..7ccd1e472 100644 --- a/box-bps/src/main/resources/mapper/bps/ExpTopgpLogMapper.xml +++ b/box-bps/src/main/resources/mapper/bps/ExpTopgpLogMapper.xml @@ -8,8 +8,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - + + @@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select sid, requestId, requestType, expressNumber, deliveryNumber, requestStr, requestTime, responseCode, responseStr from exp_topgp_log + select sid, requestId, requestType, expressNum, deliveryNum, requestStr, requestTime, responseCode, responseStr from exp_topgp_log +
- +
diff --git a/box-bps/src/main/resources/templates/bps/expTopgpLog/edit.html b/box-bps/src/main/resources/templates/bps/expTopgpLog/edit.html index 574853c6c..b2dcedc7a 100644 --- a/box-bps/src/main/resources/templates/bps/expTopgpLog/edit.html +++ b/box-bps/src/main/resources/templates/bps/expTopgpLog/edit.html @@ -22,13 +22,13 @@
- +
- +
diff --git a/box-bps/src/main/resources/templates/bps/expTopgpLog/expTopgpLog.html b/box-bps/src/main/resources/templates/bps/expTopgpLog/expTopgpLog.html index 010215e84..a0a37b094 100644 --- a/box-bps/src/main/resources/templates/bps/expTopgpLog/expTopgpLog.html +++ b/box-bps/src/main/resources/templates/bps/expTopgpLog/expTopgpLog.html @@ -20,11 +20,11 @@
  • - +
  • - +
  • @@ -96,11 +96,11 @@ title: '请求类型' }, { - field: 'expressNumber', + field: 'expressNum', title: '快递单' }, { - field: 'deliveryNumber', + field: 'deliveryNum', title: '出货单号' }, {