(select count(1) from smz_ssp_problemmodify a where a.projectId = sp.id and a.roleType=3 and a.infoType=0 and a.isDel=0
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
)as aqyhpc_jtgs,
(select count(1) from smz_ssp_problemmodify a where a.projectId = sp.id and a.roleType=4 and a.infoType=0 and a.isDel=0
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
(select count(1) from smz_ssp_problemmodify a LEFT JOIN sys_user u on u.user_name=a.createUser where a.isDel=0 and a.projectId = sp.id and a.roleType=7 and u.dept_id = pui.unitId and a.infoType=0
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
(select count(1) from work_train a LEFT JOIN work_train_dept b on a.id=b.train_id and b.is_main='Y' where a.project_id=sp.id and b.dept_id=pui.unitId and a.train_type=1 and a.is_del=0 ) as yjyl,
(select count(1) from work_train a LEFT JOIN work_train_dept b on a.id=b.train_id and b.is_main='Y' where a.project_id=sp.id and b.dept_id=pui.unitId and a.train_type=0 and a.is_del=0 ) as zxpx,
(select count(1) from smz_ssp_problemmodify a where a.projectId = sp.id and a.roleType=3 and a.infoType=1 and a.isDel=0
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
)as zlyhpc_jtgs,
(select count(1) from smz_ssp_problemmodify a where a.projectId = sp.id and a.roleType=4 and a.infoType=1 and a.isDel=0
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
(select count(1) from smz_ssp_problemmodify a LEFT JOIN sys_user u on u.user_name=a.createUser where a.isDel=0 and a.projectId = sp.id and a.roleType=7 and u.dept_id = pui.unitId and a.infoType=1
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
(select count(1) from sur_project_attendance_user a left join sur_project_attendance_cfg b on a.cfgid = b.id where b.project_id = sp.id and b.sub_dept_id = pui.unitId and b.state=0 and a.state=0 and b.is_del=0)as lwry,
(select count(1) from smz_ssp_problemmodify a where a.projectId=sp.id and a.infoType=1 and a.isDel=0 and a.checkState!=4 and date(NOW())<![CDATA[ > ]]> date(a.nickedTime)) as zlyjs,
(select count(1) from smz_ssp_problemmodify a where a.projectId=sp.id and a.infoType=0 and a.isDel=0 and a.checkState!=4 and date(NOW())<![CDATA[ > ]]> date(a.nickedTime)) as aqyjs,
(select CASE when b.plan_end_date > now() then 1 else 2 end as jdyj from vw_sur_project_build_node_data_current b where b.id in (select max(id) from vw_sur_project_build_node_data_current a where LENGTH(a.node_lvl)=2
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>
(select count(1) from work_train a LEFT JOIN work_train_dept b on a.id=b.train_id and b.is_main='Y' where a.project_id=sp.id and b.dept_id=pui.unitId and a.train_type=1 and a.is_del=0 ) as yjyl,
(select count(1) from work_train a LEFT JOIN work_train_dept b on a.id=b.train_id and b.is_main='Y' where a.project_id=sp.id and b.dept_id=pui.unitId and a.train_type=0 and a.is_del=0 ) as zxpx,
(select count(1) from smz_ssp_problemmodify a where a.projectId = sp.id and a.roleType=6 and a.infoType=1 and a.isDel=0
<iftest="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and date(a.createTime) between #{params.beginTime} and #{params.endTime}</if>