|
@@ -35,32 +35,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<sql id="selectTXinyiMedicineAddRecordVo">
|
|
|
select id, relative_id, add_hour, choose_pool, add_pool, kzxs, htfksd, can_add, real_val, calculate_val, one_val, two_val, one_htfksd, two_htfksd, one_kzxs, two_kzxs, zkz_down, zkz_up, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_medicine_add_record
|
|
|
</sql>
|
|
|
-
|
|
|
- <select id="selectTXinyiMedicineAddRecordList" parameterType="TXinyiMedicineAddRecord" resultMap="TXinyiMedicineAddRecordResult">
|
|
|
- <include refid="selectTXinyiMedicineAddRecordVo"/>
|
|
|
- <where>
|
|
|
- 1 = 1
|
|
|
- <if test="relativeId != null "> and relative_id = #{relativeId}</if>
|
|
|
- <if test="addHour != null and addHour != ''"> and add_hour = #{addHour}</if>
|
|
|
- <if test="choosePool != null "> and choose_pool = #{choosePool}</if>
|
|
|
- <if test="addPool != null "> and add_pool = #{addPool}</if>
|
|
|
- <if test="kzxs != null "> and kzxs = #{kzxs}</if>
|
|
|
- <if test="htfksd != null "> and htfksd = #{htfksd}</if>
|
|
|
- <if test="canAdd != null "> and can_add = #{canAdd}</if>
|
|
|
- <if test="realVal != null "> and real_val = #{realVal}</if>
|
|
|
- <if test="calculateVal != null "> and calculate_val = #{calculateVal}</if>
|
|
|
- <if test="oneVal != null "> and one_val = #{oneVal}</if>
|
|
|
- <if test="twoVal != null "> and two_val = #{twoVal}</if>
|
|
|
- <if test="oneHtfksd != null "> and one_htfksd = #{oneHtfksd}</if>
|
|
|
- <if test="twoHtfksd != null "> and two_htfksd = #{twoHtfksd}</if>
|
|
|
- <if test="oneKzxs != null "> and one_kzxs = #{oneKzxs}</if>
|
|
|
- <if test="twoKzxs != null "> and two_kzxs = #{twoKzxs}</if>
|
|
|
- <if test="zkzDown != null "> and zkz_down = #{zkzDown}</if>
|
|
|
- <if test="zkzUp != null "> and zkz_up = #{zkzUp}</if>
|
|
|
- <if test="revision != null "> and revision = #{revision}</if>
|
|
|
- </where>
|
|
|
- and del_flag = 0 order by id desc
|
|
|
- </select>
|
|
|
|
|
|
<select id="selectTXinyiMedicineAddRecordById" parameterType="Long" resultMap="TXinyiMedicineAddRecordResult">
|
|
|
<include refid="selectTXinyiMedicineAddRecordVo"/>
|
|
@@ -181,4 +155,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ORDER BY
|
|
|
id ASC
|
|
|
</select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectTXinyiMedicineAddRecordList" parameterType="TXinyiMedicineAddRecord" resultMap="TXinyiMedicineAddRecordResult">
|
|
|
+ <include refid="selectTXinyiMedicineAddRecordVo"/>
|
|
|
+ <where>
|
|
|
+ 1 = 1
|
|
|
+ <if test="relativeId != null "> and relative_id = #{relativeId}</if>
|
|
|
+ <if test="addHour != null and addHour != ''"> and add_hour = #{addHour}</if>
|
|
|
+ <if test="choosePool != null "> and choose_pool = #{choosePool}</if>
|
|
|
+ <if test="addPool != null "> and add_pool = #{addPool}</if>
|
|
|
+ <if test="kzxs != null "> and kzxs = #{kzxs}</if>
|
|
|
+ <if test="htfksd != null "> and htfksd = #{htfksd}</if>
|
|
|
+ <if test="canAdd != null "> and can_add = #{canAdd}</if>
|
|
|
+ <if test="realVal != null "> and real_val = #{realVal}</if>
|
|
|
+ <if test="calculateVal != null "> and calculate_val = #{calculateVal}</if>
|
|
|
+ <if test="oneVal != null "> and one_val = #{oneVal}</if>
|
|
|
+ <if test="twoVal != null "> and two_val = #{twoVal}</if>
|
|
|
+ <if test="oneHtfksd != null "> and one_htfksd = #{oneHtfksd}</if>
|
|
|
+ <if test="twoHtfksd != null "> and two_htfksd = #{twoHtfksd}</if>
|
|
|
+ <if test="oneKzxs != null "> and one_kzxs = #{oneKzxs}</if>
|
|
|
+ <if test="twoKzxs != null "> and two_kzxs = #{twoKzxs}</if>
|
|
|
+ <if test="zkzDown != null "> and zkz_down = #{zkzDown}</if>
|
|
|
+ <if test="zkzUp != null "> and zkz_up = #{zkzUp}</if>
|
|
|
+ <if test="revision != null "> and revision = #{revision}</if>
|
|
|
+ <!-- 2025年05月09日18:59:50 新增的筛选条件 -->
|
|
|
+ <if test="dateBegin != null "> and SUBSTRING(add_hour, 1, 10) >= #{dateBegin}</if>
|
|
|
+ <if test="dateEnd != null "> and SUBSTRING(add_hour, 1, 10) <= #{dateEnd}</if>
|
|
|
+ </where>
|
|
|
+ and del_flag = 0 order by id desc
|
|
|
+ </select>
|
|
|
</mapper>
|