修改数据

This commit is contained in:
YY
2025-06-30 09:58:09 +08:00
parent 697b7303de
commit b121d8254c
21 changed files with 146 additions and 19 deletions

View File

@ -897,7 +897,7 @@
SELECT
csb.id,
MAX(csb.name) AS name,
csb.social_credit_code AS socialCreditCode,
MAX(csb.social_credit_code) AS socialCreditCode,
MAX(cas.dept_id) AS deptId,
MAX(caw.id) AS accessWorkId,
MAX(caw.update_time) AS admissionTime,
@ -941,6 +941,7 @@
LEFT JOIN (
SELECT
casc.supplier_id,
GROUP_CONCAT(casc.category_id SEPARATOR ', ') AS categoryId,
GROUP_CONCAT(cc.category_name SEPARATOR ', ') AS categoryName
FROM
cosco_access_supplier_category casc
@ -987,6 +988,16 @@
</foreach>
</if>
)
<if test="vo.name!=null and vo.name!=''">
and csb.name like concat('%',#{vo.name},'%')
</if>
<if test="vo.deptId!=null and vo.deptId!=''">
and cas.dept_id = #{vo.deptId}
</if>
<if test="vo.categoryId!=null and vo.categoryId!=''">
and category_info.categoryId like concat('%',#{vo.categoryId},'%')
</if>
GROUP BY
csb.id