...
|
...
|
@@ -14,7 +14,7 @@ |
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, name, group_number, create_time, create_user, sms_number, send_time, send_user,
|
|
|
id, name ,create_time, create_user, sms_number, send_time, send_user,
|
|
|
content, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
...
|
...
|
@@ -150,28 +150,63 @@ |
|
|
update_time = #{updateTime,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<select id="getChannelGroupList" resultMap="BaseResultMap" parameterType="com.yoho.unions.dal.model.ChannelGroup" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from channel_group
|
|
|
where 1=1
|
|
|
<if test="channelGroup.name != null" >
|
|
|
and name = #{channelGroup.name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="channelGroup.createTime != null" >
|
|
|
and create_time>=#{channelGroup.createTime,jdbcType=INTEGER} and create_time <=#{channelGroup.createTime,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="channelGroup.createUser != null" >
|
|
|
create_user = #{channelGroup.createUser,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="channelGroup.smsNumber != null" >
|
|
|
sms_number = #{channelGroup.smsNumber,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="channelGroup.sendTime != null" >
|
|
|
send_time >= #{channelGroup.sendTime,jdbcType=INTEGER} and send_time < #{channelGroup.sendTime,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="channelGroup.sendUser != null" >
|
|
|
send_user = #{channelGroup.sendUser,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<select id="selectListCountByParam" resultType="java.lang.Integer" parameterType="com.yoho.service.model.union.request.ChannelGroupRequestBO" >
|
|
|
select count(*) from channel_group
|
|
|
<where>
|
|
|
<if test="name != null" >
|
|
|
name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="createTimeBegin != null" >
|
|
|
and create_time>=#{createTimeBegin,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="createTimeEnd != null" >
|
|
|
and create_time <=#{createTimeEnd,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="createUser != null" >
|
|
|
and create_user = #{createUser,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="smsNumber != null" >
|
|
|
and sms_number = #{smsNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="sendTimeBegin != null" >
|
|
|
and send_time >= #{sendTimeBegin,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="sendTimeEnd != null" >
|
|
|
and send_time < #{sendTimeEnd,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="sendUser != null" >
|
|
|
and send_user = #{sendUser,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="selectListByParam" resultMap="BaseResultMap" parameterType="com.yoho.service.model.union.request.ChannelGroupRequestBO" >
|
|
|
select <include refid="Base_Column_List" /> from channel_group
|
|
|
<where>
|
|
|
<if test="name != null" >
|
|
|
name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="createTimeBegin != null" >
|
|
|
and create_time>=#{createTimeBegin,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="createTimeEnd != null" >
|
|
|
and create_time <=#{createTimeEnd,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="createUser != null" >
|
|
|
and create_user = #{createUser,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="smsNumber != null" >
|
|
|
and sms_number = #{smsNumber,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="sendTimeBegin != null" >
|
|
|
and send_time >= #{sendTimeBegin,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="sendTimeEnd != null" >
|
|
|
and send_time < #{sendTimeEnd,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="sendUser != null" >
|
|
|
and send_user = #{sendUser,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
</where>
|
|
|
ORDER BY create_time DESC limit #{start,jdbcType=INTEGER}, #{size,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
</mapper> |
...
|
...
|
|