From 743fc525d63e6590c31f4bd56d90b887da20b6f9 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期三, 02 八月 2023 10:08:40 +0800 Subject: [PATCH] 1、处理了map为空返回null问题。 2、处理了查询分页问题。 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java index c112d85..038f48c 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmIOServiceImpl.java @@ -1490,9 +1490,6 @@ conditionMap.put("lastr", "1"); conditionMap.put("lastv", "1"); - // 鏌ヨ鍑鸿〃鍚� - - String countSql = "select count(*) from " + VciBaseUtil.getTableName(btmTypeId) +" where 1=1" + " and lastr = '1'" + " and lastv='1'" + @@ -2194,7 +2191,7 @@ String tableName =""; try { R<BtmTypeVO> r = btmTypeClient.getAllAttributeByBtmId(templateVO.getBtmTypeId()); - if(r.getCode()!=200) { + if(!r.isSuccess()) { throw new Throwable(r.getMsg()); } BtmTypeVO btmTypeVO = r.getData(); @@ -3302,7 +3299,7 @@ String tableName =""; try { R<BtmTypeVO> r = btmTypeClient.getAllAttributeByBtmId(templateVO.getBtmTypeId()); - if(r.getCode()!=200) { + if(!r.isSuccess()) { throw new Throwable(r.getMsg()); } BtmTypeVO btmTypeVO = r.getData(); -- Gitblit v1.9.3