| | |
| | | import com.dy.pmsGlobal.pojoPlt.PltProductParams; |
| | | import com.dy.pmsGlobal.pojoPlt.PltProductQualityInspectionItems; |
| | | import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems; |
| | | import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; |
| | | import com.dy.pmsGlobal.pojoPr.PrProductionNode; |
| | | import com.dy.pmsGlobal.pojoSta.StaDeviceLife; |
| | | import com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 测试或品检都调用这个接口 |
| | | * 测试 |
| | | * @param vo |
| | | * @return |
| | | */ |
| | |
| | | public BaseResponse testing(@RequestBody @Valid QueryVo vo) { |
| | | log.info("AssemblyStepCtrl.testing():" + vo); |
| | | int count = sv.testing(vo); |
| | | if (count <= 0) { |
| | | return BaseResponseUtils.buildFail("数据库存储失败"); |
| | | } else { |
| | | return BaseResponseUtils.buildSuccess(true); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 品检 |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | @PostMapping(path = "inspectQuality") |
| | | public BaseResponse<Boolean> inspectQuality(@RequestBody @Valid QueryVo vo) { |
| | | log.info("AssemblyStepCtrl.inspectQuality():" + vo); |
| | | int count = sv.inspectQuality(vo); |
| | | if (count <= 0) { |
| | | return BaseResponseUtils.buildFail("数据库存储失败"); |
| | | } else { |
| | | return BaseResponseUtils.buildSuccess(true); |
| | | } |
| | | } |
| | | /** |
| | | * 无任务工作中的其他页面 |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | @PostMapping(path = "otherWork") |
| | | public BaseResponse<Boolean> otherWork(@RequestBody @Valid QueryVo vo) { |
| | | log.info("AssemblyStepCtrl.otherWork():" + vo); |
| | | int count = sv.otherWork(vo); |
| | | if (count <= 0) { |
| | | return BaseResponseUtils.buildFail("数据库存储失败"); |
| | | } else { |
| | |
| | | List<StaDeviceProductionLog> result = sv.queryLogByDeviceNo(deviceNo); |
| | | return BaseResponseUtils.buildSuccess(result); |
| | | } |
| | | @GetMapping(path = "queryPlanByDeviceNo") |
| | | public BaseResponse<PrAssemblyPlan> queryPlanByDeviceNo(String deviceNo) { |
| | | log.info("AssemblyStepCtrl.queryLogByDeviceNo():" + deviceNo); |
| | | PrAssemblyPlan result = sv.queryPlanByDeviceNo(deviceNo); |
| | | return BaseResponseUtils.buildSuccess(result); |
| | | } |
| | | |
| | | } |