|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="channelName" column="channel_name" />
|
|
|
<result property="channelCode" column="channel_code" />
|
|
|
<result property="channelType" column="channel_type" />
|
|
|
+ <result property="channelGroup" column="channel_group" />
|
|
|
<result property="channelBlurb" column="channel_blurb" />
|
|
|
<result property="contacts" column="contacts" />
|
|
|
<result property="telephone" column="telephone" />
|
|
@@ -24,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTProjectChannelVo">
|
|
|
- select id, channel_name, channel_code, channel_type, channel_blurb, contacts, telephone, address, channel_head, status, mark, del_flag, create_by, create_time, update_by, update_time from t_project_channel
|
|
|
+ select id, channel_name, channel_code, channel_type, channel_group, channel_blurb, contacts, telephone, address, channel_head, status, mark, del_flag, create_by, create_time, update_by, update_time from t_project_channel
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTProjectChannelList" parameterType="TProjectChannel" resultMap="TProjectChannelResult">
|
|
@@ -33,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
del_flag = 0
|
|
|
<if test="channelName != null and channelName != ''"> and channel_name like concat('%', #{channelName}, '%')</if>
|
|
|
<if test="channelCode != null and channelCode != ''"> and channel_code = #{channelCode}</if>
|
|
|
+ <if test="channelGroup != null and channelGroup != ''"> and channel_group = #{channelGroup}</if>
|
|
|
<if test="channelType != null and channelType != ''"> and channel_type = #{channelType}</if>
|
|
|
<if test="contacts != null and contacts != ''"> and contacts = #{contacts}</if>
|
|
|
<if test="telephone != null and telephone != ''"> and telephone = #{telephone}</if>
|
|
@@ -53,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="channelName != null">channel_name,</if>
|
|
|
<if test="channelCode != null">channel_code,</if>
|
|
|
<if test="channelType != null">channel_type,</if>
|
|
|
+ <if test="channelGroup != null">channel_group,</if>
|
|
|
<if test="channelBlurb != null">channel_blurb,</if>
|
|
|
<if test="contacts != null">contacts,</if>
|
|
|
<if test="telephone != null">telephone,</if>
|
|
@@ -71,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="channelName != null">#{channelName},</if>
|
|
|
<if test="channelCode != null">#{channelCode},</if>
|
|
|
<if test="channelType != null">#{channelType},</if>
|
|
|
+ <if test="channelGroup != null">#{channelGroup},</if>
|
|
|
<if test="channelBlurb != null">#{channelBlurb},</if>
|
|
|
<if test="contacts != null">#{contacts},</if>
|
|
|
<if test="telephone != null">#{telephone},</if>
|
|
@@ -92,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="channelName != null">channel_name = #{channelName},</if>
|
|
|
<if test="channelCode != null">channel_code = #{channelCode},</if>
|
|
|
<if test="channelType != null">channel_type = #{channelType},</if>
|
|
|
+ <if test="channelGroup != null">channel_group = #{channelGroup},</if>
|
|
|
<if test="channelBlurb != null">channel_blurb = #{channelBlurb},</if>
|
|
|
<if test="contacts != null">contacts = #{contacts},</if>
|
|
|
<if test="telephone != null">telephone = #{telephone},</if>
|
|
@@ -128,4 +133,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|
|
|
+ <select id="selectTProjectChannelCode" parameterType="String" resultType="java.lang.Integer">
|
|
|
+ select count(*) from t_project_channel
|
|
|
+ where channel_code like concat('%', #{year}, '%')
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|