Commit ae4e9791 authored by 耿迪迪's avatar 耿迪迪
parents be9894f1 7d06e16f
...@@ -86,7 +86,7 @@ public class TNfcSettingServiceImpl implements ITNfcSettingService ...@@ -86,7 +86,7 @@ public class TNfcSettingServiceImpl implements ITNfcSettingService
return a; return a;
} }
TNfcSetting ts = tNfcSettingMapper.getInfoByNfcNum(tNfcSetting.getNfcNum()); TNfcSetting ts = tNfcSettingMapper.getInfoByNfcNum(tNfcSetting.getNfcNum());
if(ts.getNfcId()!=tNfcSetting.getNfcId()){ if(ts!=null&&ts.getNfcId()!=tNfcSetting.getNfcId()){
ts.setNfcNum(""); ts.setNfcNum("");
tNfcSettingMapper.updateTNfcSetting(ts); tNfcSettingMapper.updateTNfcSetting(ts);
} }
......
...@@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
a.is_del='0' and b.dict_type='t_nfc_region' a.is_del='0' and b.dict_type='t_nfc_region'
<if test="region != null and region != ''"> and region = #{region}</if> <if test="region != null and region != ''"> and region = #{region}</if>
<if test="patrolAddress != null and patrolAddress != ''"> and patrol_address = #{patrolAddress}</if> <if test="patrolAddress != null and patrolAddress != ''"> and patrol_address like concat('%',#{patrolAddress},'%') </if>
<if test="nfcNum != null and nfcNum != ''"> and nfc_num = #{nfcNum}</if> <if test="nfcNum != null and nfcNum != ''"> and nfc_num = #{nfcNum}</if>
<if test="applyWorkStartTime!=null and applyWorkStartTime!=''"> <if test="applyWorkStartTime!=null and applyWorkStartTime!=''">
and a.create_time &gt;= #{applyWorkStartTime} and a.create_time &gt;= #{applyWorkStartTime}
...@@ -107,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -107,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join sys_dict_data d on b.region=d.dict_value left join sys_dict_data d on b.region=d.dict_value
<where> <where>
b.is_del='0' and d.dict_type='t_nfc_region' b.is_del='0' and d.dict_type='t_nfc_region'
<if test="patrolAddress != null and patrolName != ''"> <if test="patrolAddress != null and patrolAddress != ''">
and b.patrol_address like concat('%', #{patrolAddress}, '%') and b.patrol_address like concat('%', #{patrolAddress}, '%')
</if> </if>
<if test="region != null and region != ''"> <if test="region != null and region != ''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment