This commit is contained in:
huangzj
2023-06-16 10:12:05 +08:00
parent 80ce037a22
commit 6eb5bf4029
7 changed files with 21 additions and 5 deletions

View File

@@ -60,5 +60,5 @@ public interface AppProjectMapper extends BaseMapper<AppProjectPO> {
// " order by a.create_time desc",
// "</script>"}
// )
Page<AppProjectVO> getPageVo(Page<AppProjectVO> returnpage, @Param("temp")AppProjectQueryParm appProjectQueryParm);
Page<AppProjectVO> getPageVo(Page<AppProjectVO> returnpage, @Param("temp")AppProjectQueryParm appProjectQueryParm, @Param("userId") String userId);
}

View File

@@ -25,6 +25,9 @@
<select id="getPageVo" resultType="com.njcn.csdevice.pojo.vo.AppProjectVO">
select a.*,b.pid as engineering_id,(select name from cs_ledger c where c.id=b.pid) as engineering_name from cs_project a LEFT JOIN cs_ledger b on a.id = b.id where 1=1
and a.status ="1"
<if test="userId != null and userId !=''">
and exists (select 1 from cs_engineering_user d where d.engineering_id=b.pid and d.user_id=#{userId})
</if>
<if test="temp!=null and temp.projectId != null and temp.projectId !=''">
AND a.id = #{temp.projectId}
</if>