Browse Source

sql错误

koul 3 years ago
parent
commit
0246492904
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/uas/eis/service/Impl/MESServiceImpl.java

+ 1 - 1
src/main/java/com/uas/eis/service/Impl/MESServiceImpl.java

@@ -253,7 +253,7 @@ public class MESServiceImpl implements MESService {
             if ("".equals(whcode)) {
                 return ApiResponse.failRsp("10073", request.getHeader("RequestId"), "MES仓库编号不能为空!");
             }
-            int count = baseDao.getCount("select count(1) from customtabledetail left join customtable on cd_ctid=ct_id left where ct_statuscode='AUDITED' and ct_caller='MESWarehouse' and cd_varchar50_1='" + whcode + "'");
+            int count = baseDao.getCount("select count(1) from customtabledetail left join customtable on cd_ctid=ct_id where ct_statuscode='AUDITED' and ct_caller='MESWarehouse' and cd_varchar50_1='" + whcode + "'");
             if (count <= 0) {
                 return ApiResponse.failRsp("10074", request.getHeader("RequestId"), "MES仓库编号在ERP没有对应关系,请联系管理员新增!");
             }