luowei пре 2 година
родитељ
комит
7d4478d4e3

+ 1 - 1
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/impl/SysNfcBindServiceImpl.java

@@ -135,7 +135,7 @@ public class SysNfcBindServiceImpl extends ServiceImpl<SysNfcBindMapper, SysNfcB
         sysNfcBind.setSource("1");
         if(null==sysNfcBind.getEnable()){
             sysNfcBind.setSource("2");
-            sysNfcBind.setEnable("1");
+            sysNfcBind.setEnable("0");
         }
         SysOrg sysOrg = sysOrgService.selectSysOrgById(sysNfcBind.getOrgId());
         if (null != sysOrg) {

+ 2 - 2
soc-modules/soc-modules-system/src/main/resources/mapper/system/SysNfcBindMapper.xml

@@ -109,10 +109,10 @@
             </otherwise>
         </choose>
         <if test="info.areaName != null  and info.areaName != ''">
-            and a.area_name = concat("%",#{info.areaName},"%")
+            and a.area_name like concat("%",#{info.areaName},"%")
         </if>
         <if test="info.code != null  and info.code != ''">
-            and a.code = concat("%",#{info.code},"%")
+            and a.code like concat("%",#{info.code},"%")
         </if>
         <if test="info.enable != null  and info.enable != ''">
             and a.enable = #{info.enable}