songhuangfeng123
2022-08-03 9ce6a7ccf03d7d04d8559e49550d576be3bd37a3
emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencySuppliesInfoMapper.xml
@@ -38,6 +38,7 @@
            <if test="usePeriod != null ">use_period,</if>
            <if test="departmentId != null ">department_id,</if>
            <if test="principalUserUid != null ">`principal_user_uid`,</if>
            <if test="principalUserName != null and principalUserName != ''">`principal_user_name`,</if>
            <if test="status != null and status != ''">status,</if>
            <if test="classification != null and classification != ''">`classification`,</if>
            <if test="name != null and name != ''">`name`,</if>
@@ -66,6 +67,7 @@
            <if test="usePeriod != null ">#{usePeriod},</if>
            <if test="departmentId != null ">#{departmentId},</if>
            <if test="principalUserUid != null ">#{principalUserUid},</if>
            <if test="principalUserName != null and principalUserName != ''">#{principalUserName},</if>
            <if test="status != null and status != ''">#{status},</if>
            <if test="classification != null and classification != ''">#{classification},</if>
            <if test="name != null and name != ''">#{name},</if>
@@ -92,6 +94,7 @@
        <result column="use_period" property="usePeriod"/>
        <result column="department_id" property="departmentId"/>
        <result column="principal_user_uid" property="principalUserUid"/>
        <result column="principal_user_name" property="principalUserName"/>
        <result column="status" property="status"/>
        <result column="classification" property="classification"/>
        <result column="name" property="name"/>
@@ -106,7 +109,7 @@
    </resultMap>
    <select id="selectEmergencySuppliesById" resultMap="emergencySuppliesInfoDetailDOResult">
        select id ,`production_date`,`use_date`,`inspect_date`,`next_inspect_date`,inspect_period ,`count` ,use_period ,department_id ,principal_user_uid ,
        select id ,`production_date`,`use_date`,`inspect_date`,`next_inspect_date`,inspect_period ,`count` ,use_period ,department_id ,principal_user_uid ,principal_user_name,
        status ,classification ,`name` ,`number` ,model ,longitude ,latitude ,`use` ,area_id ,place ,use_explain
        from emergency_supplies  where del_flag = 0 and id = #{id}
    </select>
@@ -125,6 +128,7 @@
            <if test="usePeriod != null ">use_period = #{usePeriod},</if>
            <if test="departmentId != null ">department_id = #{departmentId},</if>
            <if test="principalUserUid != null ">`principal_user_uid` = #{principalUserUid},</if>
            <if test="principalUserName != null and principalUserName != ''">principal_user_name = #{principalUserName},</if>
            <if test="status != null and status != ''">status = #{status},</if>
            <if test="classification != null and classification != ''">`classification` = #{classification},</if>
            <if test="name != null and name != ''">`name` = #{name},</if>