From dc9228656b202a8f1ec7720d78eb0421a94a28c9 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期四, 23 十月 2025 16:20:14 +0800
Subject: [PATCH] 聚乳酸明细增加丙交酯含量,%指标
---
src/main/resources/mapper/LocMastMapper.xml | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 6c8748f..c2b1d9a 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -88,7 +88,17 @@
</select>
<select id="selectNodeByLev" resultMap="BaseResultMap">
- SELECT * FROM asr_node_loc_view WHERE lev1 = #{lev}
+ SELECT * FROM asr_node_loc_view
+ <where>
+ <choose>
+ <when test="area == 'A'.toString()">
+ loc_no like 'A0%' AND lev1 = #{lev}
+ </when>
+ <otherwise>
+ loc_no like CONCAT(#{area}, '%0%')
+ </otherwise>
+ </choose>
+ </where>
</select>
<select id="selectLocStatus" resultMap="BaseResultMap">
--
Gitblit v1.9.1