律所系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="net.lab1024.sa.admin.module.penalty.dao.PenaltyApplyDao">
<!-- 查询结果列 -->
<sql id="base_columns">
t_penalty_apply.id,
t_penalty_apply.user_id,
t_penalty_apply.apply_date,
t_penalty_apply.use_purpose,
t_penalty_apply.status,
t_penalty_apply.create_time,
t_penalty_apply.update_time,
t_penalty_apply.deleted_flag
</sql>
<!-- 分页查询 -->
<select id="queryPage" resultType="net.lab1024.sa.admin.module.penalty.domain.vo.PenaltyApplyVO">
SELECT
<include refid="base_columns"/>
FROM t_penalty_apply
</select>
<update id="batchUpdateDeleted">
update t_penalty_apply set deleted_flag = #{deletedFlag}
where id in
<foreach collection="idList" open="(" close=")" separator="," item="item">
#{item}
</foreach>
</update>
<update id="updateDeleted">
update t_penalty_apply set deleted_flag = #{deletedFlag}
where id = #{id}
</update>
</mapper>