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