From 816eea15ab68b3efb03786be616687b2e197014f Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期四, 15 十月 2026 17:35:47 +0800
Subject: [PATCH] 【丽水】insertOrUpdateTask报错问题处理

---
 smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
index ef03c5f..2331fcb 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
@@ -30,6 +30,7 @@
         <result property="isupload" column="isupload"/>
         <result property="uploadTime" column="upload_time"/>
         <result property="orgid" column="orgid"/>
+        <result property="campusid" column="campusid"/>
         <result property="pid" column="pid"/>
         <result property="guid" column="guid"/>
         <result property="preachform" column="preachform"/>
@@ -115,6 +116,7 @@
                leavehospitaldistrictcode,
                leavehospitaldistrictname,
                orgid,
+               campusid,
                nexttaskflag,
                nexttaskid,
                nexttaskname,
@@ -161,6 +163,7 @@
         <if test="isupload != null ">and isupload = #{isupload}</if>
         <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
         <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
+        <if test="campusid != null  and campusid != ''">and campusid = #{campusid}</if>
         <if test="compensateDate != null  and compensateDate != ''">and compensate_date = #{compensateDate}</if>
         <if test="hospType != null  and hospType != ''">and hosp_type = #{hospType}</if>
         <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if>
@@ -252,7 +255,8 @@
         service_task.nexttaskflag,
         service_task.nexttaskid,
         service_task.nexttaskname,
-        service_task.orgid from service_task
+        service_task.orgid,
+        service_task.campusid from service_task
         where 1=1
         and service_task.del_flag = 0
         <!--            and taskid in (-->
@@ -342,7 +346,8 @@
         <if test="deptname != null  and deptname != ''">and service_task.deptname = #{deptname}</if>
         <if test="isupload != null ">and service_task.isupload = #{isupload}</if>
         <if test="uploadTime != null ">and service_task.upload_time = #{uploadTime}</if>
-        <if test="orgid != null  and orgid != ''">and service_task.orgid = #{orgid}</if>
+        <if test="orgid != null and orgid != ''">and service_task.orgid = #{orgid}</if>
+        <if test="campusid != null and campusid != ''">and service_task.campusid = #{campusid}</if>
         <if test="compensateDate != null  and compensateDate != ''">and service_task.compensate_date =
             #{compensateDate}
         </if>
@@ -370,6 +375,7 @@
         <if test="isupload != null ">and service_task.isupload = #{isupload}</if>
         <if test="uploadTime != null ">and service_task.upload_time = #{uploadTime}</if>
         <if test="orgid != null  and orgid != ''">and service_task.orgid = #{orgid}</if>
+        <if test="campusid != null  and campusid != ''">and service_task.campusid = #{campusid}</if>
         <if test="compensateDate != null  and compensateDate != ''">and service_task.compensate_date =
             #{compensateDate}
         </if>
@@ -455,6 +461,10 @@
             <if test="isupload != null">isupload,</if>
             <if test="uploadTime != null">upload_time,</if>
             <if test="orgid != null">orgid,</if>
+            <if test="campusid != null and campusid != ''">campusid,</if>
+            <if test="nexttaskflag != null">nexttaskflag,</if>
+            <if test="nexttaskid != null">nexttaskid,</if>
+            <if test="nexttaskname != null">nexttaskname,</if>
             <if test="pid != null">pid,</if>
             <if test="guid != null">guid,</if>
             <if test="preachform != null">preachform,</if>
@@ -508,6 +518,7 @@
             <if test="isupload != null">#{isupload},</if>
             <if test="uploadTime != null">#{uploadTime},</if>
             <if test="orgid != null">#{orgid},</if>
+            <if test="campusid != null and campusid != ''">#{campusid},</if>
             <if test="nexttaskflag != null">#{nexttaskflag},</if>
             <if test="nexttaskid != null">#{nexttaskid},</if>
             <if test="nexttaskname != null">#{nexttaskname},</if>
@@ -534,7 +545,7 @@
             <if test="jsy != null  and jsy != ''">#{jsy},</if>
             <if test="leavehospitaldistrictname != null  ">#{leavehospitaldistrictname},</if>
             <if test="leavehospitaldistrictcode != null  ">#{leavehospitaldistrictcode},</if>
-            <if test="compensateDate != null  and compensateDate != ''">#{compensateDate}</if>
+            <if test="compensateDate != null  and compensateDate != ''">#{compensateDate},</if>
             <if test="sendDay != null  ">#{sendDay},</if>
             <if test="appltype != null  ">#{appltype},</if>
             <if test="patCycle != null  ">#{patCycle},</if>
@@ -568,6 +579,7 @@
             <if test="isupload != null">isupload = #{isupload},</if>
             <if test="uploadTime != null">upload_time = #{uploadTime},</if>
             <if test="orgid != null">orgid = #{orgid},</if>
+            <if test="campusid != null and campusid != ''">campusid = #{campusid},</if>
             <if test="nexttaskflag != null">nexttaskflag = #{nexttaskflag},</if>
             <if test="nexttaskid != null">nexttaskid = #{nexttaskid},</if>
             <if test="nexttaskname != null and nexttaskname!=''">nexttaskname = #{nexttaskname},</if>

--
Gitblit v1.9.3