|
@@ -14,6 +14,7 @@
|
|
|
<result column="hospital_code" property="hospitalCode" />
|
|
|
<result column="ip" property="ip" />
|
|
|
<result column="opt_type" property="optType" />
|
|
|
+ <result column="way_type" property="wayType" />
|
|
|
<result column="remark" property="remark" />
|
|
|
</resultMap>
|
|
|
<select id="getPV" parameterType="com.diagbot.vo.OptVO" resultType="com.diagbot.dto.PVDTO">
|
|
@@ -136,6 +137,9 @@
|
|
|
tran_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="wayType != null and wayType != ''">
|
|
|
+ AND way_type = #{wayType}
|
|
|
+ </if>
|
|
|
<if test="hospitalCode != null and hospitalCode != ''">
|
|
|
AND hospital_code = #{hospitalCode}
|
|
|
</if>
|
|
@@ -167,6 +171,9 @@
|
|
|
tran_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="wayType != null and wayType != ''">
|
|
|
+ AND way_type = #{wayType}
|
|
|
+ </if>
|
|
|
<if test="hospitalCode != null and hospitalCode != ''">
|
|
|
AND hospital_code = #{hospitalCode}
|
|
|
</if>
|
|
@@ -327,6 +334,9 @@
|
|
|
tran_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="wayType != null and wayType != ''">
|
|
|
+ AND way_type = #{wayType}
|
|
|
+ </if>
|
|
|
<if test="hospitalCode != null and hospitalCode != ''">
|
|
|
AND hospital_code = #{hospitalCode}
|
|
|
</if>
|
|
@@ -364,6 +374,9 @@
|
|
|
tran_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="wayType != null and wayType != ''">
|
|
|
+ AND way_type = #{wayType}
|
|
|
+ </if>
|
|
|
<if test="hospitalCode != null and hospitalCode != ''">
|
|
|
AND hospital_code = #{hospitalCode}
|
|
|
</if>
|
|
@@ -428,6 +441,9 @@
|
|
|
tran_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="wayType != null and wayType != ''">
|
|
|
+ AND way_type = #{wayType}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|
|
@@ -523,6 +539,9 @@
|
|
|
tran_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="wayType != null and wayType != ''">
|
|
|
+ AND way_type = #{wayType}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|