张晓波
2023-12-11 32dd97cec5855a4d014a3286e0e7be8beb6dde51
hd/pipe/mobile/src/main/resources/mapping/CheckDeviceMapper.xml
@@ -88,6 +88,7 @@
        t.check_type as checkType,
        t.create_time as createTime,
        t.device_id as deviceId,
        sd1.dict_name as checkTypeName,
        bd.big_device_name as bigDeviceName,
        bd.big_device_model as bigDeviceModel,
        bd.big_number as bigNumber,
@@ -98,12 +99,16 @@
        from t_check_device t
        left join t_big_device bd on t.device_id = bd.big_device_id
        left join sys_dict sd on sd.dict_id = bd.big_type
        left join sys_dict sd1 on sd1.dict_id = t.check_type
        left join sys_users su on su.user_id = t.admin_user
        <where>
            <trim suffixOverrides=" AND ">
                t.is_use = 1 AND
                <if test="bigDeviceName !=null and bigDeviceName !=''">
                    bd.big_device_name LIKE concat('%',#{bigDeviceName},'%') AND
                </if>
                <if test="bigNumber !=null and bigNumber !=''">
                    bd.big_number LIKE concat('%',#{bigNumber},'%') AND
                </if>
                <if test="startTime !=null">
                    t.check_time &gt;= #{startTime} AND
@@ -224,7 +229,7 @@
    </delete>
    <select id="deviceList" resultType="hashmap">
        select big_device_id as bigDeviceId,big_device_name as bigDeviceName from t_big_device
        select big_device_id as bigDeviceId,concat(big_device_name,'-',big_device_model) as bigDeviceName from t_big_device
        where is_use = 1 and company_id = #{companyId}
    </select>