<iftest="complainName != null and complainName != ''"> and complain_name like concat('%', #{complainName}, '%')</if>
<iftest="complainPhone != null and complainPhone != ''"> and complain_phone = #{complainPhone}</if>
<iftest="complainMatter != null and complainMatter != ''"> and complain_matter = #{complainMatter}</if>
<iftest="transferRecord != null and transferRecord != ''"> and transfer_record = #{transferRecord}</if>
<iftest="dealCondition != null and dealCondition != ''"> and deal_condition = #{dealCondition}</if>
<iftest="complainAssignEnterproseName != null and complainAssignEnterproseName != ''"> and complain_assign_enterprose_name like concat('%', #{complainAssignEnterproseName}, '%')</if>
<iftest="complainAssignEnterproseId != null "> and complain_assign_enterprose_id = #{complainAssignEnterproseId}</if>
<iftest="complainAssignManId != null and complainAssignManId != ''"> and complain_assign_man_id = #{complainAssignManId}</if>
<iftest="complainAssignMan != null "> and complain_assign_man = #{complainAssignMan}</if>
<iftest="complainStatus != null and complainStatus != ''"> and complain_status = #{complainStatus}</if>
<iftest="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<iftest="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
select relation_device_detail_id,relation_device_id,device_name,device_model,iot_no,remarks, (CASE device_type WHEN '1' THEN '压力表' WHEN '2' THEN '流量计' end) as device_type
from t_relation_device_detail_info where relation_device_id=#{id}
</select>
<!--关联设备数据删除接口-->
<updateid="deleteDetailInfo">
update t_relation_device_detail_info set is_del='1' where relation_device_detail_id in
...
...
@@ -193,4 +192,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update t_relation_device_detail_info set is_del='1' where relation_device_detail_id = #{deviceId}