From 79c4524bc2cac69ef74cbf4adc6a092e3bfa4f4b Mon Sep 17 00:00:00 2001
From: seatonwan9
Date: 星期四, 28 八月 2025 02:07:17 +0800
Subject: [PATCH] 更新代码

---
 src/main/resources/mapper/ReportResultSubmissionMapper.xml |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/ReportResultSubmissionMapper.xml b/src/main/resources/mapper/ReportResultSubmissionMapper.xml
new file mode 100644
index 0000000..447d8ef
--- /dev/null
+++ b/src/main/resources/mapper/ReportResultSubmissionMapper.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.webmanage.mapper.ReportResultSubmissionMapper">
+
+    <!-- 鏍规嵁鏉′欢鏌ヨ浜у搧ID鍒楄〃 -->
+    <select id="selectProductIdsByConditions" resultType="java.lang.String">
+        SELECT id
+        FROM tb_report_result_submission
+        WHERE deleted = '0'
+        <if test="industryId != null and industryId != ''">
+            AND industrial_chain_id = #{industryId}
+        </if>
+        <if test="unitProjectId != null and unitProjectId != ''">
+            AND important_area_id = #{unitProjectId}
+        </if>
+        <if test="productTypeId != null and productTypeId != ''">
+            AND type_id = #{productTypeId}
+        </if>
+        <if test="productSubTypeId != null and productSubTypeId != ''">
+            AND type_child_id = #{productSubTypeId}
+        </if>
+    </select>
+
+</mapper>

--
Gitblit v1.8.0