dcs 11 mēneši atpakaļ
vecāks
revīzija
0df639038a

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

@@ -63,7 +63,8 @@
 	</select>
 	</select>
 
 
 	<select id="getProjectByOrganizationId" resultMap="result">
 	<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>
 	</select>
 
 
 	<insert id="insert" parameterType="com.bosshand.virgo.api.model.Project" useGeneratedKeys="true" keyProperty="id">
 	<insert id="insert" parameterType="com.bosshand.virgo.api.model.Project" useGeneratedKeys="true" keyProperty="id">