|
@@ -27,6 +27,7 @@ import org.jeecg.modules.itdmGongDan.vo.ShijiDate;
|
|
|
import org.jeecg.modules.qita.GlobalVariables;
|
|
|
import org.jeecg.modules.weituo.mapper.ItdmWeituoInfoMapper;
|
|
|
import org.jeecg.modules.weituo.mapper.ItdmWeituoYangpinMapper;
|
|
|
+import org.jeecg.modules.weituo.service.IItdmWeituoInfoService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -74,6 +75,9 @@ public class ItdmJCXMSHJHServiceImpl implements IItdmJCXMSHJHService {
|
|
|
@Autowired
|
|
|
@SuppressWarnings("all")
|
|
|
private IItdmDeviceService deviceService;
|
|
|
+ @Autowired
|
|
|
+ @SuppressWarnings("all")
|
|
|
+ private IItdmWeituoInfoService itdmWeituoInfoService;
|
|
|
|
|
|
/**
|
|
|
* 删除2级工单master+对应的工单detail
|
|
@@ -170,6 +174,10 @@ public class ItdmJCXMSHJHServiceImpl implements IItdmJCXMSHJHService {
|
|
|
taskMapper.updateById(itdmTask1);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //项目经理拆解工单——新增,将委托进度改为”拆解工单“
|
|
|
+ itdmWeituoInfoService.updateWeituoStepByWeituoId(dto.getWeituoId(),GlobalVariables.cjgd);//拆解工单
|
|
|
+
|
|
|
}else {//非空,是用于修改的数据——先判断能否修改
|
|
|
if(dto.getShijiStartDate()==null){//此时可以修改
|
|
|
|
|
@@ -223,6 +231,10 @@ public class ItdmJCXMSHJHServiceImpl implements IItdmJCXMSHJHService {
|
|
|
taskMapper.updateById(itdmTask1);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //项目经理拆解工单——新增,将委托进度改为”拆解工单“
|
|
|
+ itdmWeituoInfoService.updateWeituoStepByWeituoId(dto.getWeituoId(),GlobalVariables.cjgd);//拆解工单
|
|
|
+
|
|
|
}else msg="不可修改!";
|
|
|
}
|
|
|
}
|
|
@@ -317,6 +329,9 @@ public class ItdmJCXMSHJHServiceImpl implements IItdmJCXMSHJHService {
|
|
|
deleteMap.put("task_status",0);
|
|
|
taskService.removeByMap(deleteMap);
|
|
|
|
|
|
+ //修改该委托的委托进度为"计划排期"
|
|
|
+ itdmWeituoInfoService.updateWeituoStepByWeituoId(dto.getWeituoId(),GlobalVariables.jhpq);//计划排期
|
|
|
+
|
|
|
}else if(dto.getStatus() == 0){//状态为“未确定”,可以修改试验计划
|
|
|
|
|
|
QueryWrapper<ItdmTestPlan> planWrapper = new QueryWrapper<>();
|
|
@@ -395,12 +410,15 @@ public class ItdmJCXMSHJHServiceImpl implements IItdmJCXMSHJHService {
|
|
|
detail.setJihuaDeviceId(master.getShebeiId());
|
|
|
itdmGongdanDetailMapper.insert(detail);
|
|
|
}
|
|
|
- }else if(dto.getStatus() != 0){
|
|
|
- if(msg.equals("提交成功!")) msg="检测项目"+ dto.getTestItems();
|
|
|
- else msg=msg+ "和"+ dto.getTestItems();
|
|
|
+
|
|
|
+ //修改该委托的委托进度为"计划排期"
|
|
|
+ itdmWeituoInfoService.updateWeituoStepByWeituoId(dto.getWeituoId(),GlobalVariables.jhpq);//计划排期
|
|
|
+
|
|
|
+ }else if(dto.getStatus() != 0){ //状态为“已确定”,不可以修改试验计划
|
|
|
+ msg="检测项目"+ dto.getTestItems()+ "状态已确定或完成,无法修改!";
|
|
|
}
|
|
|
- if(msg.equals("提交成功!")) return msg;
|
|
|
- else return msg+"状态已确定或完成,无法修改!";
|
|
|
+
|
|
|
+ return msg;
|
|
|
}
|
|
|
|
|
|
/**
|