dcs 11 月之前
父节点
当前提交
0df639038a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      virgo.api/src/main/resources/mapper/ProjectMapper.xml

+ 2 - 1
virgo.api/src/main/resources/mapper/ProjectMapper.xml

@@ -63,7 +63,8 @@
 	</select>
 
 	<select id="getProjectByOrganizationId" resultMap="result">
-		select * from project where deleteState = 0 and organizationId = #{organizationId}
+		SELECT a.*, b.name as organizationName FROM project a LEFT JOIN mgr_organization b ON a.organizationId = b.id
+		where deleteState = 0 and a.organizationId = #{organizationId}
 	</select>
 
 	<insert id="insert" parameterType="com.bosshand.virgo.api.model.Project" useGeneratedKeys="true" keyProperty="id">