From 87b79ea739ec32bd7d0e493a6ea8525212f6c763 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期六, 10 十月 2026 15:11:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into smartor_ls_261008

---
 smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionMapper.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionMapper.xml
index 8de34f9..a17e5f2 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionMapper.xml
@@ -126,6 +126,23 @@
         where id = #{id}
     </select>
 
+    <!--
+        婊℃剰搴︾粺璁★細涓�娆″彇鍥炲涓棶棰樼殑閫夐」鍒嗗�硷紙鍙彇 scriptid銆乻core锛夈��
+        绛変环浜庨�愪釜闂鎵ц selectSvyLibTemplateTargetoptionList(scriptid)锛屼絾鍙彇鐢ㄥ緱鍒扮殑鍒楋紱
+        scriptIds 涓虹┖鏃朵笉鍔� scriptid 杩囨护锛堝搴斿師鏌ヨ scriptid 涓� null 鏃朵涪寮冭鏉′欢鐨勮涓猴級銆�
+    -->
+    <select id="selectSvyLibTargetoptionScores" resultType="java.util.Map">
+        select scriptid as scriptid, score as score
+        from svy_lib_template_targetoption
+        where del_flag = 0
+        <if test="scriptIds != null and scriptIds.size() > 0">
+            and scriptid IN
+            <foreach collection="scriptIds" item="scriptId" open="(" separator="," close=")">
+                #{scriptId}
+            </foreach>
+        </if>
+    </select>
+
     <insert id="insertSvyLibTemplateTargetoption" parameterType="com.smartor.domain.SvyLibTemplateTargetoption"
             useGeneratedKeys="true" keyProperty="id">
         insert into svy_lib_template_targetoption
@@ -268,4 +285,14 @@
             #{id}
         </foreach>
     </delete>
+
+    <select id="selectByScriptIds" resultMap="SvyLibTemplateTargetoptionResult">
+        <include refid="selectSvyLibTemplateTargetoptionVo"/>
+        where del_flag = 0
+        and scriptid in
+        <foreach item="scriptId" collection="scriptIds" open="(" separator="," close=")">
+            #{scriptId}
+        </foreach>
+        <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
+    </select>
 </mapper>

--
Gitblit v1.9.3