Commit efe6c692 authored by 王晓倩's avatar 王晓倩

巡检计划详情table

parent 66a7235f
...@@ -57,6 +57,15 @@ public class TInspectionPlanServiceImpl implements ITInspectionPlanService ...@@ -57,6 +57,15 @@ public class TInspectionPlanServiceImpl implements ITInspectionPlanService
TInspectionPlan tInspectionPlan = tInspectionPlanMapper.selectTInspectionPlanById(planId); TInspectionPlan tInspectionPlan = tInspectionPlanMapper.selectTInspectionPlanById(planId);
BeanUtils.copyProperties(tInspectionPlan, inspectionPlanVo); BeanUtils.copyProperties(tInspectionPlan, inspectionPlanVo);
if (StringUtils.isNotEmpty(tInspectionPlan.getPlanStatus())) {
List<SysDictData> sysDictDataList = iSysDictTypeService.selectDictDataByType("t_plan_status");
for (SysDictData sysDictData : sysDictDataList) {
if (tInspectionPlan.getPlanStatus().equals(sysDictData.getDictValue())) {
inspectionPlanVo.setPlanStatus(sysDictData.getDictLabel());
}
}
}
if(tInspectionPlan.getOrderId() != null && !"".equals(tInspectionPlan.getOrderId())) { if(tInspectionPlan.getOrderId() != null && !"".equals(tInspectionPlan.getOrderId())) {
TWorkOrder tWorkOrder = tWorkOrderMapper.selectTWorkOrderById(tInspectionPlan.getOrderId()); TWorkOrder tWorkOrder = tWorkOrderMapper.selectTWorkOrderById(tInspectionPlan.getOrderId());
inspectionPlanVo.setAllotTime(tWorkOrder.getAllotTime()); inspectionPlanVo.setAllotTime(tWorkOrder.getAllotTime());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment