From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001 From: sfd <sun.sunshine@163.com> Date: 星期一, 26 五月 2025 15:04:45 +0800 Subject: [PATCH] 修改json类型转换错误 --- aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessShopStatMapper.xml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessShopStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessShopStatMapper.xml index 149a884..cd5fdee 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessShopStatMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlate/ApsPlateProcessShopStatMapper.xml @@ -131,4 +131,51 @@ ) </foreach> </insert> + + + <!--閽i噾璁″垝澶ц〃 宸ュ崟鍩虹淇℃伅鏌ヨ--> + <select id="selectPlatePlanBaseTable" resultType="com.aps.core.domain.ApsPlate.ApsPlateProcessShopPlanStat"> + with a as( + select ap.document_number, string_agg(pr.process_name,',') as remained_process + from aps_plate_plan as ap + left join aps_process_route as pr on ap.document_number=pr.work_order_no + where cast(pr.process_number as numeric) > cast(ap.process_number as numeric) + group by ap.document_number + ), + b as ( + select app.doc_no, string_agg( app.require_track_id ,',') as require_track_id + from aps_plate_standard_require_bom_order_detail as app + where del_flag='0' + group by app.doc_no + ) + select + app.id, + b.require_track_id, + app.main_part_number, + app.customer, + app.business_type, + app.document_number, + app.item_number, + app.drawing_no, + app.version_number, + app.low_order_code, + app.production_quantity, + app.requirement_type, + app.document_status, + app.approve_on, + app.process_number, + app.work_center, + app.department, + app.op_status, + app.next_op_name, + app.order_create_time, + app.start_work_date, + app.production_base, + app.plan_end_day, + a.remained_process + from aps_plate_plan as app + left join a on app.document_number=a.document_number + left join b on app.document_number=b.doc_no + where app.del_flag='0'; + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3