|
@@ -6,16 +6,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="TXinyiMedicineAddRecord" id="TXinyiMedicineAddRecordResult">
|
|
|
<result property="id" column="id" />
|
|
|
+ <result property="relativeId" column="relative_id" />
|
|
|
<result property="addHour" column="add_hour" />
|
|
|
<result property="choosePool" column="choose_pool" />
|
|
|
<result property="addPool" column="add_pool" />
|
|
|
- <result property="calculateVal" column="calculate_val" />
|
|
|
- <result property="realVal" column="real_val" />
|
|
|
- <result property="zkzDown" column="zkz_down" />
|
|
|
- <result property="zkzUp" column="zkz_up" />
|
|
|
<result property="kzxs" column="kzxs" />
|
|
|
<result property="htfksd" column="htfksd" />
|
|
|
<result property="canAdd" column="can_add" />
|
|
|
+ <result property="realVal" column="real_val" />
|
|
|
+ <result property="calculateVal" column="calculate_val" />
|
|
|
+ <result property="oneVal" column="one_val" />
|
|
|
+ <result property="twoVal" column="two_val" />
|
|
|
+ <result property="oneHtfksd" column="one_htfksd" />
|
|
|
+ <result property="twoHtfksd" column="two_htfksd" />
|
|
|
+ <result property="oneKzxs" column="one_kzxs" />
|
|
|
+ <result property="twoKzxs" column="two_kzxs" />
|
|
|
+ <result property="zkzDown" column="zkz_down" />
|
|
|
+ <result property="zkzUp" column="zkz_up" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="revision" column="revision" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -26,23 +33,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTXinyiMedicineAddRecordVo">
|
|
|
- select id, add_hour, choose_pool, add_pool, calculate_val, real_val, zkz_down, zkz_up, kzxs, htfksd, can_add, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_medicine_add_record
|
|
|
+ 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="calculateVal != null "> and calculate_val = #{calculateVal}</if>
|
|
|
- <if test="realVal != null "> and real_val = #{realVal}</if>
|
|
|
- <if test="zkzDown != null "> and zkz_down = #{zkzDown}</if>
|
|
|
- <if test="zkzUp != null "> and zkz_up = #{zkzUp}</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
|
|
@@ -56,16 +70,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertTXinyiMedicineAddRecord" parameterType="TXinyiMedicineAddRecord" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into t_xinyi_medicine_add_record
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="relativeId != null">relative_id,</if>
|
|
|
<if test="addHour != null">add_hour,</if>
|
|
|
<if test="choosePool != null">choose_pool,</if>
|
|
|
<if test="addPool != null">add_pool,</if>
|
|
|
- <if test="calculateVal != null">calculate_val,</if>
|
|
|
- <if test="realVal != null">real_val,</if>
|
|
|
- <if test="zkzDown != null">zkz_down,</if>
|
|
|
- <if test="zkzUp != null">zkz_up,</if>
|
|
|
<if test="kzxs != null">kzxs,</if>
|
|
|
<if test="htfksd != null">htfksd,</if>
|
|
|
<if test="canAdd != null">can_add,</if>
|
|
|
+ <if test="realVal != null">real_val,</if>
|
|
|
+ <if test="calculateVal != null">calculate_val,</if>
|
|
|
+ <if test="oneVal != null">one_val,</if>
|
|
|
+ <if test="twoVal != null">two_val,</if>
|
|
|
+ <if test="oneHtfksd != null">one_htfksd,</if>
|
|
|
+ <if test="twoHtfksd != null">two_htfksd,</if>
|
|
|
+ <if test="oneKzxs != null">one_kzxs,</if>
|
|
|
+ <if test="twoKzxs != null">two_kzxs,</if>
|
|
|
+ <if test="zkzDown != null">zkz_down,</if>
|
|
|
+ <if test="zkzUp != null">zkz_up,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="revision != null">revision,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -75,16 +96,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="relativeId != null">#{relativeId},</if>
|
|
|
<if test="addHour != null">#{addHour},</if>
|
|
|
<if test="choosePool != null">#{choosePool},</if>
|
|
|
<if test="addPool != null">#{addPool},</if>
|
|
|
- <if test="calculateVal != null">#{calculateVal},</if>
|
|
|
- <if test="realVal != null">#{realVal},</if>
|
|
|
- <if test="zkzDown != null">#{zkzDown},</if>
|
|
|
- <if test="zkzUp != null">#{zkzUp},</if>
|
|
|
<if test="kzxs != null">#{kzxs},</if>
|
|
|
<if test="htfksd != null">#{htfksd},</if>
|
|
|
<if test="canAdd != null">#{canAdd},</if>
|
|
|
+ <if test="realVal != null">#{realVal},</if>
|
|
|
+ <if test="calculateVal != null">#{calculateVal},</if>
|
|
|
+ <if test="oneVal != null">#{oneVal},</if>
|
|
|
+ <if test="twoVal != null">#{twoVal},</if>
|
|
|
+ <if test="oneHtfksd != null">#{oneHtfksd},</if>
|
|
|
+ <if test="twoHtfksd != null">#{twoHtfksd},</if>
|
|
|
+ <if test="oneKzxs != null">#{oneKzxs},</if>
|
|
|
+ <if test="twoKzxs != null">#{twoKzxs},</if>
|
|
|
+ <if test="zkzDown != null">#{zkzDown},</if>
|
|
|
+ <if test="zkzUp != null">#{zkzUp},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="revision != null">#{revision},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -98,16 +126,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateTXinyiMedicineAddRecord" parameterType="TXinyiMedicineAddRecord">
|
|
|
update t_xinyi_medicine_add_record
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="relativeId != null">relative_id = #{relativeId},</if>
|
|
|
<if test="addHour != null">add_hour = #{addHour},</if>
|
|
|
<if test="choosePool != null">choose_pool = #{choosePool},</if>
|
|
|
<if test="addPool != null">add_pool = #{addPool},</if>
|
|
|
- <if test="calculateVal != null">calculate_val = #{calculateVal},</if>
|
|
|
- <if test="realVal != null">real_val = #{realVal},</if>
|
|
|
- <if test="zkzDown != null">zkz_down = #{zkzDown},</if>
|
|
|
- <if test="zkzUp != null">zkz_up = #{zkzUp},</if>
|
|
|
<if test="kzxs != null">kzxs = #{kzxs},</if>
|
|
|
<if test="htfksd != null">htfksd = #{htfksd},</if>
|
|
|
<if test="canAdd != null">can_add = #{canAdd},</if>
|
|
|
+ <if test="realVal != null">real_val = #{realVal},</if>
|
|
|
+ <if test="calculateVal != null">calculate_val = #{calculateVal},</if>
|
|
|
+ <if test="oneVal != null">one_val = #{oneVal},</if>
|
|
|
+ <if test="twoVal != null">two_val = #{twoVal},</if>
|
|
|
+ <if test="oneHtfksd != null">one_htfksd = #{oneHtfksd},</if>
|
|
|
+ <if test="twoHtfksd != null">two_htfksd = #{twoHtfksd},</if>
|
|
|
+ <if test="oneKzxs != null">one_kzxs = #{oneKzxs},</if>
|
|
|
+ <if test="twoKzxs != null">two_kzxs = #{twoKzxs},</if>
|
|
|
+ <if test="zkzDown != null">zkz_down = #{zkzDown},</if>
|
|
|
+ <if test="zkzUp != null">zkz_up = #{zkzUp},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|