|
@@ -159,7 +159,7 @@ public class FbsWorkingStatisticsController {
|
|
//状态(0初始,1接单,2暂停,3完成)
|
|
//状态(0初始,1接单,2暂停,3完成)
|
|
QueryWrapper<FbsWorkshopDispatchList> ypffscSaleorderBQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<FbsWorkshopDispatchList> ypffscSaleorderBQueryWrapper = new QueryWrapper<>();
|
|
ypffscSaleorderBQueryWrapper.eq("personnel_id_u8", entity.getPersonnelCode()).eq("del_flag", 0);
|
|
ypffscSaleorderBQueryWrapper.eq("personnel_id_u8", entity.getPersonnelCode()).eq("del_flag", 0);
|
|
- ypffscSaleorderBQueryWrapper.eq("production_order_number_id", entity.getOrderNumber());
|
|
|
|
|
|
+ ypffscSaleorderBQueryWrapper.eq("production_order_number_name", entity.getOrderNumber());
|
|
ypffscSaleorderBQueryWrapper.in("state", 0,2);
|
|
ypffscSaleorderBQueryWrapper.in("state", 0,2);
|
|
List<FbsWorkshopDispatchList> list = fbsWorkshopDispatchListService.list(ypffscSaleorderBQueryWrapper);
|
|
List<FbsWorkshopDispatchList> list = fbsWorkshopDispatchListService.list(ypffscSaleorderBQueryWrapper);
|
|
if(list.size() < 1){
|
|
if(list.size() < 1){
|
|
@@ -176,13 +176,16 @@ public class FbsWorkingStatisticsController {
|
|
return new ResponseEntity<ResHttpStatus>(res, HttpStatus.OK);
|
|
return new ResponseEntity<ResHttpStatus>(res, HttpStatus.OK);
|
|
}
|
|
}
|
|
entity.setStartDate(workshopDispatchList.getPlannedStartTime());//计划时间
|
|
entity.setStartDate(workshopDispatchList.getPlannedStartTime());//计划时间
|
|
- entity.setEndDate(workshopDispatchList.getPlannedStartTime());//计划时间
|
|
|
|
|
|
+ entity.setEndDate(workshopDispatchList.getPlannedEndTime());//计划时间
|
|
|
|
+ entity.setMaterielCode(workshopDispatchList.getProductId());//物料编码
|
|
|
|
+ entity.setMaterielName(workshopDispatchList.getProduct());//物料名称
|
|
|
|
|
|
entity.setFirstTime(new Date());//获取当前时间
|
|
entity.setFirstTime(new Date());//获取当前时间
|
|
entity.setFinalInfo("开工");
|
|
entity.setFinalInfo("开工");
|
|
entity.setFinalState("1");//完结状态(1-开工,2-下岗/暂停,3-实时报工)
|
|
entity.setFinalState("1");//完结状态(1-开工,2-下岗/暂停,3-实时报工)
|
|
entity.setPkWorkshopDispatchList(list.get(0).getId());
|
|
entity.setPkWorkshopDispatchList(list.get(0).getId());
|
|
|
|
|
|
|
|
+
|
|
fbsWorkingStatisticsService.save(entity);
|
|
fbsWorkingStatisticsService.save(entity);
|
|
fbsWorkshopDispatchListService.updateState("1",list.get(0).getId());
|
|
fbsWorkshopDispatchListService.updateState("1",list.get(0).getId());
|
|
|
|
|
|
@@ -260,7 +263,7 @@ public class FbsWorkingStatisticsController {
|
|
//状态(0初始,1接单,2暂停,3完成)
|
|
//状态(0初始,1接单,2暂停,3完成)
|
|
QueryWrapper<FbsWorkshopDispatchList> ypffscSaleorderBQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<FbsWorkshopDispatchList> ypffscSaleorderBQueryWrapper = new QueryWrapper<>();
|
|
ypffscSaleorderBQueryWrapper.eq("personnel_id_u8", entity.getPersonnelCode()).eq("del_flag", 0);
|
|
ypffscSaleorderBQueryWrapper.eq("personnel_id_u8", entity.getPersonnelCode()).eq("del_flag", 0);
|
|
- ypffscSaleorderBQueryWrapper.eq("production_order_number_id", entity.getOrderNumber());
|
|
|
|
|
|
+ ypffscSaleorderBQueryWrapper.eq("production_order_number_name", entity.getOrderNumber());
|
|
ypffscSaleorderBQueryWrapper.eq("state", 1);
|
|
ypffscSaleorderBQueryWrapper.eq("state", 1);
|
|
|
|
|
|
List<FbsWorkshopDispatchList> list = fbsWorkshopDispatchListService.list(ypffscSaleorderBQueryWrapper);
|
|
List<FbsWorkshopDispatchList> list = fbsWorkshopDispatchListService.list(ypffscSaleorderBQueryWrapper);
|
|
@@ -283,6 +286,7 @@ public class FbsWorkingStatisticsController {
|
|
entity.setFinalInfo("下岗/暂停");
|
|
entity.setFinalInfo("下岗/暂停");
|
|
entity.setFinalState("2");//完结状态(1-开工,2-下岗/暂停,3-实时报工)
|
|
entity.setFinalState("2");//完结状态(1-开工,2-下岗/暂停,3-实时报工)
|
|
entity.setPkWorkshopDispatchList(list.get(0).getId());
|
|
entity.setPkWorkshopDispatchList(list.get(0).getId());
|
|
|
|
+ entity.setId(list2.get(0).getId());
|
|
fbsWorkingStatisticsService.updateById(entity);
|
|
fbsWorkingStatisticsService.updateById(entity);
|
|
fbsWorkshopDispatchListService.updateState("2",entity.getPkWorkshopDispatchList());
|
|
fbsWorkshopDispatchListService.updateState("2",entity.getPkWorkshopDispatchList());
|
|
|
|
|