修改后台bug

This commit is contained in:
haozq 2024-04-24 17:50:08 +08:00
parent 791a90be64
commit 59cf680b45
5 changed files with 16 additions and 9 deletions

View File

@ -27,5 +27,9 @@ public class AreaDto {
private String gtId;
private String areaName;
private String proName;
}

View File

@ -51,7 +51,7 @@
t_code =#{keyWord}
)
</if>
<if test="keyWord!=null and keyWord!=''">
<if test="onLine!=null and onLine!=''">
and on_line =#{onLine}
</if>
</select>

View File

@ -43,8 +43,8 @@
<if test='types=="2"'>
and tcm.user_id is null
</if>
<if test='types=="1"'>
and tcm.user_id is not null and tcm.user_id!=#{userId}
<if test='type=="1"'>
and (tcm.user_id!=#{userId} or tcm.user_id is null )
</if>
<if test="keyWord!=null and keyWord!=''">
AND (

View File

@ -64,8 +64,11 @@
left join tb_project pro on pro.bid_code=area.bid_code and pro.del_flag=0
LEFT JOIN t_pro_gt gt on area.gt_id=gt.gt_id and gt.del_flag=0
where area.del_flag=0
<if test="keyWord!=null and keyWord!=''">
AND INSTR(area_name,#{keyWord}) > 0
<if test="areaName!=null and areaName!=''">
AND INSTR(area_name,#{areaName}) > 0
</if>
<if test="proName!=null and proName!=''">
AND INSTR(pro.pro_name,#{proName}) > 0
</if>
</select>
<select id="getProjectTypeByBidCode" resultType="java.lang.String">
@ -128,8 +131,8 @@
<select id="getProCostList" resultType="com.securitycontrol.entity.screen.vo.ProCostVo">
SELECT pro.pro_name proName,tpc.cost ,tpc.remark,tpc.create_time createTime,tpc.id
FROM tb_project_cost tpc
left join tb_project pro on pro.bid_code=tpc.bid_code
where pro.bid_code=#{bidCode}
left join tb_project pro on pro.bid_code=tpc.bid_code and pro.del_flag=0
where pro.bid_code=#{bidCode}
</select>

View File

@ -63,8 +63,8 @@
FROM tb_project pro
left join sys_build sb on pro.org=sb.org_id
left join tb_user_pro tup on tup.bid_cod=pro.bid_code and tup.del_flag=0
WHERE pro.del_flag=0 and (tup.user_id!=4 or tup.user_id is null)
<if test='type=="1"'>
WHERE pro.del_flag=0 and (tup.user_id!=#{userId} or tup.user_id is null)
<if test='type=="1"'>
AND tup.user_id is null
</if>
<if test='type=="2"'>