|
|
|
@ -14,10 +14,11 @@
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="wxId" column="wx_id"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseTeamUserVo">
|
|
|
|
|
select id, team_id, team_code, user_id, user_name, create_by, create_time, update_by, update_time from base_team_user
|
|
|
|
|
select id, team_id, team_code, user_id, user_name, create_by, create_time, update_by, update_time, wx_id from base_team_user
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseTeamUserList" parameterType="BaseTeamUser" resultMap="BaseTeamUserResult">
|
|
|
|
@ -47,6 +48,7 @@
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="wxId != null">wx_id,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
|
@ -58,6 +60,7 @@
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="wxId != null">#{wxId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -72,6 +75,7 @@
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="wxId != null">wx_id = #{wxId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -93,10 +97,11 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectTeamMembers" parameterType="BaseTeamUser" resultMap="BaseTeamUserResult">
|
|
|
|
|
select
|
|
|
|
|
user_id,
|
|
|
|
|
user_name,
|
|
|
|
|
nick_name,
|
|
|
|
|
CONCAT(nick_name,user_name) AS teamUserName
|
|
|
|
|
user_id,
|
|
|
|
|
user_name,
|
|
|
|
|
nick_name,
|
|
|
|
|
CONCAT(nick_name,user_name) AS teamUserName,
|
|
|
|
|
wx_id
|
|
|
|
|
from sys_user
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -118,8 +123,11 @@
|
|
|
|
|
and team_id = #{teamId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectUserName" parameterType="BaseTeamUser" resultType="java.lang.String">
|
|
|
|
|
select user_name
|
|
|
|
|
<select id="selectUserDetail" parameterType="String" resultType="com.op.wms.domain.BaseTeamUser">
|
|
|
|
|
select
|
|
|
|
|
user_id AS userId ,
|
|
|
|
|
user_name AS userName,
|
|
|
|
|
wx_id AS wxId
|
|
|
|
|
from sys_user
|
|
|
|
|
where user_id = #{userId}
|
|
|
|
|
</select>
|
|
|
|
|