大唐会议项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

412 lines
16 KiB

<?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.acupuncture.system.persist.mapper.FmsFollowupQueueMapper">
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.FmsFollowupQueue">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="followup_method" jdbcType="TINYINT" property="followupMethod" />
<result column="followup_type" jdbcType="TINYINT" property="followupType" />
<result column="frequency" jdbcType="VARCHAR" property="frequency" />
<result column="followup_month" jdbcType="INTEGER" property="followupMonth" />
<result column="person_in_charge" jdbcType="VARCHAR" property="personInCharge" />
<result column="person_in_charge_username" jdbcType="VARCHAR" property="personInChargeUsername" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="remind_time" jdbcType="INTEGER" property="remindTime" />
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="follow_window_adys" jdbcType="INTEGER" property="followWindowAdys" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, followup_method, followup_type, frequency, followup_month, person_in_charge,
person_in_charge_username, status, remind_time, del_flag, tenant_id, create_by, create_time,
update_by, update_time, remark, follow_window_adys
</sql>
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueueExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from fms_followup_queue
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from fms_followup_queue
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from fms_followup_queue
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue">
insert into fms_followup_queue (id, name, followup_method,
followup_type, frequency, followup_month,
person_in_charge, person_in_charge_username,
status, remind_time, del_flag,
tenant_id, create_by, create_time,
update_by, update_time, remark,
follow_window_adys)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{followupMethod,jdbcType=TINYINT},
#{followupType,jdbcType=TINYINT}, #{frequency,jdbcType=VARCHAR}, #{followupMonth,jdbcType=INTEGER},
#{personInCharge,jdbcType=VARCHAR}, #{personInChargeUsername,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT}, #{remindTime,jdbcType=INTEGER}, #{delFlag,jdbcType=TINYINT},
#{tenantId,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR},
#{followWindowAdys,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue">
insert into fms_followup_queue
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="followupMethod != null">
followup_method,
</if>
<if test="followupType != null">
followup_type,
</if>
<if test="frequency != null">
frequency,
</if>
<if test="followupMonth != null">
followup_month,
</if>
<if test="personInCharge != null">
person_in_charge,
</if>
<if test="personInChargeUsername != null">
person_in_charge_username,
</if>
<if test="status != null">
status,
</if>
<if test="remindTime != null">
remind_time,
</if>
<if test="delFlag != null">
del_flag,
</if>
<if test="tenantId != null">
tenant_id,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="remark != null">
remark,
</if>
<if test="followWindowAdys != null">
follow_window_adys,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="followupMethod != null">
#{followupMethod,jdbcType=TINYINT},
</if>
<if test="followupType != null">
#{followupType,jdbcType=TINYINT},
</if>
<if test="frequency != null">
#{frequency,jdbcType=VARCHAR},
</if>
<if test="followupMonth != null">
#{followupMonth,jdbcType=INTEGER},
</if>
<if test="personInCharge != null">
#{personInCharge,jdbcType=VARCHAR},
</if>
<if test="personInChargeUsername != null">
#{personInChargeUsername,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="remindTime != null">
#{remindTime,jdbcType=INTEGER},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=TINYINT},
</if>
<if test="tenantId != null">
#{tenantId,jdbcType=BIGINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="followWindowAdys != null">
#{followWindowAdys,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueueExample" resultType="java.lang.Long">
select count(*) from fms_followup_queue
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update fms_followup_queue
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.followupMethod != null">
followup_method = #{record.followupMethod,jdbcType=TINYINT},
</if>
<if test="record.followupType != null">
followup_type = #{record.followupType,jdbcType=TINYINT},
</if>
<if test="record.frequency != null">
frequency = #{record.frequency,jdbcType=VARCHAR},
</if>
<if test="record.followupMonth != null">
followup_month = #{record.followupMonth,jdbcType=INTEGER},
</if>
<if test="record.personInCharge != null">
person_in_charge = #{record.personInCharge,jdbcType=VARCHAR},
</if>
<if test="record.personInChargeUsername != null">
person_in_charge_username = #{record.personInChargeUsername,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.remindTime != null">
remind_time = #{record.remindTime,jdbcType=INTEGER},
</if>
<if test="record.delFlag != null">
del_flag = #{record.delFlag,jdbcType=TINYINT},
</if>
<if test="record.tenantId != null">
tenant_id = #{record.tenantId,jdbcType=BIGINT},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.followWindowAdys != null">
follow_window_adys = #{record.followWindowAdys,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update fms_followup_queue
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
followup_method = #{record.followupMethod,jdbcType=TINYINT},
followup_type = #{record.followupType,jdbcType=TINYINT},
frequency = #{record.frequency,jdbcType=VARCHAR},
followup_month = #{record.followupMonth,jdbcType=INTEGER},
person_in_charge = #{record.personInCharge,jdbcType=VARCHAR},
person_in_charge_username = #{record.personInChargeUsername,jdbcType=VARCHAR},
status = #{record.status,jdbcType=TINYINT},
remind_time = #{record.remindTime,jdbcType=INTEGER},
del_flag = #{record.delFlag,jdbcType=TINYINT},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
follow_window_adys = #{record.followWindowAdys,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue">
update fms_followup_queue
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="followupMethod != null">
followup_method = #{followupMethod,jdbcType=TINYINT},
</if>
<if test="followupType != null">
followup_type = #{followupType,jdbcType=TINYINT},
</if>
<if test="frequency != null">
frequency = #{frequency,jdbcType=VARCHAR},
</if>
<if test="followupMonth != null">
followup_month = #{followupMonth,jdbcType=INTEGER},
</if>
<if test="personInCharge != null">
person_in_charge = #{personInCharge,jdbcType=VARCHAR},
</if>
<if test="personInChargeUsername != null">
person_in_charge_username = #{personInChargeUsername,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
<if test="remindTime != null">
remind_time = #{remindTime,jdbcType=INTEGER},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=TINYINT},
</if>
<if test="tenantId != null">
tenant_id = #{tenantId,jdbcType=BIGINT},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="followWindowAdys != null">
follow_window_adys = #{followWindowAdys,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue">
update fms_followup_queue
set name = #{name,jdbcType=VARCHAR},
followup_method = #{followupMethod,jdbcType=TINYINT},
followup_type = #{followupType,jdbcType=TINYINT},
frequency = #{frequency,jdbcType=VARCHAR},
followup_month = #{followupMonth,jdbcType=INTEGER},
person_in_charge = #{personInCharge,jdbcType=VARCHAR},
person_in_charge_username = #{personInChargeUsername,jdbcType=VARCHAR},
status = #{status,jdbcType=TINYINT},
remind_time = #{remindTime,jdbcType=INTEGER},
del_flag = #{delFlag,jdbcType=TINYINT},
tenant_id = #{tenantId,jdbcType=BIGINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
follow_window_adys = #{followWindowAdys,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>