Commit cf1300fe authored by 鲍德's avatar 鲍德

项目用户岗位返回信息增加用户名称

parent 017ad585
......@@ -40,6 +40,8 @@ public class ProjectUserPost extends BaseEntityClean
@ApiModelProperty("岗位 id")
private Long postId;
private String nickName;
private String projectName;
private String projectType;
......
......@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="projectName" column="project_name" />
<result property="projectType" column="project_type" />
<result property="projectAddress" column="project_address" />
<result property="nickName" column="nick_name" />
</resultMap>
<sql id="selectProjectUserPostVo">
......@@ -25,11 +26,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.`name` project_name,
b.type project_type,
b.address project_address,
user_id,
post_id
FROM
project_user_post a
a.user_id,
post_id,
c.nick_name
FROM
project_user_post a
LEFT JOIN ledger_project b on a.project_id = b.id
LEFT JOIN sys_user c on a.user_id = c.user_id
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment