新采购-首页

This commit is contained in:
yss
2025-02-12 16:19:33 +08:00
parent 8783981d9b
commit 596bdba9a8

View File

@ -111,12 +111,14 @@
delete from biz_project_record where id = #{id}
</delete>
<select id="getUserProjectRecordCount" parameterType="com.chinaunicom.mall.ebtp.project.projectrecord.entity.ProjectRecordVO" resultType="java.util.Map">
SELECT bid_method_dict as bidMethodDict,
count(id) projectCount
from biz_project_record
where date_format(create_date, '%Y%m') = #{vo.selectDate}
and app_manager_id = #{vo.appManagerId}
and bid_method_dict in ('procurement_mode_1','procurement_mode_2','procurement_mode_13','procurement_mode_5','procurement_mode_16')
GROUP BY bid_method_dict ORDER BY bid_method_dict
SELECT dict.code as bidMethodDict,
count(xm.id) projectCount
from dict_project dict
LEFT JOIN
(
SELECT bid_method_dict,id from biz_project_record where date_format(create_date, '%Y%m') = #{vo.selectDate} and app_manager_id = #{vo.appManagerId}
) xm ON dict.code= xm.bid_method_dict
where dict.code in ('procurement_mode_1','procurement_mode_2','procurement_mode_13','procurement_mode_5','procurement_mode_16')
GROUP BY dict.code ORDER BY dict.code;
</select>
</mapper>