From f2aec44685466b0c514bffa7db4a2d0db1a7f28c Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期三, 08 五月 2024 11:26:37 +0800 Subject: [PATCH] 2024-5-8 绩效管理-班次后端开发完成 --- inspect-server/src/main/resources/mapper/StandardTreeMapper.xml | 40 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 37 insertions(+), 3 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml index fecb954..4c771de 100644 --- a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml +++ b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml @@ -130,7 +130,7 @@ group by sto.specimen_name </select> <select id="selectStandardProductListByTree" resultType="com.yuanchu.mom.pojo.StandardProductList"> - select sample, + select sample sample2, inspection_item, inspection_item_en, inspection_item_subclass, @@ -152,16 +152,50 @@ checkout_number, section, dic, - 0 state + 0 state, + #{model} model, + #{sample} sample, + #{trees} tree from structure_item_parameter where ( sample is NULL OR sample = '' or sample = '[]' - OR sample LIKE CONCAT('%', #{tree}, '%') + OR sample LIKE CONCAT('%[', #{tree}, ']%') ) </select> + <select id="selectStandardProductListByTree2" resultType="com.yuanchu.mom.pojo.StandardProductList"> + select sample sample2, + inspection_item, + inspection_item_en, + inspection_item_subclass, + inspection_item_subclass_en, + method, + son_laboratory, + unit, + ask_tell tell, + ask, + price, + man_hour, + man_hour_group, + man_day, + inspection_item_type, + inspection_value_type, + bsm, + template_id, + laboratory, + checkout_number, + section, + dic, + 0 state, + #{model} model, + #{sample} sample, + #{trees} tree + from structure_item_parameter + where sample LIKE CONCAT('%[', #{tree}, ']%') + </select> + <select id="getStandardTree2" resultMap="SampleTypeDto"> select sto.specimen_name sample_type, p.name sample, -- Gitblit v1.9.3