新增IwsTeamUserVo班组长手机号字段,优化IwsTeamUserMapper接口查询关联班组长手机号信息
This commit is contained in:
parent
2ce680aab5
commit
1ad579d579
|
|
@ -43,6 +43,11 @@ public class IwsTeamUserVo extends IwsUserBean{
|
|||
*/
|
||||
private String teamLeaderName;
|
||||
|
||||
/**
|
||||
* 班组长手机号
|
||||
*/
|
||||
private String teamLeaderPhone;
|
||||
|
||||
/**
|
||||
* 工程id
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -18,14 +18,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="selectProjectTeamInfoByIdCard" resultType="com.bonus.material.app.domain.IwsTeamUserVo">
|
||||
select
|
||||
id, bzmc as teamName, bzz_name as teamLeaderName, bzz_idcard as teamLeaderIdCard,
|
||||
bz as remark, bz_status as teamStatus, project_id as projectId, project_name as projectName
|
||||
bzgl_bz.id, bzgl_bz.bzmc as teamName, bzgl_bz.bzz_name as teamLeaderName, bzgl_bz.bzz_idcard as teamLeaderIdCard,
|
||||
bzgl_bz.bz as remark, bzgl_bz.bz_status as teamStatus, bzgl_bz.project_id as projectId,
|
||||
bzgl_bz.project_name as projectName, org_user.mobile as teamLeaderPhone
|
||||
from
|
||||
`micro-tool`.bzgl_bz
|
||||
left join `uni_org`.org_user on bzgl_bz.bzz_idcard = org_user.id_card
|
||||
<where>
|
||||
and bz_status = 3
|
||||
and sfjs = 0
|
||||
and bzz_idcard = #{idCard}
|
||||
and bzgl_bz.bz_status = 3
|
||||
and bzgl_bz.sfjs = 0
|
||||
and bzgl_bz.bzz_idcard = #{idCard}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue