3 Commits f66caf1c8c ... 13ddf73507

Author SHA1 Message Date
  heguanxun 13ddf73507 企业台账:优化回执单 3 months ago
  heguanxun 67d0ccd1db Merge remote-tracking branch 'origin/master' 3 months ago
  heguanxun 4a985e4e02 企业台账:优化回执单 3 months ago

+ 66 - 70
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecordinfo/service/impl/QyRecordInfoServiceImpl.java

@@ -141,43 +141,41 @@ public class QyRecordInfoServiceImpl extends ServiceImpl<QyRecordInfoMapper, QyR
                 qyRecordAttachmentService.save(qyRecordAttachment);
             });
         }
-        if ("2".equals(qyRecordInfo.getStatus())){
-            QyRecordInfoCheckList qyRecordInfoCheckList = new QyRecordInfoCheckList();
-            qyRecordInfoCheckList.setYlTzCode(qyRecordInfo.getYlTzCode());
-            qyRecordInfoCheckList.setCheckTime(new Date());
-            qyRecordInfoCheckList.setStatus("审核中");
-            qyRecordInfoCheckList.setResult("提交成功,待审核");
-            if ("basq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList.setApplyType("备案");
-            }
-            if ("bgsq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList.setApplyType("变更");
-            }
-            if ("zxsq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList.setApplyType("注销");
-            }
-            String nickname = StpLoginUserUtil.getLoginUser().getName();
-            qyRecordInfoCheckList.setCompanyName(nickname);
-            qyRecordInfoCheckListService.save(qyRecordInfoCheckList);
+        QyRecordInfoCheckList qyRecordInfoCheckList = new QyRecordInfoCheckList();
+        qyRecordInfoCheckList.setYlTzCode(qyRecordInfo.getYlTzCode());
+        qyRecordInfoCheckList.setCheckTime(new Date());
+        qyRecordInfoCheckList.setStatus("审核中");
+        qyRecordInfoCheckList.setResult("提交成功,待审核");
+        if ("basq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList.setApplyType("备案");
+        }
+        if ("bgsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList.setApplyType("变更");
+        }
+        if ("zxsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList.setApplyType("注销");
+        }
+        String nickname = StpLoginUserUtil.getLoginUser().getName();
+        qyRecordInfoCheckList.setCompanyName(nickname);
+        qyRecordInfoCheckListService.save(qyRecordInfoCheckList);
 
-            QyRecordInfoCheckList qyRecordInfoCheckList_ = new QyRecordInfoCheckList();
-            qyRecordInfoCheckList_.setYlTzCode(qyRecordInfo.getYlTzCode());
-            qyRecordInfoCheckList_.setCheckTime(new Date());
-            qyRecordInfoCheckList_.setStatus("审核通过");
-            qyRecordInfoCheckList_.setApplyMan("张白龙");
-            qyRecordInfoCheckList_.setResult("提交成功,审核通过");
-            if ("basq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList_.setApplyType("备案");
-            }
-            if ("bgsq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList_.setApplyType("变更");
-            }
-            if ("zxsq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList_.setApplyType("注销");
-            }
-            qyRecordInfoCheckList_.setCompanyName(StpLoginUserUtil.getLoginUser().getName());
-            qyRecordInfoCheckListService.save(qyRecordInfoCheckList_);
+        QyRecordInfoCheckList qyRecordInfoCheckList_ = new QyRecordInfoCheckList();
+        qyRecordInfoCheckList_.setYlTzCode(qyRecordInfo.getYlTzCode());
+        qyRecordInfoCheckList_.setCheckTime(new Date());
+        qyRecordInfoCheckList_.setStatus("审核通过");
+        qyRecordInfoCheckList_.setApplyMan("张白龙");
+        qyRecordInfoCheckList_.setResult("提交成功,审核通过");
+        if ("basq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList_.setApplyType("备案");
+        }
+        if ("bgsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList_.setApplyType("变更");
+        }
+        if ("zxsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList_.setApplyType("注销");
         }
+        qyRecordInfoCheckList_.setCompanyName(StpLoginUserUtil.getLoginUser().getName());
+        qyRecordInfoCheckListService.save(qyRecordInfoCheckList_);
     }
 
     @Transactional(rollbackFor = Exception.class)
@@ -231,44 +229,42 @@ public class QyRecordInfoServiceImpl extends ServiceImpl<QyRecordInfoMapper, QyR
                 qyRecordProductService.save(product);
             });
         }
-        if ("2".equals(qyRecordInfo.getStatus())){
-            QyRecordInfoCheckList qyRecordInfoCheckList = new QyRecordInfoCheckList();
-            qyRecordInfoCheckList.setYlTzCode(qyRecordInfo.getYlTzCode());
-            qyRecordInfoCheckList.setCheckTime(new Date());
-            qyRecordInfoCheckList.setStatus("审核中");
-            qyRecordInfoCheckList.setResult("提交成功,待审核");
-            if ("basq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList.setApplyType("备案");
-            }
-            if ("bgsq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList.setApplyType("变更");
-            }
-            if ("zxsq".equals(qyRecordInfo.getApplyType())){
-                qyRecordInfoCheckList.setApplyType("注销");
-            }
+        QyRecordInfoCheckList qyRecordInfoCheckList = new QyRecordInfoCheckList();
+        qyRecordInfoCheckList.setYlTzCode(qyRecordInfo.getYlTzCode());
+        qyRecordInfoCheckList.setCheckTime(new Date());
+        qyRecordInfoCheckList.setStatus("审核中");
+        qyRecordInfoCheckList.setResult("提交成功,待审核");
+        if ("basq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList.setApplyType("备案");
+        }
+        if ("bgsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList.setApplyType("变更");
+        }
+        if ("zxsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList.setApplyType("注销");
+        }
 
-            String nickname = StpLoginUserUtil.getLoginUser().getName();
-            qyRecordInfoCheckList.setCompanyName(nickname);
-            qyRecordInfoCheckListService.save(qyRecordInfoCheckList);
+        String nickname = StpLoginUserUtil.getLoginUser().getName();
+        qyRecordInfoCheckList.setCompanyName(nickname);
+        qyRecordInfoCheckListService.save(qyRecordInfoCheckList);
 
-//            QyRecordInfoCheckList qyRecordInfoCheckList_ = new QyRecordInfoCheckList();
-//            qyRecordInfoCheckList_.setYlTzCode(qyRecordInfo.getYlTzCode());
-//            qyRecordInfoCheckList_.setCheckTime(new Date());
-//            qyRecordInfoCheckList_.setStatus("审核通过");
-//            qyRecordInfoCheckList_.setResult("提交成功,待审核");
-//            if ("basq".equals(qyRecordInfo.getApplyType())){
-//                qyRecordInfoCheckList_.setApplyType("备案");
-//            }
-//            if ("bgsq".equals(qyRecordInfo.getApplyType())){
-//                qyRecordInfoCheckList_.setApplyType("变更");
-//            }
-//            if ("zxsq".equals(qyRecordInfo.getApplyType())){
-//                qyRecordInfoCheckList_.setApplyType("注销");
-//            }
-//            qyRecordInfoCheckList_.setCompanyName(StpLoginUserUtil.getLoginUser().getName());
-//            qyRecordInfoCheckList_.setApplyMan("张白龙");
-//            qyRecordInfoCheckListService.save(qyRecordInfoCheckList_);
+        QyRecordInfoCheckList qyRecordInfoCheckList_ = new QyRecordInfoCheckList();
+        qyRecordInfoCheckList_.setYlTzCode(qyRecordInfo.getYlTzCode());
+        qyRecordInfoCheckList_.setCheckTime(new Date());
+        qyRecordInfoCheckList_.setStatus("审核通过");
+        qyRecordInfoCheckList_.setResult("提交成功,待审核");
+        if ("basq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList_.setApplyType("备案");
+        }
+        if ("bgsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList_.setApplyType("变更");
+        }
+        if ("zxsq".equals(qyRecordInfo.getApplyType())){
+            qyRecordInfoCheckList_.setApplyType("注销");
         }
+        qyRecordInfoCheckList_.setCompanyName(StpLoginUserUtil.getLoginUser().getName());
+        qyRecordInfoCheckList_.setApplyMan("张白龙");
+        qyRecordInfoCheckListService.save(qyRecordInfoCheckList_);
     }
 
     @Transactional(rollbackFor = Exception.class)