瀏覽代碼

跳踪打印生成代办日志

shengyang000 3 年之前
父節點
當前提交
1f7ba3099c
共有 1 個文件被更改,包括 20 次插入18 次删除
  1. 20 18
      src/main/java/com/unissoft/ventilation/service/impl/ProcessAuditServiceImpl.java

+ 20 - 18
src/main/java/com/unissoft/ventilation/service/impl/ProcessAuditServiceImpl.java

@@ -1007,25 +1007,8 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
1007 1007
             processAudit.setResult(1);//是首条记录
1008 1008
             processAudit.setAuditState(0);//提交待审批
1009 1009
             // 获得SimpleDateFormat类
1010
-            SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
1010
+            SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
1011 1011
 //            processAudit.setApplyTime(sf.format(processToBeDone.getStartDate()));//申请时间
1012
-            log.error("--------------------------------------------------------");
1013
-            log.error("--------------------------------------------------------");
1014
-            log.error("--------------------------------------------------------");
1015
-            log.error("--------------------------------------------------------");
1016
-            log.error("--------------------------------------------------------");
1017
-            log.error("--------------------------------------------------------");
1018
-            log.error(sf.format(new Date()));
1019
-            log.error("--------------------------------------------------------");
1020
-            log.error(sf.format(new Date()));
1021
-            log.error("--------------------------------------------------------");
1022
-            log.error(sf.format(new Date()));
1023
-            log.error("--------------------------------------------------------");
1024
-            log.error("--------------------------------------------------------");
1025
-            log.error("--------------------------------------------------------");
1026
-            log.error("--------------------------------------------------------");
1027
-            log.error("--------------------------------------------------------");
1028
-            log.error("--------------------------------------------------------");
1029 1012
 
1030 1013
             processAudit.setApplyTime(sf.format(new Date()));//申请时间
1031 1014
 
@@ -1051,6 +1034,25 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
1051 1034
             if (null != processToBeDone.getEndDate()) {//办理结束时间
1052 1035
                 processAudit.setEndDate(processToBeDone.getEndDate());
1053 1036
             }
1037
+
1038
+            log.error("--------------------------------------------------------");
1039
+            log.error("--------------------------------------------------------");
1040
+            log.error("--------------------------------------------------------");
1041
+            log.error("--------------------------------------------------------");
1042
+            log.error("--------------------------------------------------------");
1043
+            log.error("--------------------------------------------------------");
1044
+            log.error("申请时间:" + processAudit.getApplyTime());
1045
+            log.error("开始时间:" + sf.format(processAudit.getStartDate()));
1046
+            log.error("结束时间:" + sf.format(processAudit.getEndDate()));
1047
+            log.error("--------------------------------------------------------");
1048
+            log.error("--------------------------------------------------------");
1049
+            log.error("--------------------------------------------------------");
1050
+            log.error("--------------------------------------------------------");
1051
+            log.error("--------------------------------------------------------");
1052
+            log.error("--------------------------------------------------------");
1053
+            log.error("--------------------------------------------------------");
1054
+
1055
+
1054 1056
             if (null != processToBeDone.getToPage()) {//办理页面url
1055 1057
                 processAudit.setToPage(processToBeDone.getToPage());
1056 1058
             }