From 34f78281cf395a24e1f3f1c3b861186ff8a03b7b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 16 十月 2026 11:09:40 +0800
Subject: [PATCH] 出入院模块、门急诊模块、模块模块、宣教模块、其它模块

---
 smartor/src/main/java/com/smartor/mapper/ServiceSubtaskDetailMapper.java |   40 ++++++----------------------------------
 1 files changed, 6 insertions(+), 34 deletions(-)

diff --git a/smartor/src/main/java/com/smartor/mapper/ServiceSubtaskDetailMapper.java b/smartor/src/main/java/com/smartor/mapper/ServiceSubtaskDetailMapper.java
index 5ceb6b8..dff42ec 100644
--- a/smartor/src/main/java/com/smartor/mapper/ServiceSubtaskDetailMapper.java
+++ b/smartor/src/main/java/com/smartor/mapper/ServiceSubtaskDetailMapper.java
@@ -4,7 +4,6 @@
 import com.smartor.domain.ServiceSubtaskDetail;
 import com.smartor.domain.ServiceSubtaskDetailTarget;
 import com.smartor.domain.ServiceSubtaskDetailVO;
-import com.smartor.domain.entity.SatisfactionStatQuery;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 
@@ -30,26 +29,15 @@
     public List<ServiceSubtaskDetailDTO> queryFillCount(@Param("subids") List<Long> subids, @Param("questiontext") String questiontext);
 
     /**
-     * 婊℃剰搴︽煴鐘跺浘锛氫竴娆℃�х粺璁℃湰娆¤姹傚叏閮ㄦā鏉跨殑濉姤閲�
-     * 锛堟寜 libtemplateid + questiontext + score 鍒嗙粍锛屽彧鍥炰紶鍒嗗�间笌鏉℃暟锛屼笉鍥炰紶鏄庣粏琛岋級
+     * 鎸� scriptid 鎵归噺缁熻濉啓璁板綍鏁帮紙涓�娆� SQL 鏇夸唬閫愪釜 scriptid 鏌ユ槑缁嗭級
      * <p>
-     * 鏇夸唬 queryFillCount 鐨� N+1 鍐欐硶锛岃 PatSatisfactionServiceImpl#satisfactionGraph
+     * 鍙e緞涓庡師鏉ャ�宷uery.setScriptid(scriptId) 鍚� selectServiceSubtaskDetailList(...).size()銆嶄竴鑷达細
+     * 鍙寜 scriptid 杩囨护锛屼笉甯� del_flag锛堝師 SQL 閲屽苟娌℃湁 del_flag 鏉′欢锛夈��
      *
-     * @param query 鑱氬悎鏌ヨ鏉′欢
-     * @return 姣忚鍚� libtemplateid銆乹uestiontext銆乻core銆乧nt
+     * @param scriptIds 闂ID闆嗗悎
+     * @return 姣忚鍚� scriptid銆乧nt
      */
-    public List<Map<String, Object>> selectSatisfactionFillStat(SatisfactionStatQuery query);
-
-    /**
-     * 婊℃剰搴︾粺璁★細涓�娆℃�х粺璁℃湰娆¤姹傚叏閮ㄩ棶棰樼殑濉姤閲忥紙鎸� 妯℃澘+闂+matchedtext+score 鍒嗙粍锛�
-     * <p>
-     * 鐢ㄤ簬 statistics / statisticsByDimension 鐨勩�屽悇閫夐」鏁伴噺鍙婂崰姣斻�嶏紝鏇夸唬閫愪釜闂鎵ц鐨�
-     * queryFillCount锛堥偅涓�姝ヤ細鍏堟煡鍑哄嚑涓囦釜 sub_id 鍐嶆嫾杩� IN(...)锛屽苟鎶婄害鍗佷竾琛屾槑缁嗕紶鍥� Java锛夈��
-     *
-     * @param query 鑱氬悎鏌ヨ鏉′欢
-     * @return 姣忚鍚� libtemplateid銆乹uestiontext銆乵atchedtext銆乻core銆乧nt銆乼argetvalue
-     */
-    public List<Map<String, Object>> selectSatisfactionFillStatByMatchedtext(SatisfactionStatQuery query);
+    public List<Map<String, Object>> countDetailByScriptIds(@Param("scriptIds") List<Long> scriptIds);
 
     public ServiceSubtaskDetailDTO isExistServiceSubtaskDetail(@Param("subid") Long subid, @Param("scriptid") Long scriptid);
 
@@ -100,7 +88,6 @@
      */
     public int deleteServiceSubtaskDetailByCalldetailids(String[] calldetailids);
 
-
     /**
      * 鎸囨爣缁熻
      *
@@ -108,19 +95,4 @@
      * @return 鎸囨爣缁熻
      */
     public List<ServiceSubtaskDetailTarget> countPatByTarget(Long targetid);
-
-    /**
-     * 鏌ヨ鍚屼釜subid閲嶅鐨刣etail鏁版嵁ID鍒楄〃
-     *
-     * @return 閲嶅璁板綍ID鍒楄〃
-     */
-    public List<Long> selectRepeatDetailIds();
-
-    /**
-     * 鏍规嵁ID鍒楄〃鎵归噺鏍囪閲嶅detail鏁版嵁涓哄垹闄�
-     *
-     * @param ids 閲嶅璁板綍ID鍒楄〃
-     * @return 鏇存柊琛屾暟
-     */
-    public Integer deleteRepeatDetailByIds(@Param("ids") List<Long> ids);
 }

--
Gitblit v1.9.3