全局修改物理删除为逻辑删除,同时修改查询语句过滤删除标识
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<if test="type != null">
|
||||
and type='${type}'
|
||||
</if>
|
||||
and ifnull(delete_Flag,'0') !='1'
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
</if>
|
||||
@@ -26,5 +27,16 @@
|
||||
<if test="type != null">
|
||||
and type='${type}'
|
||||
</if>
|
||||
and ifnull(delete_Flag,'0') !='1'
|
||||
</select>
|
||||
<update id="batchDeletePersonByIds">
|
||||
update jsh_person
|
||||
set delete_Flag='1'
|
||||
where 1=1
|
||||
and id in (
|
||||
<foreach collection="ids" item="id" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
)
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user