shiqian před 3 roky
rodič
revize
a650b598b9

+ 4 - 4
boman-report/src/main/java/com/boman/report/service/impl/StatisticReportServiceImpl.java

@@ -156,14 +156,14 @@ public class StatisticReportServiceImpl implements StatisticReportService {
 
     private void genReport(StatisticReport report, String type) {
         Date now = new Date();
-        if(type.equals(INSERT)) {
+        if (type.equals(INSERT)) {
             report.setCreateBy(SecurityUtils.getUsername());
             report.setCreateTime(now);
             report.setUpdateTime(now);
-        }else{
-            report.setUpdateBy(SecurityUtils.getUsername());
-            report.setUpdateTime(now);
         }
+
+        report.setUpdateBy(SecurityUtils.getUsername());
+        report.setUpdateTime(now);
     }
 
     private void genReportPersonal(StatisticReport report) {