mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-01-20 06:05:17 +08:00
v3.7.0 (2024-09-28) Java17+SpringBoot3重磅更新,【新增】支持Java17;【新增】支持SpringBoot3;【优化】优化AES和SM4加密;【优化】优化三级等保文档;
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?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.base.module.support.dict.dao.DictValueDao">
|
||||
|
||||
<update id="updateDeletedFlagByIdList">
|
||||
update t_dict_value set deleted_flag = #{deletedFlag} where dict_value_id in
|
||||
<foreach collection="dictValueIdList" open="(" close=")" separator="," item="item">
|
||||
#{item}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="query" resultType="net.lab1024.sa.base.module.support.dict.domain.vo.DictValueVO">
|
||||
SELECT * FROM t_dict_value
|
||||
<where>
|
||||
<if test="query.dictKeyId != null">
|
||||
AND dict_key_id = #{query.dictKeyId}
|
||||
</if>
|
||||
<if test="query.searchWord != null and query.searchWord !=''">
|
||||
AND (INSTR(value_code,#{query.searchWord}) or INSTR(value_name,#{query.searchWord}))
|
||||
</if>
|
||||
<if test="query.deletedFlag != null">
|
||||
AND deleted_flag = #{query.deletedFlag}
|
||||
</if>
|
||||
</where>
|
||||
<if test="query.sortItemList == null or query.sortItemList.size == 0">
|
||||
ORDER BY sort,dict_value_id DESC
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectByCode"
|
||||
resultType="net.lab1024.sa.base.module.support.dict.domain.entity.DictValueEntity">
|
||||
select * from t_dict_value where value_code = #{valueCode} and deleted_flag = #{deletedFlag}
|
||||
</select>
|
||||
|
||||
<select id="selectByDeletedFlag"
|
||||
resultType="net.lab1024.sa.base.module.support.dict.domain.entity.DictValueEntity">
|
||||
select * from t_dict_value where deleted_flag = #{deletedFlag} order by sort;
|
||||
</select>
|
||||
<select id="selectByDeletedFlagAndKeyId"
|
||||
resultType="net.lab1024.sa.base.module.support.dict.domain.entity.DictValueEntity">
|
||||
select * from t_dict_value where dict_key_id = #{dictKeyId} and deleted_flag = #{deletedFlag}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user