From 86b103f926cf92fff3d591c6ba07099ad8db3ad1 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 01 七月 2025 15:53:04 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml | 306 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 306 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml b/smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml new file mode 100644 index 0000000..2f08750 --- /dev/null +++ b/smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml @@ -0,0 +1,306 @@ +<?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.PatSatisfactionMapper"> + + <resultMap type="com.smartor.domain.PatSatisfaction" id="PatSatisfactionResult"> + <result property="id" column="id"/> + <result property="patName" column="pat_name"/> + <result property="patCode" column="pat_code"/> + <result property="phone" column="phone"/> + <result property="hospitaldistrictname" column="hospitaldistrictname"/> + <result property="hospitaldistrictcode" column="hospitaldistrictcode"/> + <result property="deptname" column="deptname"/> + <result property="deptcode" column="deptcode"/> + <result property="authenticity" column="authenticity"/> + <result property="weekFinish" column="week_finish"/> + <result property="standard" column="standard"/> + <result property="timeliness" column="timeliness"/> + <result property="library" column="library"/> + <result property="environment" column="environment"/> + <result property="doctorSatisfaction" column="doctor_satisfaction"/> + <result property="nurseSatisfaction" column="nurse_satisfaction"/> + <result property="updateTime" column="update_time"/> + <result property="createTime" column="create_time"/> + <result property="updateBy" column="update_by"/> + <result property="createBy" column="create_by"/> + <result property="delFlag" column="del_flag"/> + <result property="orgid" column="orgid"/> + </resultMap> + + <sql id="selectPatSatisfactionVo"> + select id, + orgid, + pat_name, + pat_code, + phone, + hospitaldistrictname, + hospitaldistrictcode, + deptname, + deptcode, + authenticity, + week_finish, + standard, + timeliness, + library, + environment, + doctor_satisfaction, + nurse_satisfaction, + update_time, + create_time, + update_by, + create_by, + del_flag + from pat_satisfaction + </sql> + + <select id="selectPatSatisfactionList" parameterType="com.smartor.domain.PatSatisfaction" + resultMap="PatSatisfactionResult"> + <include refid="selectPatSatisfactionVo"/> + <where> + del_flag=0 + <if test="patName != null and patName != ''"> + and pat_name like concat('%', #{patName}, '%') + </if> + <if test="patCode != null and patCode != ''"> + and pat_code = #{patCode} + </if> + <if test="phone != null and phone != ''"> + and phone = #{phone} + </if> + <if test="hospitaldistrictname != null and hospitaldistrictname != ''"> + and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%') + </if> + <if test="hospitaldistrictcode != null and hospitaldistrictcode != ''"> + and hospitaldistrictcode = #{hospitaldistrictcode} + </if> + <if test="deptname != null and deptname != ''"> + and deptname like concat('%', #{deptname}, '%') + </if> + <if test="deptcode != null and deptcode != ''"> + and deptcode = #{deptcode} + </if> + <if test="authenticity != null and authenticity != ''"> + and authenticity = #{authenticity} + </if> + <if test="weekFinish != null and weekFinish != ''"> + and week_finish = #{weekFinish} + </if> + <if test="standard != null and standard != ''"> + and standard = #{standard} + </if> + <if test="timeliness != null and timeliness != ''"> + and timeliness = #{timeliness} + </if> + <if test="library != null and library != ''"> + and library = #{library} + </if> + <if test="environment != null and environment != ''"> + and environment = #{environment} + </if> + <if test="doctorSatisfaction != null and doctorSatisfaction != ''"> + and doctor_satisfaction = #{doctorSatisfaction} + </if> + <if test="nurseSatisfaction != null and nurseSatisfaction != ''"> + and nurse_satisfaction = #{nurseSatisfaction} + </if> + <if test="orgid != null and orgid != ''"> + and orgid = #{orgid} + </if> + </where> + </select> + + <select id="selectPatSatisfactionById" parameterType="Long" + resultMap="PatSatisfactionResult"> + <include refid="selectPatSatisfactionVo"/> + where id = #{id} + </select> + + <insert id="insertPatSatisfaction" parameterType="com.smartor.domain.PatSatisfaction"> + insert into pat_satisfaction + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="id != null">id, + </if> + <if test="patName != null">pat_name, + </if> + <if test="patCode != null">pat_code, + </if> + <if test="phone != null">phone, + </if> + <if test="hospitaldistrictname != null">hospitaldistrictname, + </if> + <if test="hospitaldistrictcode != null">hospitaldistrictcode, + </if> + <if test="deptname != null">deptname, + </if> + <if test="deptcode != null">deptcode, + </if> + <if test="authenticity != null">authenticity, + </if> + <if test="weekFinish != null">week_finish, + </if> + <if test="standard != null">standard, + </if> + <if test="timeliness != null">timeliness, + </if> + <if test="library != null">library, + </if> + <if test="environment != null">environment, + </if> + <if test="doctorSatisfaction != null">doctor_satisfaction, + </if> + <if test="nurseSatisfaction != null">nurse_satisfaction, + </if> + <if test="updateTime != null">update_time, + </if> + <if test="createTime != null">create_time, + </if> + <if test="updateBy != null">update_by, + </if> + <if test="createBy != null">create_by, + </if> + <if test="delFlag != null">del_flag, + </if> + <if test="orgid != null">orgid, + </if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="id != null">#{id}, + </if> + <if test="patName != null">#{patName}, + </if> + <if test="patCode != null">#{patCode}, + </if> + <if test="phone != null">#{phone}, + </if> + <if test="hospitaldistrictname != null">#{hospitaldistrictname}, + </if> + <if test="hospitaldistrictcode != null">#{hospitaldistrictcode}, + </if> + <if test="deptname != null">#{deptname}, + </if> + <if test="deptcode != null">#{deptcode}, + </if> + <if test="authenticity != null">#{authenticity}, + </if> + <if test="weekFinish != null">#{weekFinish}, + </if> + <if test="standard != null">#{standard}, + </if> + <if test="timeliness != null">#{timeliness}, + </if> + <if test="library != null">#{library}, + </if> + <if test="environment != null">#{environment}, + </if> + <if test="doctorSatisfaction != null">#{doctorSatisfaction}, + </if> + <if test="nurseSatisfaction != null">#{nurseSatisfaction}, + </if> + <if test="updateTime != null">#{updateTime}, + </if> + <if test="createTime != null">#{createTime}, + </if> + <if test="updateBy != null">#{updateBy}, + </if> + <if test="createBy != null">#{createBy}, + </if> + <if test="delFlag != null">#{delFlag}, + </if> + <if test="orgid != null">#{orgid}, + </if> + </trim> + </insert> + + <update id="updatePatSatisfaction" parameterType="com.smartor.domain.PatSatisfaction"> + update pat_satisfaction + <trim prefix="SET" suffixOverrides=","> + <if test="patName != null">pat_name = + #{patName}, + </if> + <if test="patCode != null">pat_code = + #{patCode}, + </if> + <if test="phone != null">phone = + #{phone}, + </if> + <if test="hospitaldistrictname != null">hospitaldistrictname = + #{hospitaldistrictname}, + </if> + <if test="hospitaldistrictcode != null">hospitaldistrictcode = + #{hospitaldistrictcode}, + </if> + <if test="deptname != null">deptname = + #{deptname}, + </if> + <if test="deptcode != null">deptcode = + #{deptcode}, + </if> + <if test="authenticity != null">authenticity = + #{authenticity}, + </if> + <if test="weekFinish != null">week_finish = + #{weekFinish}, + </if> + <if test="standard != null">standard = + #{standard}, + </if> + <if test="timeliness != null">timeliness = + #{timeliness}, + </if> + <if test="library != null">library = + #{library}, + </if> + <if test="environment != null">environment = + #{environment}, + </if> + <if test="doctorSatisfaction != null">doctor_satisfaction = + #{doctorSatisfaction}, + </if> + <if test="nurseSatisfaction != null">nurse_satisfaction = + #{nurseSatisfaction}, + </if> + <if test="updateTime != null">update_time = + #{updateTime}, + </if> + <if test="createTime != null">create_time = + #{createTime}, + </if> + <if test="updateBy != null">update_by = + #{updateBy}, + </if> + <if test="createBy != null">create_by = + #{createBy}, + </if> + <if test="delFlag != null">del_flag = + #{delFlag}, + </if> + <if test="orgid != null">orgid = + #{orgid}, + </if> + </trim> + where id = #{id} + </update> + + <update id="deletePatSatisfactionById" parameterType="Long"> + update pat_satisfaction + <trim prefix="SET" suffixOverrides=","> + del_flag =1 + </trim> + where id = #{id} + </update> + + <update id="deletePatSatisfactionByIds" parameterType="String"> + update pat_satisfaction + <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