|
@@ -5,11 +5,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<mapper namespace="com.simuwang.base.mapper.system.SysConfigMapper">
|
|
<mapper namespace="com.simuwang.base.mapper.system.SysConfigMapper">
|
|
|
|
|
|
<resultMap type="com.simuwang.base.pojo.dos.SysConfigDO" id="SysConfigResult">
|
|
<resultMap type="com.simuwang.base.pojo.dos.SysConfigDO" id="SysConfigResult">
|
|
- <id property="configId" column="configId" />
|
|
|
|
- <result property="configName" column="configName" />
|
|
|
|
- <result property="configKey" column="configKey" />
|
|
|
|
- <result property="configValue" column="configNalue" />
|
|
|
|
- <result property="configType" column="configType" />
|
|
|
|
|
|
+ <id property="configId" column="config_id" />
|
|
|
|
+ <result property="configName" column="config_name" />
|
|
|
|
+ <result property="configKey" column="config_key" />
|
|
|
|
+ <result property="configValue" column="config_value" />
|
|
|
|
+ <result property="configType" column="config_type" />
|
|
<result property="creatorId" column="creatorid" />
|
|
<result property="creatorId" column="creatorid" />
|
|
<result property="createTime" column="createtime" />
|
|
<result property="createTime" column="createtime" />
|
|
<result property="updaterId" column="updaterid" />
|
|
<result property="updaterId" column="updaterid" />
|
|
@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<!-- 查询条件 -->
|
|
<!-- 查询条件 -->
|
|
<sql id="sqlwhereSearch">
|
|
<sql id="sqlwhereSearch">
|
|
<where>
|
|
<where>
|
|
|
|
+ isvalid=1
|
|
<if test="configId !=null">
|
|
<if test="configId !=null">
|
|
and config_id = #{configId}
|
|
and config_id = #{configId}
|
|
</if>
|
|
</if>
|
|
@@ -67,7 +68,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</select>
|
|
</select>
|
|
<select id="countConfigList" resultType="java.lang.Long">
|
|
<select id="countConfigList" resultType="java.lang.Long">
|
|
select count(1) from PPW_EMAIL.sys_config
|
|
select count(1) from PPW_EMAIL.sys_config
|
|
- <include refid="sqlwhereSearch"/>
|
|
|
|
|
|
+ <where>
|
|
|
|
+ isvalid=1
|
|
|
|
+ <if test="configName != null and configName != ''">
|
|
|
|
+ AND config_name like concat('%', #{configName}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="configKey != null and configKey != ''">
|
|
|
|
+ AND config_key like concat('%', #{configKey}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insertConfig" parameterType="com.simuwang.base.pojo.dos.SysConfigDO">
|
|
<insert id="insertConfig" parameterType="com.simuwang.base.pojo.dos.SysConfigDO">
|
|
@@ -81,7 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
isvalid,
|
|
isvalid,
|
|
createtime,
|
|
createtime,
|
|
- updatetime,
|
|
|
|
|
|
+ updatetime
|
|
)values(
|
|
)values(
|
|
<if test="configName != null and configName != ''">#{configName},</if>
|
|
<if test="configName != null and configName != ''">#{configName},</if>
|
|
<if test="configKey != null and configKey != ''">#{configKey},</if>
|
|
<if test="configKey != null and configKey != ''">#{configKey},</if>
|