| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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"/> |
| | |
| | | </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> |
| | |
| | | <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> |