|
|
@@ -7,8 +7,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.project.approve.damain.DevTask;
|
|
|
-import com.ruoyi.project.intact.domain.TIntactGyl;
|
|
|
-import com.ruoyi.project.intact.domain.TIntactYsj;
|
|
|
+import com.ruoyi.project.intact.domain.*;
|
|
|
import com.ruoyi.project.intact.mapper.TApproveMaintenanceMapper;
|
|
|
import com.ruoyi.project.intact.service.*;
|
|
|
import com.ruoyi.project.sems.domain.*;
|
|
|
@@ -25,7 +24,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
|
|
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
|
|
-import com.ruoyi.project.intact.domain.TApproveMaintenance;
|
|
|
import com.ruoyi.framework.web.controller.BaseController;
|
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
@@ -108,20 +106,20 @@ public class TApproveMaintenanceController extends BaseController
|
|
|
devList.add(ysjEntity);
|
|
|
}
|
|
|
break;
|
|
|
-// case 3:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-// TSpecdevDzsb dzsbEntity = tSpecdevDzsbService.getById(i);
|
|
|
-// devList.add(dzsbEntity);
|
|
|
-// }
|
|
|
-// break;
|
|
|
-// case 4:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-// TSpecdevGl glEntity = tSpecdevGlService.getById(i);
|
|
|
-// devList.add(glEntity);
|
|
|
-// }
|
|
|
-// break;
|
|
|
+ case 3:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactGj gjEntity = gjService.getById(i);
|
|
|
+ devList.add(gjEntity);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactPump pumpEntity = pumpService.getById(i);
|
|
|
+ devList.add(pumpEntity);
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
@@ -178,20 +176,20 @@ public class TApproveMaintenanceController extends BaseController
|
|
|
devList.add(ysjEntity);
|
|
|
}
|
|
|
break;
|
|
|
-// case 3:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-// TSpecdevDzsb dzsbEntity = tSpecdevDzsbService.getById(i);
|
|
|
-// devList.add(dzsbEntity);
|
|
|
-// }
|
|
|
-// break;
|
|
|
-// case 4:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-// TSpecdevGl glEntity = tSpecdevGlService.getById(i);
|
|
|
-// devList.add(glEntity);
|
|
|
-// }
|
|
|
-// break;
|
|
|
+ case 3:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactGj gjEntity = gjService.getById(i);
|
|
|
+ devList.add(gjEntity);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactPump pumpEntity = pumpService.getById(i);
|
|
|
+ devList.add(pumpEntity);
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
@@ -240,24 +238,24 @@ public class TApproveMaintenanceController extends BaseController
|
|
|
ysjService.updateById(ysjEntity);
|
|
|
}
|
|
|
break;
|
|
|
-// case 3:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-// TSpecdevDzsb dzsbEntity = tSpecdevDzsbService.getById(i);
|
|
|
-// dzsbEntity.setApproveStatus(tApproveSpecModify.getApproveType()+ 19);
|
|
|
-// dzsbEntity.setApproveTime(new Date());
|
|
|
-// tSpecdevDzsbService.updateById(dzsbEntity);
|
|
|
-// }
|
|
|
-// break;
|
|
|
-// case 4:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-// TSpecdevGl glEntity = tSpecdevGlService.getById(i);
|
|
|
-// glEntity.setApproveStatus(tApproveSpecModify.getApproveType()+ 19);
|
|
|
-// glEntity.setApproveTime(new Date());
|
|
|
-// tSpecdevGlService.updateById(glEntity);
|
|
|
-// }
|
|
|
-// break;
|
|
|
+ case 3:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactGj gjEntity = gjService.getById(i);
|
|
|
+// gjEntity.setApproveStatus(tApproveMaintenance.getApproveType()+ 19);
|
|
|
+ gjEntity.setApproveTime(new Date());
|
|
|
+ gjService.updateById(gjEntity);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactPump pumpEntity = pumpService.getById(i);
|
|
|
+// pumpEntity.setApproveStatus(t.getApproveType()+ 19);
|
|
|
+ pumpEntity.setApproveTime(new Date());
|
|
|
+ pumpService.updateById(pumpEntity);
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
@@ -320,18 +318,24 @@ public class TApproveMaintenanceController extends BaseController
|
|
|
tApproveMaintenanceService.updateTApproveMaintenance(tApproveMaintenance);
|
|
|
}
|
|
|
break;
|
|
|
-// case 3:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-//
|
|
|
-// }
|
|
|
-// break;
|
|
|
-// case 4:
|
|
|
-// for (String i : ids
|
|
|
-// ) {
|
|
|
-//
|
|
|
-// }
|
|
|
-// break;
|
|
|
+ case 3:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactGj gjEntity = gjService.getById(i);
|
|
|
+ gjEntity.setApproveStatus(0L);
|
|
|
+ gjService.updateById(gjEntity);
|
|
|
+ tApproveMaintenanceService.updateTApproveMaintenance(tApproveMaintenance);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ for (String i : ids
|
|
|
+ ) {
|
|
|
+ TIntactPump pumpEntity = pumpService.getById(i);
|
|
|
+ pumpEntity.setApproveStatus(0L);
|
|
|
+ pumpService.updateById(pumpEntity);
|
|
|
+ tApproveMaintenanceService.updateTApproveMaintenance(tApproveMaintenance);
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|