Browse Source

企业台账:优化回执单

heguanxun 4 months ago
parent
commit
4a985e4e02

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

@@ -141,7 +141,7 @@ public class QyRecordInfoServiceImpl extends ServiceImpl<QyRecordInfoMapper, QyR
                 qyRecordAttachmentService.save(qyRecordAttachment);
             });
         }
-        if ("2".equals(qyRecordInfo.getStatus())){
+        if ("3".equals(qyRecordInfo.getStatus())){
             QyRecordInfoCheckList qyRecordInfoCheckList = new QyRecordInfoCheckList();
             qyRecordInfoCheckList.setYlTzCode(qyRecordInfo.getYlTzCode());
             qyRecordInfoCheckList.setCheckTime(new Date());
@@ -231,7 +231,7 @@ public class QyRecordInfoServiceImpl extends ServiceImpl<QyRecordInfoMapper, QyR
                 qyRecordProductService.save(product);
             });
         }
-        if ("2".equals(qyRecordInfo.getStatus())){
+        if ("3".equals(qyRecordInfo.getStatus())){
             QyRecordInfoCheckList qyRecordInfoCheckList = new QyRecordInfoCheckList();
             qyRecordInfoCheckList.setYlTzCode(qyRecordInfo.getYlTzCode());
             qyRecordInfoCheckList.setCheckTime(new Date());
@@ -251,23 +251,23 @@ public class QyRecordInfoServiceImpl extends ServiceImpl<QyRecordInfoMapper, QyR
             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_);
         }
     }