Your Name
2023-01-26 4e4b96ef73db8d36d1cc7e2ec87d38d397c96078
java110-db/src/main/resources/mapper/common/AccessControlWhiteV1ServiceDaoImplMapper.xml
@@ -21,9 +21,11 @@
        accessControlKey,t.status_cd,t.status_cd statusCd,t.person_name,t.person_name
        personName,t.machine_id,t.machine_id machineId,t.acw_id,t.acw_id acwId,t.person_id,t.person_id
        personId,t.tel,t.start_time,t.start_time startTime,t.end_time,t.end_time endTime,t.community_id,t.community_id
        communityId,t.person_type,t.person_type personType,t.create_time createTime,m.machine_code,m.machine_name machineName
        communityId,t.person_type,t.person_type personType,t.create_time createTime,m.machine_code machineCode,m.machine_name machineName,
        td.`name` personTypeName
        from access_control_white t
        left join machine m on t.machine_id = m.machine_id and m.status_cd = '0'
        left join t_dict td on t.person_type = td.status_cd and td.table_name ='access_control_white' and td.table_columns = 'person_type'
        where 1 =1
        <if test="thirdId !=null and thirdId != ''">
            and t.third_id= #{thirdId}
@@ -39,6 +41,9 @@
        </if>
        <if test="personName !=null and personName != ''">
            and t.person_name= #{personName}
        </if>
        <if test="personNameLike !=null and personNameLike != ''">
            and t.person_name like concat('%',#{personNameLike},'%')
        </if>
        <if test="machineId !=null and machineId != ''">
            and t.machine_id= #{machineId}
@@ -138,6 +143,9 @@
        <if test="personName !=null and personName != ''">
            and t.person_name= #{personName}
        </if>
        <if test="personNameLike !=null and personNameLike != ''">
            and t.person_name like concat('%',#{personNameLike},'%')
        </if>
        <if test="machineId !=null and machineId != ''">
            and t.machine_id= #{machineId}
        </if>