From 708c924017f21d789849507d386330f71a3b82b4 Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期一, 15 七月 2024 15:13:48 +0800 Subject: [PATCH] can not scan other material --- pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java index a8a4cb7..3033db5 100644 --- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java +++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepCtrl.java @@ -1,5 +1,6 @@ package com.dy.pmsStation.assemblyStep; +import com.alibaba.excel.util.StringUtils; import com.dy.common.webUtil.BaseResponse; import com.dy.common.webUtil.BaseResponseUtils; import com.dy.pmsGlobal.pojoPlt.PltProductFile; @@ -117,7 +118,11 @@ public BaseResponse<Map<String,String>> queryByDeviceNo(String deviceNo) { log.info("AssemblyStepCtrl.queryByDeviceNo():"+deviceNo); Map<String,String> result = sv.queryByDeviceNo(deviceNo); - return BaseResponseUtils.buildSuccess(result); + if(StringUtils.isBlank(result.get("proName"))){ + return BaseResponseUtils.buildFail("璇ョ紪鐮�("+deviceNo +")涓嶆槸涓昏鐗╂枡(绯荤粺涓鎺х殑鍏朵粬璁惧)"); + }else{ + return BaseResponseUtils.buildSuccess(result); + } } @GetMapping(path = "queryLifeByDeviceNo") -- Gitblit v1.8.0