11-26-更新供应商sql

This commit is contained in:
2025-11-26 15:22:54 +08:00
parent bfe74bdb4c
commit 03177f58f2

View File

@ -8,8 +8,6 @@
SELECT SELECT
info.id,info.unit_code,info.unit_name,info.unified_social_credit_code, info.id,info.unit_code,info.unit_name,info.unified_social_credit_code,
supplement.belonging_organization as sszz, supplement.belonging_organization as sszz,
# settlement.opening_bank as khyh,
# settlement.account_number as khhzh,
info.city_code as cityCode, info.city_code as cityCode,
info.shzt as shzt, info.shzt as shzt,
yhxx.open_bank as khyh, yhxx.open_bank as khyh,
@ -23,7 +21,6 @@
supplement.responsible_salesman as fgywy, supplement.responsible_salesman as fgywy,
supplement.supplier_status as gyszt, supplement.supplier_status as gyszt,
(select ct.customer_type from (select info.id,ti.type,ti.primary_class,ti.customertype_id,info.unit_code from xzd_customertype_info ti left join xzd_supplier_info info on ti.customerinformation_id = info.id and ti.type like '2' where info.id is not NULL) as temp left join xzd_customertype ct on temp.customertype_id = ct.id where temp.id = info.id and temp.primary_class like '1') as gyslx, (select ct.customer_type from (select info.id,ti.type,ti.primary_class,ti.customertype_id,info.unit_code from xzd_customertype_info ti left join xzd_supplier_info info on ti.customerinformation_id = info.id and ti.type like '2' where info.id is not NULL) as temp left join xzd_customertype ct on temp.customertype_id = ct.id where temp.id = info.id and temp.primary_class like '1') as gyslx,
# type.customer_type as gyslx,
supplement.supplier_level as gysdj, supplement.supplier_level as gysdj,
info.is_group_supplier as isGroupSupplier, info.is_group_supplier as isGroupSupplier,
info.is_blacklist as isBlacklist, info.is_blacklist as isBlacklist,
@ -104,9 +101,6 @@
</where> </where>
ORDER BY info.create_time DESC ORDER BY info.create_time DESC
<!-- <if test='bo.pageNum != null and bo.pageSize != null'>-->
<!-- LIMIT #{bo.pageSize} OFFSET #{bo.offset}-->
<!-- </if>-->
</select> </select>