提交
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user