|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="reservatId" column="reservat_id" />
|
|
<result property="reservatId" column="reservat_id" />
|
|
<result property="appointmentId" column="appointment_id" />
|
|
<result property="appointmentId" column="appointment_id" />
|
|
<result property="appointmentName" column="appointment_name" />
|
|
<result property="appointmentName" column="appointment_name" />
|
|
|
|
+ <result property="appointmentSite" column="appointment_site" />
|
|
<result property="visitName" column="visit_name" />
|
|
<result property="visitName" column="visit_name" />
|
|
<result property="reservatConfigTimeId" column="reservat_config_time_id" />
|
|
<result property="reservatConfigTimeId" column="reservat_config_time_id" />
|
|
<result property="visitPhone" column="visit_phone" />
|
|
<result property="visitPhone" column="visit_phone" />
|
|
@@ -32,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBomanReservatVo">
|
|
<sql id="selectBomanReservatVo">
|
|
- select reservat_id, appointment_id, appointment_name, visit_name, reservat_config_time_id, visit_phone, visit_id_card, visit_num, visit_reason, visit_remark, visit_date, visit_time, visit_date_time, visit_qr, visit_type, visit_status, human_face_data, access_password, create_dept, create_by, create_time, update_by, update_time, remark from boman_reservat
|
|
|
|
|
|
+ select reservat_id, appointment_id, appointment_name,appointment_site, visit_name, reservat_config_time_id, visit_phone, visit_id_card, visit_num, visit_reason, visit_remark, visit_date, visit_time, visit_date_time, visit_qr, visit_type, visit_status, human_face_data, access_password, create_dept, create_by, create_time, update_by, update_time, remark from boman_reservat
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectBomanReservatList" parameterType="BomanReservat" resultMap="BomanReservatResult">
|
|
<select id="selectBomanReservatList" parameterType="BomanReservat" resultMap="BomanReservatResult">
|
|
@@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<where>
|
|
<where>
|
|
<if test="appointmentId != null "> and appointment_id = #{appointmentId}</if>
|
|
<if test="appointmentId != null "> and appointment_id = #{appointmentId}</if>
|
|
<if test="appointmentName != null and appointmentName != ''"> and appointment_name like concat('%', #{appointmentName}, '%')</if>
|
|
<if test="appointmentName != null and appointmentName != ''"> and appointment_name like concat('%', #{appointmentName}, '%')</if>
|
|
|
|
+ <if test="appointmentSite != null and appointmentSite != ''"> and appointment_site like concat('%', #{appointmentSite}, '%')</if>
|
|
<if test="visitName != null and visitName != ''"> and visit_name like concat('%', #{visitName}, '%')</if>
|
|
<if test="visitName != null and visitName != ''"> and visit_name like concat('%', #{visitName}, '%')</if>
|
|
<if test="reservatConfigTimeId != null "> and reservat_config_time_id = #{reservatConfigTimeId}</if>
|
|
<if test="reservatConfigTimeId != null "> and reservat_config_time_id = #{reservatConfigTimeId}</if>
|
|
<if test="visitPhone != null and visitPhone != ''"> and visit_phone = #{visitPhone}</if>
|
|
<if test="visitPhone != null and visitPhone != ''"> and visit_phone = #{visitPhone}</if>
|
|
@@ -69,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="appointmentId != null">appointment_id,</if>
|
|
<if test="appointmentId != null">appointment_id,</if>
|
|
<if test="appointmentName != null">appointment_name,</if>
|
|
<if test="appointmentName != null">appointment_name,</if>
|
|
|
|
+ <if test="appointmentSite != null "> appointment_site,</if>
|
|
<if test="visitName != null">visit_name,</if>
|
|
<if test="visitName != null">visit_name,</if>
|
|
<if test="reservatConfigTimeId != null">reservat_config_time_id,</if>
|
|
<if test="reservatConfigTimeId != null">reservat_config_time_id,</if>
|
|
<if test="visitPhone != null">visit_phone,</if>
|
|
<if test="visitPhone != null">visit_phone,</if>
|
|
@@ -94,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="appointmentId != null">#{appointmentId},</if>
|
|
<if test="appointmentId != null">#{appointmentId},</if>
|
|
<if test="appointmentName != null">#{appointmentName},</if>
|
|
<if test="appointmentName != null">#{appointmentName},</if>
|
|
|
|
+ <if test="appointmentSite != null "> #{appointmentSite},</if>
|
|
<if test="visitName != null">#{visitName},</if>
|
|
<if test="visitName != null">#{visitName},</if>
|
|
<if test="reservatConfigTimeId != null">#{reservatConfigTimeId},</if>
|
|
<if test="reservatConfigTimeId != null">#{reservatConfigTimeId},</if>
|
|
<if test="visitPhone != null">#{visitPhone},</if>
|
|
<if test="visitPhone != null">#{visitPhone},</if>
|
|
@@ -123,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="appointmentId != null">appointment_id = #{appointmentId},</if>
|
|
<if test="appointmentId != null">appointment_id = #{appointmentId},</if>
|
|
<if test="appointmentName != null">appointment_name = #{appointmentName},</if>
|
|
<if test="appointmentName != null">appointment_name = #{appointmentName},</if>
|
|
|
|
+ <if test="appointmentSite != null "> appointment_site = #{appointmentSite},</if>
|
|
<if test="visitName != null">visit_name = #{visitName},</if>
|
|
<if test="visitName != null">visit_name = #{visitName},</if>
|
|
<if test="reservatConfigTimeId != null">reservat_config_time_id = #{reservatConfigTimeId},</if>
|
|
<if test="reservatConfigTimeId != null">reservat_config_time_id = #{reservatConfigTimeId},</if>
|
|
<if test="visitPhone != null">visit_phone = #{visitPhone},</if>
|
|
<if test="visitPhone != null">visit_phone = #{visitPhone},</if>
|