| | |
| | | <mapper namespace="org.springblade.modules.fireSupplement.mapper.FireSupplementMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="fireSupplementResultMap" type="org.springblade.modules.fireSupplement.entity.FireSupplementEntity"> |
| | | <resultMap id="fireSupplementResultMap" type="org.springblade.fire.vo.FireSupplementVO"> |
| | | <result column="id" property="id"/> |
| | | <result column="fire_id" property="fireId"/> |
| | | <result column="fire_reason" property="fireReason"/> |
| | |
| | | select * from sys_fire_supplement where is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="getVODetail" resultMap="fireSupplementResultMap"> |
| | | select * from sys_fire_supplement where is_deleted = 0 |
| | | <if test="sup.id !=null and sup.id !=''"> |
| | | AND id = #{sup.id} |
| | | </if> |
| | | <if test="sup.fireId !=null and sup.fireId !='' "> |
| | | AND fire_id = #{sup.fireId} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |