| | |
| | | from emergency_supplies where del_flag = 0 and id = #{id} |
| | | </select> |
| | | |
| | | <select id="countEmergencySupplies" resultMap="emergencySuppliesInfoDetailDOResult"> |
| | | select id,`name`,`count`,`production_date`,`use_period`,classification from emergency_supplies where del_flag = 0 |
| | | <if test="query.classification != null and query.classification != ''">and `classification` = #{query.classification}</if> |
| | | </select> |
| | | |
| | | <update id="updateEmergencySupplies" parameterType="com.gkhy.safePlatform.emergency.entity.EmergencySuppliesInfo"> |
| | | update emergency_supplies |
| | | <trim prefix="SET" suffixOverrides=","> |
| | |
| | | <update id="deleteEmergencySupplies"> |
| | | update emergency_supplies set del_flag = 1 where id = #{id} |
| | | </update> |
| | | <select id="listByNoConditions" resultType="com.gkhy.safePlatform.emergency.entity.EmergencySuppliesInfo"> |
| | | select id, |
| | | name, |
| | | number, |
| | | model, |
| | | count, |
| | | classification, |
| | | place, |
| | | use_explain |
| | | from emergency_supplies |
| | | where del_flag = #{delFlag} and status = #{status} |
| | | </select> |
| | | <select id="listCountByIds" resultType="com.gkhy.safePlatform.emergency.entity.EmergencySuppliesInfo"> |
| | | select id, |
| | | count |
| | | from emergency_supplies |
| | | where del_flag = #{delFlag} and status = #{status} and id in |
| | | <foreach collection="ids" item="id" open="(" close=")" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | <select id="getAllEmergencySupplies" resultType="com.gkhy.safePlatform.emergency.entity.EmergencySuppliesInfo"> |
| | | select id, |
| | | name, |
| | | number, |
| | | model, |
| | | count, |
| | | classification, |
| | | place, |
| | | use_explain, |
| | | department_id |
| | | from emergency_supplies |
| | | where del_flag = 0 |
| | | </select> |
| | | |
| | | |
| | | </mapper> |