Fancy
2024-07-31 27c0c61e48bfb3e870d44b3b53a820568fcce5d5
Merge remote-tracking branch 'origin/master'
1个文件已修改
35 ■■■■ 已修改文件
pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java
@@ -25,6 +25,7 @@
@Slf4j
@RestController
@RequestMapping(path = "assemblyStep")
@SuppressWarnings("unchecked")
public class AssemblyStepCtrl {
    private AssemblyStepSv sv;
@@ -34,8 +35,8 @@
    }
    @PostMapping(path = "save")
    public BaseResponse save(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.save():" + vo);
    public BaseResponse<Boolean> save(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.save():{}", vo);
        int count = sv.save(vo);
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
@@ -50,8 +51,8 @@
     * @return
     */
    @PostMapping(path = "testing")
    public BaseResponse testing(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.testing():" + vo);
    public BaseResponse<Boolean> testing(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.testing():{}", vo);
        int count = sv.testing(vo);
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
@@ -67,7 +68,7 @@
     */
    @PostMapping(path = "inspectQuality")
    public BaseResponse<Boolean> inspectQuality(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.inspectQuality():" + vo);
        log.info("AssemblyStepCtrl.inspectQuality():{}", vo);
        int count = sv.inspectQuality(vo);
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
@@ -82,7 +83,7 @@
     */
    @PostMapping(path = "otherWork")
    public BaseResponse<Boolean> otherWork(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.otherWork():" + vo);
        log.info("AssemblyStepCtrl.otherWork():{}", vo);
        int count = sv.otherWork(vo);
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
@@ -92,8 +93,8 @@
    }
    @PostMapping(path = "repair")
    public BaseResponse repair(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.repair():" + vo);
    public BaseResponse<Boolean> repair(@RequestBody @Valid QueryVo vo) {
        log.info("AssemblyStepCtrl.repair():{}" ,vo);
        int count = sv.repair(vo);
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
@@ -110,7 +111,7 @@
     */
    @GetMapping(path = "getSopByNodeId")
    public BaseResponse<PrProductionNode> getSopByNodeId(String nodeId) {
        log.info("AssemblyStepCtrl.getSopByNodeId():" + nodeId);
        log.info("AssemblyStepCtrl.getSopByNodeId():{}", nodeId);
        PrProductionNode result = sv.getSopByNodeId(nodeId);
        return BaseResponseUtils.buildSuccess(result);
    }
@@ -123,7 +124,7 @@
     */
    @GetMapping(path = "getParamsByProId")
    public BaseResponse<List<PltProductParams>> getParamsByProId(String proId) {
        log.info("AssemblyStepCtrl.getParamsByProId():" + proId);
        log.info("AssemblyStepCtrl.getParamsByProId():{}", proId);
        List<PltProductParams> result = sv.getParamsByProId(proId);
        return BaseResponseUtils.buildSuccess(result);
    }
@@ -136,28 +137,28 @@
     */
    @GetMapping(path = "getFileByProId")
    public BaseResponse<List<PltProductFile>> getFileByProId(String proId) {
        log.info("AssemblyStepCtrl.getFileByProId():" + proId);
        log.info("AssemblyStepCtrl.getFileByProId():{}", proId);
        List<PltProductFile> result = sv.getFileByProId(proId);
        return BaseResponseUtils.buildSuccess(result);
    }
    @GetMapping(path = "getQualityItems")
    public BaseResponse<List<PltProductQualityInspectionItems>> getQualityItems(String proId) {
        log.info("AssemblyStepCtrl.getQualityItems():" + proId);
        log.info("AssemblyStepCtrl.getQualityItems():{}", proId);
        List<PltProductQualityInspectionItems> result = sv.getQualityItems(proId);
        return BaseResponseUtils.buildSuccess(result);
    }
    @GetMapping(path = "getTestItems")
    public BaseResponse<List<PltProductTestInspectionItems>> getTestItems(String proId) {
        log.info("AssemblyStepCtrl.getTestItems():" + proId);
        log.info("AssemblyStepCtrl.getTestItems():{}", proId);
        List<PltProductTestInspectionItems> result = sv.getTestItems(proId);
        return BaseResponseUtils.buildSuccess(result);
    }
    @GetMapping(path = "queryByDeviceNo")
    public BaseResponse<Map<String, String>> queryByDeviceNo(String deviceNo) {
        log.info("AssemblyStepCtrl.queryByDeviceNo():" + deviceNo);
        log.info("AssemblyStepCtrl.queryByDeviceNo():{}", deviceNo);
        Map<String, String> result = sv.queryByDeviceNo(deviceNo, null);
        if (StringUtils.isBlank(result.get("proName"))) {
            return BaseResponseUtils.buildFail("该编码(" + deviceNo + ")不是主要物料(系统中管控的其他设备)");
@@ -168,20 +169,20 @@
    @GetMapping(path = "queryLifeByDeviceNo")
    public BaseResponse<?> queryLifeByDeviceNo(String deviceNo) {
        log.info("AssemblyStepCtrl.queryLifeByDeviceNo():" + deviceNo);
        log.info("AssemblyStepCtrl.queryLifeByDeviceNo():{}", deviceNo);
        List<StaDeviceLife> result = sv.queryLifeByDeviceNo(deviceNo);
        return BaseResponseUtils.buildSuccess(result);
    }
    @GetMapping(path = "queryLogByDeviceNo")
    public BaseResponse<?> queryLogByDeviceNo(String deviceNo) {
        log.info("AssemblyStepCtrl.queryLogByDeviceNo():" + deviceNo);
        log.info("AssemblyStepCtrl.queryLogByDeviceNo():{}", deviceNo);
        List<StaDeviceProductionLog> result = sv.queryLogByDeviceNo(deviceNo);
        return BaseResponseUtils.buildSuccess(result);
    }
    @GetMapping(path = "queryPlanByDeviceNo")
    public BaseResponse<PrAssemblyPlan> queryPlanByDeviceNo(String deviceNo) {
        log.info("AssemblyStepCtrl.queryLogByDeviceNo():" + deviceNo);
        log.info("AssemblyStepCtrl.queryPlanByDeviceNo():{}", deviceNo);
        PrAssemblyPlan result = sv.queryPlanByDeviceNo(deviceNo);
        return BaseResponseUtils.buildSuccess(result);
    }