Explorar o código

材差新一期待上报的原报时间调整

Tony Kang hai 1 ano
pai
achega
235d3aab1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/controller/report_controller.js

+ 1 - 1
app/controller/report_controller.js

@@ -1016,7 +1016,7 @@ module.exports = app => {
                                 maxTimes = material.times;
                                 if (material.order === 1) {
                                     // orgTime = material.begin_time;
-                                    stgAudit[0].end_time = material.begin_time;
+                                    stgAudit[0].end_time = material.begin_time || stgAudit[0].end_time; // 如果是待上报,没有begin_time,则保留时间
                                 }
                             }
                         }