|
@@ -201,7 +201,7 @@ public class FbsWorkingStatisticsController {
|
|
|
entity.setMaterielCode(workshopDispatchList.getProductId());
|
|
|
entity.setMaterielName(workshopDispatchList.getProduct());
|
|
|
|
|
|
- entity.setFirstTime(new Date());
|
|
|
+ entity.setFirstTime(entity.getCutTime());
|
|
|
entity.setFinalInfo("开工");
|
|
|
entity.setFinalState("1");
|
|
|
entity.setPkWorkshopDispatchList(list.get(0).getId());
|
|
@@ -255,7 +255,8 @@ public class FbsWorkingStatisticsController {
|
|
|
FbsWorkingStatistics par = list2.get(0);
|
|
|
if(par != null){
|
|
|
Date firstTime = par.getFirstTime();
|
|
|
- long diff = new Date().getTime() - firstTime.getTime();
|
|
|
+
|
|
|
+ long diff = entity.getCutTime().getTime() - firstTime.getTime();
|
|
|
|
|
|
|
|
|
|
|
@@ -305,7 +306,7 @@ public class FbsWorkingStatisticsController {
|
|
|
}
|
|
|
entity.setStartDate(workshopDispatchList.getPlannedStartTime());
|
|
|
entity.setEndDate(workshopDispatchList.getPlannedStartTime());
|
|
|
- entity.setFinalTime(new Date());
|
|
|
+ entity.setFinalTime(entity.getCutTime());
|
|
|
entity.setFinalInfo("下岗/暂停");
|
|
|
entity.setFinalState("2");
|
|
|
entity.setPkWorkshopDispatchList(list.get(0).getId());
|