|
@@ -212,4 +212,26 @@
|
|
insert into cw_project_client_info(project_id,client_id) values(#{item.projectId},#{item.clientId})
|
|
insert into cw_project_client_info(project_id,client_id) values(#{item.projectId},#{item.clientId})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
+
|
|
|
|
+ <select id="getProjectIdByClientId" resultType="string">
|
|
|
|
+ select
|
|
|
|
+ cw_pci.project_id
|
|
|
|
+ from cw_project_client_info cw_pci
|
|
|
|
+ where cw_pci.client_id = #{id}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="getProjectByIdList" resultType="com.jeeplus.test.cw.projectRecords.service.dto.CwProjectRecordsDTO" parameterType="string">
|
|
|
|
+ select
|
|
|
|
+ <include refid="Base_Column_List"></include>,
|
|
|
|
+ su.name as create_name,
|
|
|
|
+ su2.name as project_master_name
|
|
|
|
+ from cw_project_records a
|
|
|
|
+ left join sys_user su on su.id = a.create_by and su.del_flag = '0'
|
|
|
|
+ left join sys_user su2 on su2.id = a.project_master_id and su2.del_flag = '0'
|
|
|
|
+ where a.del_flag = '0' and a.id in
|
|
|
|
+ <foreach collection="ids" separator="," item="item" open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ order by a.create_date desc
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|