update code

dev_xds
haha 2024-04-06 23:41:04 +08:00
parent f4bb8d22df
commit da63db6425
1 changed files with 6 additions and 4 deletions

View File

@ -121,13 +121,15 @@
</foreach>
</delete>
<select id="groupByType" parameterType="SurProjectStandard" resultMap="com.ruoyi.system.mapper.SysDictDataMapper.SysDictDataResult">
select b.dict_value,b.dict_label,a.cnt STATUS from (select * from sys_dict_data where dict_type='prj_standard_type') b left join (
select b.dict_value,b.dict_label,a.cnt STATUS from (
select * from sys_dict_data where dict_type='prj_standard_type') b
left join (
select a.standard_type,count(1) cnt
from sur_project_standard a
where a.is_del =0
from sur_project_standard a ,sur_project sp
where a.is_del =0 and a.project_id=sp.id
<if test="projectId!=null and projectId>0"> and a.project_id=#{projectId}</if>
<if test="deptId!=null and deptId>0">
and sp.deptId= #{deptId}
and a.dept_Id= #{deptId}
</if>
<if test="proType != null and proType != '' "> and sp.projectType = #{proType}</if>
<if test="activeName != null and activeName != ''"> and sp.progressVisible = 0</if>