From e6e5a67f94513e90da40cc28f21d0d2c6d9cbe7d Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期二, 15 四月 2025 17:34:01 +0800 Subject: [PATCH] 修改ifs对接方法 --- inspect-server/src/main/resources/mapper/InsSampleMapper.xml | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml index 2f7423d..9c9f99f 100644 --- a/inspect-server/src/main/resources/mapper/InsSampleMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsSampleMapper.xml @@ -250,6 +250,7 @@ <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> + ORDER BY send_time asc </select> <select id="inspectionOrderDetailsTaskSwitching" resultType="com.ruoyi.inspect.vo.InsOrderPlanTaskSwitchVo"> @@ -462,7 +463,8 @@ ifs.id inventoryQuantityId, ifs.buy_unit_meas buyUnitMeas, io.test_quantity testQuantity, - ifs.buy_unit_meas buyUnitMeas + ifs.buy_unit_meas buyUnitMeas, + ifs.declare_date declareDate FROM ifs_inventory_quantity ifs LEFT JOIN ins_order io ON ifs.id = io.ifs_inventory_id @@ -554,9 +556,6 @@ <if test="repetitionTag != null and repetitionTag != ''"> and ip.repetition_tag = #{repetitionTag} </if> - <if test="isDisqualification != null and isDisqualification != ''"> - and ip.ins_result = 0 - </if> order by sort asc </select> @@ -571,9 +570,6 @@ and ins_fibers_id is null and standard_method_list_id is not null and ip.raw_material_tag = #{rawMaterialTag} - <if test="isDisqualification != null and isDisqualification != ''"> - and ip.ins_result = 0 - </if> order by sort asc </select> @@ -696,4 +692,13 @@ order by ip.sort asc </select> + <!-- 鏍规嵁璁㈠崟id鏌ヨ鏍峰搧 --> + <select id="getSampleByOrderId" resultType="com.ruoyi.inspect.pojo.InsSample"> + select is2.*, + sml.name standard_method_name + from ins_sample is2 + left join standard_method sml on sml.id = is2.standard_method_list_id + where is2.ins_order_id = #{insOrderId} + </select> + </mapper> -- Gitblit v1.9.3