修改后台bug
This commit is contained in:
parent
791a90be64
commit
59cf680b45
|
|
@ -27,5 +27,9 @@ public class AreaDto {
|
|||
|
||||
private String gtId;
|
||||
|
||||
private String areaName;
|
||||
|
||||
private String proName;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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"'>
|
||||
|
|
|
|||
Loading…
Reference in New Issue