|
|
|
@ -16,6 +16,10 @@
|
|
|
|
|
<result property="createdTime" column="created_time" />
|
|
|
|
|
<result property="updatedBy" column="updated_by" />
|
|
|
|
|
<result property="updatedTime" column="updated_time" />
|
|
|
|
|
<result property="startTime" column="start_time" />
|
|
|
|
|
<result property="endTime" column="end_time" />
|
|
|
|
|
<result property="dineTime" column="dine_time" />
|
|
|
|
|
<result property="classes" column="classes" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseTeamMembersVo">
|
|
|
|
@ -29,7 +33,11 @@
|
|
|
|
|
tm.created_by,
|
|
|
|
|
tm.created_time,
|
|
|
|
|
tm.updated_by,
|
|
|
|
|
tm.updated_time
|
|
|
|
|
tm.updated_time,
|
|
|
|
|
tm.start_time,
|
|
|
|
|
tm.end_time,
|
|
|
|
|
tm.dine_time,
|
|
|
|
|
tm.classes
|
|
|
|
|
from base_teammembers tm
|
|
|
|
|
left join base_productline bpl on bpl.PRODUCT_LINE_CODE = tm.PRODUCT_LINE_CODE
|
|
|
|
|
</sql>
|
|
|
|
@ -38,6 +46,7 @@
|
|
|
|
|
<include refid="selectBaseTeamMembersVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="teamCode != null and teamCode != ''"> and tm.team_code = #{teamCode}</if>
|
|
|
|
|
<if test="classes != null and classes != ''"> and tm.classes = #{classes}</if>
|
|
|
|
|
<if test="teamName != null and teamName != ''"> and tm.team_name like concat(concat('%', #{teamName}), '%')</if>
|
|
|
|
|
<if test="teamHead != null and teamHead != ''"> and tm.team_head = #{teamHead}</if>
|
|
|
|
|
<if test="productLineCode != null and productLineCode != ''"> and tm.product_line_code = #{productLineCode}</if>
|
|
|
|
@ -47,6 +56,7 @@
|
|
|
|
|
<if test="updatedBy != null and updatedBy != ''"> and tm.updated_by = #{updatedBy}</if>
|
|
|
|
|
<if test="updatedTime != null "> and tm.updated_time = #{updatedTime}</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY tm.team_code
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseTeamMembersByObjId" parameterType="Long" resultMap="BaseTeamMembersResult">
|
|
|
|
@ -70,6 +80,10 @@
|
|
|
|
|
<if test="createdTime != null">created_time,</if>
|
|
|
|
|
<if test="updatedBy != null">updated_by,</if>
|
|
|
|
|
<if test="updatedTime != null">updated_time,</if>
|
|
|
|
|
<if test="startTime != null">start_time,</if>
|
|
|
|
|
<if test="endTime != null">end_time,</if>
|
|
|
|
|
<if test="dineTime != null">dine_time,</if>
|
|
|
|
|
<if test="classes != null">classes,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="objId != null">#{objId},</if>
|
|
|
|
@ -82,6 +96,10 @@
|
|
|
|
|
<if test="createdTime != null">#{createdTime},</if>
|
|
|
|
|
<if test="updatedBy != null">#{updatedBy},</if>
|
|
|
|
|
<if test="updatedTime != null">#{updatedTime},</if>
|
|
|
|
|
<if test="startTime != null">#{startTime},</if>
|
|
|
|
|
<if test="endTime != null">#{endTime},</if>
|
|
|
|
|
<if test="dineTime != null">#{dineTime},</if>
|
|
|
|
|
<if test="classes != null">#{classes},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -97,6 +115,10 @@
|
|
|
|
|
<if test="createdTime != null">created_time = #{createdTime},</if>
|
|
|
|
|
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
|
|
|
|
|
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
|
|
|
|
|
<if test="startTime != null">start_time = #{startTime},</if>
|
|
|
|
|
<if test="endTime != null">end_time = #{endTime},</if>
|
|
|
|
|
<if test="dineTime != null">dine_time = #{dineTime},</if>
|
|
|
|
|
<if test="classes != null">classes = #{classes},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where obj_id = #{objId}
|
|
|
|
|
</update>
|
|
|
|
|