JYW
2024-04-23 dd57e7785687fa49096a2853589a02a29c37931d
cnas-server/src/main/resources/mapper/DeviceMapper.xml
@@ -59,19 +59,14 @@
        </if>
    </select>
    <select id="authorizedPerson" resultType="com.yuanchu.mom.pojo.Device">
        select *
        from (select id,
                     authorized_person,
                     status
              from device) a
        select id,
               authorized_person
        from device
    </select>
    <select id="search" resultType="com.yuanchu.mom.pojo.Device">
        select *
        from device
        <where>
            <if test="status!=null">
                and status = #{status}
            </if>
            <if test="deviceName!=null and deviceName!=''">
                and device_name like concat('%',#{deviceName},'%')
            </if>
@@ -85,7 +80,6 @@
    </select>
    <update id="upDeviceParameter" parameterType="com.yuanchu.mom.pojo.Device">
        UPDATE device
        <set>
            <if test="largeCategory!=null and largeCategory!='' ">large_category=#{largeCategory},</if>
@@ -123,7 +117,6 @@
            id=#{id}
        </where>
    </update>
    <select id="selectDeviceImage" resultType="com.yuanchu.mom.pojo.Device">
        select (image_upload, create_user, create_time) values (#{image_upload}
             , #{createUser}