修改bug

This commit is contained in:
haozq 2024-03-29 17:38:07 +08:00
parent 325d2a8d5e
commit 8e06d16c37
2 changed files with 10 additions and 9 deletions

View File

@ -32,7 +32,7 @@
FROM t_class_metting cm
left join t_class_metting_check tcm on cm.class_id=tcm.class_id
left join sys_build so on so.org_id=cm.org
where cm.del_flag=0
where cm.del_flag=0 and cm.work_day=CURRENT_DATE()
<if test='type=="3"'>
<if test='userId!=null and userId!="" '>
and tcm.user_id=#{userId}

View File

@ -96,17 +96,18 @@
</select>
<select id="getSwList" resultType="com.securitycontrol.entity.background.vo.AreaVo">
select sw.id,ANY_VALUE(pro.pro_name) proName,ANY_VALUE(gt.gt_name) gtName,count(rf.id) fileNum
FROM tb_sw_source sw
left join tb_resource_file rf on rf.source_id=sw.id and rf.source_type='三维文件' and rf.del_flag=0
left join tb_project pro on pro.bid_code=sw.bid_code and pro.del_flag=0
left join t_pro_gt gt on gt.gt_id=sw.gt_id and gt.del_flag=0
where sw.del_flag=0
GROUP BY sw.id
FROM tb_sw_source sw
left join tb_resource_file rf on rf.source_id=sw.id and rf.source_type='三维文件' and rf.del_flag=0
left join tb_project pro on pro.bid_code=sw.bid_code and pro.del_flag=0
left join t_pro_gt gt on gt.gt_id=sw.gt_id and gt.del_flag=0
where sw.del_flag=0
GROUP BY sw.id
</select>
<select id="getSwData" resultType="java.lang.Integer">
select count (1)
select COUNT(1)
from tb_sw_source sw
where sw.del_flag=0 and sw.gt_id=#{gtId}
where sw.del_flag=0
and sw.gt_id=#{gtId}
</select>