bug修改
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, @Param("userId") String userId);
|
||||
Page<AppProjectVO> getPageVo(Page<AppProjectVO> returnpage, @Param("temp")AppProjectQueryParm appProjectQueryParm);
|
||||
}
|
||||
@@ -25,14 +25,14 @@
|
||||
<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="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>
|
||||
<if test="temp!=null and temp.engineeringId != null and temp.engineeringId !=''">
|
||||
AND b.id = #{temp.engineeringId}
|
||||
AND b.pid = #{temp.engineeringId}
|
||||
</if>
|
||||
<if test="temp!=null and temp.endTime != null and temp.endTime !=''">
|
||||
AND a.create_time <= #{temp.endTime}"
|
||||
|
||||
@@ -56,6 +56,9 @@
|
||||
<if test="projectEquipmentQueryParm!=null and projectEquipmentQueryParm.projectId != null and projectEquipmentQueryParm.projectId !=''">
|
||||
AND b.id = #{projectEquipmentQueryParm.projectId}
|
||||
</if>
|
||||
<if test="projectEquipmentQueryParm!=null and projectEquipmentQueryParm.engineerId != null and projectEquipmentQueryParm.engineerId !=''">
|
||||
AND a.id = #{projectEquipmentQueryParm.engineerId}
|
||||
</if>
|
||||
order by a.create_time desc
|
||||
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user