|
|
@@ -37,7 +37,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectConfigVo"/>
|
|
|
<include refid="sqlwhereSearch"/>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
+ <select id="selectConfigForTable" resultMap="SysConfigResult">
|
|
|
+ <include refid="selectConfigVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="config.configName != null and config.configName != ''">
|
|
|
+ AND config_name like concat('%', #{config.configName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="config.configType != null and config.configType != ''">
|
|
|
+ AND config_type = #{config.configType}
|
|
|
+ </if>
|
|
|
+ <if test="config.configKey != null and config.configKey != ''">
|
|
|
+ AND config_key like concat('%', #{config.configKey}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="config.params.beginTime != null and config.params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
+ and date_format(create_time,'%y%m%d') >= date_format(#{config.params.beginTime},'%y%m%d')
|
|
|
+ </if>
|
|
|
+ <if test="config.params.endTime != null and config.params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
+ and date_format(create_time,'%y%m%d') <= date_format(#{config.params.endTime},'%y%m%d')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
<select id="selectConfigList" parameterType="com.xunmei.system.api.domain.SysConfig" resultMap="SysConfigResult">
|
|
|
<include refid="selectConfigVo"/>
|
|
|
<where>
|