From ec6b75cfebe87ad118aba001708e686bf28e2fde Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 03 八月 2026 20:57:04 +0800
Subject: [PATCH] 1.新增同德药品采集、宣教功能 2.处理新华采集BUG 3.新增service_subtask的院区ID 4.采集同德的入院申请单信息 5.给出院表新增药品字段、入院申请单字段
---
smartor/src/main/resources/mapper/smartor/ServiceTaskmedicalMapper.xml | 326 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 326 insertions(+), 0 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/ServiceTaskmedicalMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceTaskmedicalMapper.xml
new file mode 100644
index 0000000..15ac16e
--- /dev/null
+++ b/smartor/src/main/resources/mapper/smartor/ServiceTaskmedicalMapper.xml
@@ -0,0 +1,326 @@
+<?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.smartor.mapper.ServiceTaskmedicalMapper">
+
+ <resultMap type="com.smartor.domain.ServiceTaskmedical" id="ServiceTaskmedicalResult">
+ <result property="id" column="id"/>
+ <result property="orgid" column="orgid"/>
+ <result property="taskId" column="task_id"/>
+ <result property="taskName" column="task_name"/>
+ <result property="longtask" column="longtask"/>
+ <result property="serviceType" column="service_type"/>
+ <result property="icd10id" column="icd10id"/>
+ <result property="medicalCode" column="medical_code"/>
+ <result property="medicalName" column="medical_name"/>
+ <result property="medicalCompany" column="medical_company"/>
+ <result property="delFlag" column="del_flag"/>
+ <result property="updateBy" column="update_by"/>
+ <result property="updateTime" column="update_time"/>
+ <result property="createBy" column="create_by"/>
+ <result property="createTime" column="create_time"/>
+ <result property="isupload" column="isupload"/>
+ <result property="uploadTime" column="upload_time"/>
+ <result property="guid" column="guid"/>
+ <result property="pguid" column="pguid"/>
+ <result property="pid" column="pid"/>
+ <result property="wardCode" column="ward_code"/>
+ <result property="wardName" column="ward_name"/>
+ <result property="deptCode" column="dept_code"/>
+ <result property="deptName" column="dept_name"/>
+ </resultMap>
+
+ <sql id="selectServiceTaskmedicalVo">
+ select id,
+ orgid,
+ task_id,
+ task_name,
+ longtask,
+ service_type,
+ icd10id,
+ medical_code,
+ medical_name,
+ medical_company,
+ del_flag,
+ update_by,
+ update_time,
+ create_by,
+ create_time,
+ isupload,
+ upload_time,
+ guid,
+ pguid,
+ pid,
+ ward_code,
+ ward_name,
+ dept_code,
+ dept_name
+ from service_taskmedical
+ </sql>
+
+ <select id="selectServiceTaskmedicalList" parameterType="com.smartor.domain.ServiceTaskmedical"
+ resultMap="ServiceTaskmedicalResult">
+ <include refid="selectServiceTaskmedicalVo"/>
+ where 1=1
+ and del_flag=0
+ <if test="orgid != null and orgid != ''">
+ and orgid = #{orgid}
+ </if>
+ <if test="taskId != null ">
+ and task_id = #{taskId}
+ </if>
+ <if test="taskName != null and taskName != ''">
+ and task_name like concat('%', #{taskName}, '%')
+ </if>
+ <if test="longtask != null ">
+ and longtask = #{longtask}
+ </if>
+ <if test="serviceType != null and serviceType != ''">
+ and service_type = #{serviceType}
+ </if>
+ <if test="icd10id != null ">
+ and icd10id = #{icd10id}
+ </if>
+ <if test="medicalCode != null and medicalCode != ''">
+ and medical_code = #{medicalCode}
+ </if>
+ <if test="medicalName != null and medicalName != ''">
+ and medical_name like concat('%', #{medicalName}, '%')
+ </if>
+ <if test="medicalCompany != null and medicalCompany != ''">
+ and medical_company = #{medicalCompany}
+ </if>
+ <if test="isupload != null ">
+ and isupload = #{isupload}
+ </if>
+ <if test="uploadTime != null ">
+ and upload_time = #{uploadTime}
+ </if>
+ <if test="guid != null and guid != ''">
+ and guid = #{guid}
+ </if>
+ <if test="pguid != null and pguid != ''">
+ and pguid = #{pguid}
+ </if>
+ <if test="pid != null ">
+ and pid = #{pid}
+ </if>
+ <if test="wardCode != null and wardCode != ''">
+ and ward_code = #{wardCode}
+ </if>
+ <if test="wardName != null and wardName != ''">
+ and ward_name like concat('%', #{wardName}, '%')
+ </if>
+ <if test="deptCode != null and deptCode != ''">
+ and dept_code = #{deptCode}
+ </if>
+ <if test="deptName != null and deptName != ''">
+ and dept_name like concat('%', #{deptName}, '%')
+ </if>
+ </select>
+
+ <select id="selectServiceTaskmedicalById" parameterType="Long"
+ resultMap="ServiceTaskmedicalResult">
+ <include refid="selectServiceTaskmedicalVo"/>
+ where id = #{id}
+ </select>
+
+ <insert id="insertServiceTaskmedical" parameterType="com.smartor.domain.ServiceTaskmedical" useGeneratedKeys="true"
+ keyProperty="id">
+ insert into service_taskmedical
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="orgid != null">orgid,
+ </if>
+ <if test="taskId != null">task_id,
+ </if>
+ <if test="taskName != null">task_name,
+ </if>
+ <if test="longtask != null">longtask,
+ </if>
+ <if test="serviceType != null">service_type,
+ </if>
+ <if test="icd10id != null">icd10id,
+ </if>
+ <if test="medicalCode != null">medical_code,
+ </if>
+ <if test="medicalName != null">medical_name,
+ </if>
+ <if test="medicalCompany != null">medical_company,
+ </if>
+ <if test="delFlag != null">del_flag,
+ </if>
+ <if test="updateBy != null">update_by,
+ </if>
+ <if test="updateTime != null">update_time,
+ </if>
+ <if test="createBy != null">create_by,
+ </if>
+ <if test="createTime != null">create_time,
+ </if>
+ <if test="isupload != null">isupload,
+ </if>
+ <if test="uploadTime != null">upload_time,
+ </if>
+ <if test="guid != null">guid,
+ </if>
+ <if test="pguid != null">pguid,
+ </if>
+ <if test="pid != null">pid,
+ </if>
+ <if test="wardCode != null">ward_code,
+ </if>
+ <if test="wardName != null">ward_name,
+ </if>
+ <if test="deptCode != null">dept_code,
+ </if>
+ <if test="deptName != null">dept_name,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="orgid != null">#{orgid},
+ </if>
+ <if test="taskId != null">#{taskId},
+ </if>
+ <if test="taskName != null">#{taskName},
+ </if>
+ <if test="longtask != null">#{longtask},
+ </if>
+ <if test="serviceType != null">#{serviceType},
+ </if>
+ <if test="icd10id != null">#{icd10id},
+ </if>
+ <if test="medicalCode != null">#{medicalCode},
+ </if>
+ <if test="medicalName != null">#{medicalName},
+ </if>
+ <if test="medicalCompany != null">#{medicalCompany},
+ </if>
+ <if test="delFlag != null">#{delFlag},
+ </if>
+ <if test="updateBy != null">#{updateBy},
+ </if>
+ <if test="updateTime != null">#{updateTime},
+ </if>
+ <if test="createBy != null">#{createBy},
+ </if>
+ <if test="createTime != null">#{createTime},
+ </if>
+ <if test="isupload != null">#{isupload},
+ </if>
+ <if test="uploadTime != null">#{uploadTime},
+ </if>
+ <if test="guid != null">#{guid},
+ </if>
+ <if test="pguid != null">#{pguid},
+ </if>
+ <if test="pid != null">#{pid},
+ </if>
+ <if test="wardCode != null">#{wardCode},
+ </if>
+ <if test="wardName != null">#{wardName},
+ </if>
+ <if test="deptCode != null">#{deptCode},
+ </if>
+ <if test="deptName != null">#{deptName},
+ </if>
+ </trim>
+ </insert>
+
+ <update id="updateServiceTaskmedical" parameterType="com.smartor.domain.ServiceTaskmedical">
+ update service_taskmedical
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="orgid != null">orgid =
+ #{orgid},
+ </if>
+ <if test="taskId != null">task_id =
+ #{taskId},
+ </if>
+ <if test="taskName != null">task_name =
+ #{taskName},
+ </if>
+ <if test="longtask != null">longtask =
+ #{longtask},
+ </if>
+ <if test="serviceType != null">service_type =
+ #{serviceType},
+ </if>
+ <if test="icd10id != null">icd10id =
+ #{icd10id},
+ </if>
+ <if test="medicalCode != null">medical_code =
+ #{medicalCode},
+ </if>
+ <if test="medicalName != null">medical_name =
+ #{medicalName},
+ </if>
+ <if test="medicalCompany != null">medical_company =
+ #{medicalCompany},
+ </if>
+ <if test="delFlag != null">del_flag =
+ #{delFlag},
+ </if>
+ <if test="updateBy != null">update_by =
+ #{updateBy},
+ </if>
+ <if test="updateTime != null">update_time =
+ #{updateTime},
+ </if>
+ <if test="createBy != null">create_by =
+ #{createBy},
+ </if>
+ <if test="createTime != null">create_time =
+ #{createTime},
+ </if>
+ <if test="isupload != null">isupload =
+ #{isupload},
+ </if>
+ <if test="uploadTime != null">upload_time =
+ #{uploadTime},
+ </if>
+ <if test="guid != null">guid =
+ #{guid},
+ </if>
+ <if test="pguid != null">pguid =
+ #{pguid},
+ </if>
+ <if test="pid != null">pid =
+ #{pid},
+ </if>
+ <if test="wardCode != null">ward_code =
+ #{wardCode},
+ </if>
+ <if test="wardName != null">ward_name =
+ #{wardName},
+ </if>
+ <if test="deptCode != null">dept_code =
+ #{deptCode},
+ </if>
+ <if test="deptName != null">dept_name =
+ #{deptName},
+ </if>
+ </trim>
+ where id = #{id}
+ </update>
+
+ <update id="deleteServiceTaskmedicalById" parameterType="Long">
+ update service_taskmedical
+ <trim prefix="SET" suffixOverrides=",">
+ del_flag =1
+ </trim>
+ where id = #{id}
+ </update>
+
+ <update id="deleteServiceTaskmedicalByIds" parameterType="String">
+ update service_taskmedical
+ <trim prefix="SET" suffixOverrides=",">
+ del_flag =1
+ </trim>
+ where id in
+ <foreach item="id" collection="array" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </update>
+
+
+</mapper>
--
Gitblit v1.9.3