Quellcode durchsuchen

优化缴费通知

wuxw vor 2 Jahren
Ursprung
Commit
62e0c61397

+ 5 - 1
service-job/src/main/java/com/java110/job/adapt/payment/notice/MachinePaymentNoticeAdapt.java

@@ -220,6 +220,7 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
         JSONObject paramIn = new JSONObject();
         paramIn.put("payFeeRoom", name + "-" + payerObjName);
         paramIn.put("feeTypeCdName", feeTypeCdName);
+        paramIn.put("feeName",feeDtos.get(0).getFeeName());
         paramIn.put("payFeeTime", startTime + "~" + endTime);
         paramIn.put("receivedAmount", receivedAmount);
         paramIn.put("startTime", startTime);
@@ -273,6 +274,7 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
                 JSONObject content = new JSONObject();
                 content.put("payFeeRoom", paramIn.getString("payFeeRoom"));
                 content.put("feeTypeCdName", paramIn.getString("feeTypeCdName"));
+                content.put("feeName", paramIn.getString("feeName"));
                 content.put("payFeeTime", paramIn.getString("payFeeTime"));
                 content.put("receivedAmount", paramIn.getString("receivedAmount") + "元");
                 content.put("url", wechatUrl);
@@ -302,6 +304,7 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
         try {
             JSONObject content = new JSONObject();
             content.put("payFeeRoom", paramIn.getString("payFeeRoom"));
+            content.put("feeName",paramIn.getString("feeName"));
             content.put("feeTypeCdName", paramIn.getString("feeTypeCdName"));
             content.put("payFeeTime", paramIn.getString("payFeeTime"));
             content.put("receivedAmount", paramIn.getString("receivedAmount") + "元");
@@ -327,7 +330,7 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
         smallWeChatDto.setObjType(SmallWeChatDto.OBJ_TYPE_COMMUNITY);
         smallWeChatDto.setObjId(communityDto.getCommunityId());
         List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto);
-        if (smallWeChatDto == null || smallWeChatDtos.size() <= 0) {
+        if (smallWeChatDto == null || smallWeChatDtos.isEmpty()) {
             logger.info("未配置微信公众号信息,定时任务执行结束");
             return;
         }
@@ -388,6 +391,7 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
             content.put("feeTypeCdName", paramIn.getString("feeTypeCdName") + "-" + paramIn.getString("carNum"));
         }
         content.put("payFeeTime", paramIn.getString("payFeeTime"));
+        content.put("feeName",feeDtos.get(0).getFeeName());
 
         //todo 退费
         if (FeeDetailDto.STATE_RETURN_ORDER.equals(paramIn.getString("state"))) {

+ 2 - 1
service-job/src/main/java/com/java110/job/msgNotify/wechat/WechatMsgNotifyImpl.java

@@ -234,7 +234,8 @@ public class WechatMsgNotifyImpl implements IMsgNotify {
         PropertyFeeTemplateMessage templateMessage = new PropertyFeeTemplateMessage();
         templateMessage.setTemplate_id(templateId);
         templateMessage.setTouser(openId);
-        data.put("thing2", new Content(content.getString("feeTypeCdName")));
+        // data.put("thing2", new Content(content.getString("feeTypeCdName")));
+        data.put("thing2", new Content(content.getString("feeName")));
         data.put("thing10", new Content(content.getString("payFeeRoom")));
         data.put("time18", new Content(content.getString("payFeeTime")));
         data.put("amount6", new Content(content.getString("receivedAmount")));

+ 1 - 0
service-job/src/main/java/com/java110/job/smo/impl/UserDownloadFileV1InnerServiceSMOImpl.java

@@ -59,6 +59,7 @@ public class UserDownloadFileV1InnerServiceSMOImpl extends BaseServiceSMO implem
      @Override
     public int deleteUserDownloadFile(@RequestBody  UserDownloadFilePo userDownloadFilePo) {
        userDownloadFilePo.setStatusCd("1");
+       userDownloadFilePo.setRemark(null);
        int saveFlag = userDownloadFileV1ServiceDaoImpl.updateUserDownloadFileInfo(BeanConvertUtil.beanCovertMap(userDownloadFilePo));
        return saveFlag;
     }