|
@@ -3,6 +3,7 @@ package com.factory.controller.web;
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.factory.user.entity.vo.res.FileRes;
|
|
|
+import com.factory.web.entity.fa.req.*;
|
|
|
import com.factory.web.entity.vo.req.exportInitialPlanDetailsReq;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -16,22 +17,6 @@ import com.factory.base.entity.po.benteler.BentelerPlan;
|
|
|
import com.factory.base.util.res.ResponseBeanBuilder;
|
|
|
import com.factory.web.entity.fa.FirstArticleTitle;
|
|
|
import com.factory.web.entity.fa.FirstArticleWorkshop;
|
|
|
-import com.factory.web.entity.fa.req.AddFaItemResultListReq;
|
|
|
-import com.factory.web.entity.fa.req.AddFaPlanReq;
|
|
|
-import com.factory.web.entity.fa.req.EditFaItemResultListReq;
|
|
|
-import com.factory.web.entity.fa.req.EditFaPlanReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchALLPlanListReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaCalendarReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaCheckRecordListReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaItemListForPadReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaItemNoGoListReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaPlanCheckListReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaPlanListForPadReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaPlanReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaTaskReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaWorkshopListForPadReq;
|
|
|
-import com.factory.web.entity.fa.req.SearchFaWorkshopNoGoListReq;
|
|
|
-import com.factory.web.entity.fa.req.SubmitFaTaskReq;
|
|
|
import com.factory.web.entity.fa.res.FaCalendarRes;
|
|
|
import com.factory.web.entity.fa.res.FaCheckRecordListRes;
|
|
|
import com.factory.web.entity.fa.res.FaItemListForPadRes;
|
|
@@ -66,7 +51,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
public class FirstArticleController {
|
|
|
@Autowired
|
|
|
private FirstArticleService firstArticleService;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private PreventMistakeService preventMistakeService;
|
|
|
|
|
@@ -84,70 +69,70 @@ public class FirstArticleController {
|
|
|
FaPlanRes faPlanRes = firstArticleService.getFaPlan(req);
|
|
|
return ResponseBeanBuilder.ok(faPlanRes);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "修改首件计划")
|
|
|
@PostMapping("/editFaPlan")
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
public ResponseBean editFaPlan(@RequestBody EditFaPlanReq req) {
|
|
|
return firstArticleService.editFaPlan(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "禁用解禁首件计划")
|
|
|
@PostMapping("/disableFaPlan")
|
|
|
@ApiOperationSupport(order = 4)
|
|
|
public ResponseBean disableFaPlan(@RequestBody PmPlanPauseFlagReq req) {
|
|
|
return preventMistakeService.disablePmPlan(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得Web端首件计划点检列表")
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
@PostMapping("/getFaPlanCheckList")
|
|
|
public ResponseBean<PageBean<FaPlanListRes>> getFaPlanCheckList(@RequestBody SearchFaPlanCheckListReq req) {
|
|
|
return firstArticleService.getFaPlanCheckList(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得Pad端首件计划列表")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@PostMapping("/getFaPlanListForPad")
|
|
|
public ResponseBean<List<FaPlanListForPadRes>> getFaPlanListForPad(@RequestBody SearchFaPlanListForPadReq req) {
|
|
|
return firstArticleService.getFaPlanListForPad(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得Pad端工作站列表")
|
|
|
@ApiOperationSupport(order = 7)
|
|
|
@PostMapping("/getFaWorkshopListForPad")
|
|
|
public ResponseBean<List<FirstArticleWorkshop>> getFaWorkshopListForPad(@RequestBody SearchFaWorkshopListForPadReq req) {
|
|
|
return firstArticleService.getFaWorkshopListForPad(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得Pad端巡检项目列表")
|
|
|
@ApiOperationSupport(order = 8)
|
|
|
@PostMapping("/getFaItemListForPad")
|
|
|
public ResponseBean<List<FaItemListForPadRes>> getFaItemListForPad(@RequestBody SearchFaItemListForPadReq req) {
|
|
|
return firstArticleService.getFaItemListForPad(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "添加巡检项目检查结果")
|
|
|
@PostMapping("/addFaItemResult")
|
|
|
@ApiOperationSupport(order = 9)
|
|
|
public ResponseBean addFaItemResult(@RequestBody AddFaItemResultListReq req) {
|
|
|
return firstArticleService.addFaItemResult(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "任务检查完后提交")
|
|
|
@PostMapping("/submitFaTask")
|
|
|
@ApiOperationSupport(order = 10)
|
|
|
public ResponseBean submitFaTask(@RequestBody SubmitFaTaskReq req) {
|
|
|
return firstArticleService.submitFaTask(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得不放行任务对应的工作站")
|
|
|
@ApiOperationSupport(order = 11)
|
|
|
@PostMapping("/getFaWorkshopNoGoList")
|
|
|
public ResponseBean<List<FaWorkshopNoGoListRes>> getFaWorkshopNoGoList(@RequestBody SearchFaWorkshopNoGoListReq req) {
|
|
|
return firstArticleService.getFaWorkshopNoGoList(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得不放行任务对应的点检项目")
|
|
|
@ApiOperationSupport(order = 12)
|
|
|
@PostMapping("/getFaItemNoGoList")
|
|
@@ -161,7 +146,7 @@ public class FirstArticleController {
|
|
|
public ResponseBean editFaItemResult(@RequestBody EditFaItemResultListReq req) {
|
|
|
return firstArticleService.editFaItemResult(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "通过计划ID取得表头")
|
|
|
@ApiOperationSupport(order = 14)
|
|
|
@PostMapping("/getFaTitle")
|
|
@@ -169,28 +154,35 @@ public class FirstArticleController {
|
|
|
FirstArticleTitle firstArticleTitle = firstArticleService.getFaTitle(req.getBentelerPlanId());
|
|
|
return ResponseBeanBuilder.ok(firstArticleTitle);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得不放行任务对应的质量经理审批信息")
|
|
|
@ApiOperationSupport(order = 15)
|
|
|
@PostMapping("/getFaNoGoTaskAapproval")
|
|
|
public ResponseBean<FaNoGoTaskAapprovalRes> getFaNoGoTaskAapproval(@RequestBody SearchFaTaskReq req) {
|
|
|
return firstArticleService.getFaNoGoTaskAapproval(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得计划审批信息")
|
|
|
@ApiOperationSupport(order = 16)
|
|
|
@PostMapping("/getFaPlanApprovalList")
|
|
|
public ResponseBean<List<OnsiteApprovalPlan>> getFaPlanApprovalList(@RequestBody SearchPmPlanReq req) {
|
|
|
return preventMistakeService.getPmPlanApprovalList(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得所有计划(首件、防错)")
|
|
|
@ApiOperationSupport(order = 17)
|
|
|
@PostMapping("/getALLPlanList")
|
|
|
public ResponseBean<List<BentelerPlan>> getALLPlanList(@RequestBody SearchALLPlanListReq req) {
|
|
|
return firstArticleService.getALLPlanList(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ @ApiOperation(value = "取得某个计划生成的历史计划信息(首件、防错)")
|
|
|
+ @ApiOperationSupport(order = 100)
|
|
|
+ @PostMapping("/getHisPlanList")
|
|
|
+ public ResponseBean<List<BentelerPlan>> getHisPlanList(@RequestBody SearchHisPlanListReq req) {
|
|
|
+ return firstArticleService.getHisPlanList(req);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "检查记录列表")
|
|
|
@ApiOperationSupport(order = 18)
|
|
|
@PostMapping("/getFaCheckRecordList")
|
|
@@ -209,26 +201,26 @@ public class FirstArticleController {
|
|
|
public ResponseBean<FileRes> exportInitialPlanDetails(@RequestBody exportInitialPlanDetailsReq req) {
|
|
|
return firstArticleService.exportInitialPlanDetails(req);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// @ApiOperation(value = "判断检验结果是否填写完成")
|
|
|
// @PostMapping("/getFaAllCheckFlag")
|
|
|
// @ApiOperationSupport(order = 19)
|
|
|
// public ResponseBean<FaAllCheckFlagRes> getFaAllCheckFlag(@RequestBody SearchFaAllCheckFlagReq req) {
|
|
|
// return ResponseBeanBuilder.ok(firstArticleService.getFaAllCheckFlag(req));
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得用户列表")
|
|
|
@PostMapping("/getUserList")
|
|
|
@ApiOperationSupport(order = 20)
|
|
|
public ResponseBean<List<UserListRes>> getUserList() {
|
|
|
return ResponseBeanBuilder.ok(firstArticleService.getUserList());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "取得点检人和点检日期")
|
|
|
@PostMapping("/getFaCalendarList")
|
|
|
@ApiOperationSupport(order = 21)
|
|
|
public ResponseBean<List<FaCalendarRes>> getFaCalendarList(@RequestBody SearchFaCalendarReq req) {
|
|
|
return ResponseBeanBuilder.ok(firstArticleService.getFaCalendarList(req));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|