add setting map
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?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="com.imyeyu.api.modules.common.mapper.SettingMapper">
|
||||
<select id="selectPublicByQuery" resultType="com.imyeyu.api.modules.common.entity.Setting">
|
||||
SELECT *
|
||||
FROM `setting`
|
||||
WHERE `biz_type` = #{bizType}
|
||||
AND `is_private` = 0
|
||||
<if test="bizId != null and bizId != ''">
|
||||
AND `biz_id` = #{bizId}
|
||||
</if>
|
||||
<if test="codeList != null and !codeList.isEmpty()">
|
||||
AND `code` IN
|
||||
<foreach collection="codeList" item="code" separator="," open="(" close=")">
|
||||
#{code}
|
||||
</foreach>
|
||||
</if>
|
||||
AND (`deleted_at` IS NULL OR FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000) < `deleted_at`)
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user