浏览代码

模糊查询

hurugang 3 年之前
父节点
当前提交
e821ccefe7

+ 1 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/zd/JcJyItemChargeServiceImpl.java

@@ -83,7 +83,7 @@ public class JcJyItemChargeServiceImpl implements JcJyItemChargeService {
 //            commonParams = commonParams.toUpperCase();
 //        }
         if (StringUtils.isNotBlank(commonParams)) {
-            commonParams = commonParams + "%";
+            commonParams = "%"+commonParams + "%";
         }
         List<JyZdItem> jyZdItemList = jcJyItemChargeMapper.selectJcJyItemByCommonParams(commonParams, pageSize);
         List<JyZdItem> zlList = zdChargeItemMapper.selectZlByCommonParams(commonParams, pageSize);

+ 1 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/zd/MzZdYpYshServiceImpl.java

@@ -25,7 +25,7 @@ public class MzZdYpYshServiceImpl implements MzZdYpYshService {
         if (StringUtils.isBlank(commonParams)) {
             commonParams = null;
         } else {
-            commonParams = commonParams + "%";
+            commonParams = "%"+commonParams + "%";
         }
         Integer pageSize =5;
         List<MzZdYpYsh> mzZdYpYshes = mzZdYpYshMapper.selectMzZdYpYshByCommonParamsAndGroupNo(commonParams, groupNo,pageSize);