Browse Source

增加收款银行建设银行3346

zhijiezhao 2 years ago
parent
commit
baba5ddeb8

+ 5 - 3
src/main/java/com/caimei365/order/service/impl/ReceiptServiceImpl.java

@@ -206,7 +206,7 @@ public class ReceiptServiceImpl implements ReceiptService {
         // 验证银行卡号是否已经被删除
         String account = detectionAccount(smsContent);
         if ("-1".equals(account)) {
-            return ResponseJson.error(-2,"该收款银行账号已被删除,请检查短信是否有误或联系管理员!", null);
+            return ResponseJson.error(-2, "该收款银行账号已被删除,请检查短信是否有误或联系管理员!", null);
         }
         try {
             // 识别短信内容
@@ -223,6 +223,7 @@ public class ReceiptServiceImpl implements ReceiptService {
 
     /**
      * 验证银行卡号是否已经被删除
+     *
      * @param message
      * @return
      */
@@ -231,7 +232,7 @@ public class ReceiptServiceImpl implements ReceiptService {
             int index = message.indexOf("尾号");
             String account = message.substring(index + 2, index + 2 + 4);
             List<cmOfflineCollectionPo> collectionPo = collectionMapper.detectionAccount(account);
-            for (cmOfflineCollectionPo po: collectionPo) {
+            for (cmOfflineCollectionPo po : collectionPo) {
                 if (po.getIsDisable() == 0) {
                     return "-1";
                 }
@@ -2087,6 +2088,7 @@ public class ReceiptServiceImpl implements ReceiptService {
      * 9非订单款查看(全部),10订单款查看(全部),11返佣款查看(全部),12供应商退款查看(全部),
      * 13订单款查看(协销自己机构),14返佣款查看(协销自己机构),15供应商退款查看(协销自己机构)
      * 16订单款查看(协销小组机构),17返佣款查看(协销小组机构),18供应商退款查看(协销小组机构),19款项详情查看
+     *
      * @param permission 0:登录用户不需要权限,其他具体权限
      * @param headers    HttpHeaders
      * @return null:无权限/权限用户ReceiptUserVo
@@ -2188,7 +2190,7 @@ public class ReceiptServiceImpl implements ReceiptService {
                 contentTime.add(group);
             }
             // 建设银行
-            if (Arrays.asList(1, 18, 19, 20).contains(typeId)) {
+            if (Arrays.asList(1, 18, 19, 20, 26).contains(typeId)) {
                 for (int i = 1; i < 5; i++) {
                     if (contentTime.get(i).length() < 2) {
                         String s = contentTime.get(i);