|
@@ -4,9 +4,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.system.mapper.projectV2.common.SendSmsConfigMapper">
|
|
<mapper namespace="com.ruoyi.system.mapper.projectV2.common.SendSmsConfigMapper">
|
|
|
|
|
|
- <resultMap type="SendSmsConfig" id="SendSmsConfigResult">
|
|
|
|
|
|
+ <resultMap type="com.ruoyi.system.domain.projectV2.common.SendSmsConfig" id="SendSmsConfigResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="userId" column="user_id" />
|
|
<result property="userId" column="user_id" />
|
|
|
|
+ <result property="deptId" column="dept_id" />
|
|
<result property="name" column="name" />
|
|
<result property="name" column="name" />
|
|
<result property="phone" column="phone" />
|
|
<result property="phone" column="phone" />
|
|
<result property="progress" column="progress" />
|
|
<result property="progress" column="progress" />
|
|
@@ -19,18 +20,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSendSmsConfigVo">
|
|
<sql id="selectSendSmsConfigVo">
|
|
- select id, user_id, name, phone, progress, modify_date, create_by, create_time, update_by, update_time, is_del from send_sms_config
|
|
|
|
|
|
+ select id, user_id,dept_id, name, phone, progress, modify_date, create_by, create_time, update_by, update_time, is_del from send_sms_config
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectSendSmsConfigList" parameterType="SendSmsConfig" resultMap="SendSmsConfigResult">
|
|
<select id="selectSendSmsConfigList" parameterType="SendSmsConfig" resultMap="SendSmsConfigResult">
|
|
<include refid="selectSendSmsConfigVo"/>
|
|
<include refid="selectSendSmsConfigVo"/>
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
|
|
+ is_del = 'N'
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
+ <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
<if test="progress != null and progress != ''"> and progress = #{progress}</if>
|
|
<if test="progress != null and progress != ''"> and progress = #{progress}</if>
|
|
<if test="modifyDate != null and modifyDate != ''"> and modify_date = #{modifyDate}</if>
|
|
<if test="modifyDate != null and modifyDate != ''"> and modify_date = #{modifyDate}</if>
|
|
- <if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
|
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -43,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into send_sms_config
|
|
insert into send_sms_config
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="userId != null">user_id,</if>
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
<if test="progress != null and progress != ''">progress,</if>
|
|
<if test="progress != null and progress != ''">progress,</if>
|
|
@@ -55,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="userId != null">#{userId},</if>
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
<if test="progress != null and progress != ''">#{progress},</if>
|
|
<if test="progress != null and progress != ''">#{progress},</if>
|
|
@@ -71,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update send_sms_config
|
|
update send_sms_config
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
<if test="progress != null and progress != ''">progress = #{progress},</if>
|
|
<if test="progress != null and progress != ''">progress = #{progress},</if>
|