|
@@ -3,43 +3,60 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.xlht.xlhtproject.mapper.TXinyiMedicineParamMapper">
|
|
|
-
|
|
|
- <resultMap type="com.xlht.xlhtproject.domain.TXinyiMedicineParam" id="TXinyiMedicineParamResult">
|
|
|
+
|
|
|
+ <resultMap type="TXinyiMedicineParam" id="TXinyiMedicineParamResult">
|
|
|
<result property="id" column="id" />
|
|
|
- <result property="numberBeng" column="number_beng" />
|
|
|
<result property="type" column="type" />
|
|
|
- <result property="jsLlType" column="js_ll_type" />
|
|
|
+ <result property="jsLlTypeOne" column="js_ll_type_one" />
|
|
|
<result property="jsLlOne" column="js_ll_one" />
|
|
|
+ <result property="jsLlTypeTwo" column="js_ll_type_two" />
|
|
|
<result property="jsLlTwo" column="js_ll_two" />
|
|
|
- <result property="jsCodType" column="js_cod_type" />
|
|
|
+ <result property="jsCodTypeOne" column="js_cod_type_one" />
|
|
|
<result property="jsCodOne" column="js_cod_one" />
|
|
|
+ <result property="jsCodTypeTwo" column="js_cod_type_two" />
|
|
|
<result property="jsCodTwo" column="js_cod_two" />
|
|
|
- <result property="hycXsyType" column="hyc_xsy_type" />
|
|
|
+ <result property="hycXsyTypeOne" column="hyc_xsy_type_one" />
|
|
|
<result property="hycXsyOne" column="hyc_xsy_one" />
|
|
|
+ <result property="hycXsyTypeTwo" column="hyc_xsy_type_two" />
|
|
|
<result property="hycXsyTwo" column="hyc_xsy_two" />
|
|
|
- <result property="qycYxyType" column="qyc_yxy_type" />
|
|
|
+ <result property="qycYxyTypeOne" column="qyc_yxy_type_one" />
|
|
|
<result property="qycYxyOne" column="qyc_yxy_one" />
|
|
|
+ <result property="qycYxyTypeTwo" column="qyc_yxy_type_two" />
|
|
|
<result property="qycYxyTwo" column="qyc_yxy_two" />
|
|
|
- <result property="qycAdType" column="qyc_ad_type" />
|
|
|
+ <result property="qycAdTypeOne" column="qyc_ad_type_one" />
|
|
|
<result property="qycAdOne" column="qyc_ad_one" />
|
|
|
+ <result property="qycAdTypeTwo" column="qyc_ad_type_two" />
|
|
|
<result property="qycAdTwo" column="qyc_ad_two" />
|
|
|
- <result property="jsTnType" column="js_tn_type" />
|
|
|
+ <result property="jsTnTypeOne" column="js_tn_type_one" />
|
|
|
<result property="jsTnOne" column="js_tn_one" />
|
|
|
+ <result property="jsTnTypeTwo" column="js_tn_type_two" />
|
|
|
<result property="jsTnTwo" column="js_tn_two" />
|
|
|
- <result property="htfksd" column="htfksd" />
|
|
|
- <result property="jzxs" column="jzxs" />
|
|
|
- <result property="xzxs" column="xzxs" />
|
|
|
- <result property="kzxs" column="kzxs" />
|
|
|
- <result property="slfpxs" column="slfpxs" />
|
|
|
- <result property="tydl" column="tydl" />
|
|
|
- <result property="zhxs" column="zhxs" />
|
|
|
- <result property="sxps" column="sxps" />
|
|
|
- <result property="yymd" column="yymd" />
|
|
|
- <result property="zxqdll" column="zxqdll" />
|
|
|
- <result property="tdb" column="tdb" />
|
|
|
- <result property="medicineAmount" column="medicine_amount" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="htfksdOne" column="htfksd_one" />
|
|
|
+ <result property="htfksdTwo" column="htfksd_two" />
|
|
|
+ <result property="jzxsOne" column="jzxs_one" />
|
|
|
+ <result property="jzxsTwo" column="jzxs_two" />
|
|
|
+ <result property="xzxsOne" column="xzxs_one" />
|
|
|
+ <result property="xzxsTwo" column="xzxs_two" />
|
|
|
+ <result property="kzxsOne" column="kzxs_one" />
|
|
|
+ <result property="kzxsTwo" column="kzxs_two" />
|
|
|
+ <result property="slfpxsOne" column="slfpxs_one" />
|
|
|
+ <result property="slfpxsTwo" column="slfpxs_two" />
|
|
|
+ <result property="tydlOne" column="tydl_one" />
|
|
|
+ <result property="tydlTwo" column="tydl_two" />
|
|
|
+ <result property="zhxsOne" column="zhxs_one" />
|
|
|
+ <result property="zhxsTwo" column="zhxs_two" />
|
|
|
+ <result property="sxpsOne" column="sxps_one" />
|
|
|
+ <result property="sxpsTwo" column="sxps_two" />
|
|
|
+ <result property="yymdOne" column="yymd_one" />
|
|
|
+ <result property="yymdTwo" column="yymd_two" />
|
|
|
+ <result property="zxqdllOne" column="zxqdll_one" />
|
|
|
+ <result property="zxqdllTwo" column="zxqdll_two" />
|
|
|
+ <result property="medicineAmountOne" column="medicine_amount_one" />
|
|
|
+ <result property="medicineAmountTwo" column="medicine_amount_two" />
|
|
|
+ <result property="tdbOne" column="tdb_one" />
|
|
|
+ <result property="tdbTwo" column="tdb_two" />
|
|
|
<result property="revision" column="revision" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -48,184 +65,188 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTXinyiMedicineParamVo">
|
|
|
- select id, number_beng, type, js_ll_type, js_ll_one, js_ll_two, js_cod_type, js_cod_one, js_cod_two, hyc_xsy_type, hyc_xsy_one, hyc_xsy_two, qyc_yxy_type, qyc_yxy_one, qyc_yxy_two, qyc_ad_type, qyc_ad_one, qyc_ad_two, js_tn_type, js_tn_one, js_tn_two, htfksd, jzxs, xzxs, kzxs, slfpxs, tydl, zhxs, sxps, yymd, zxqdll, tdb, medicine_amount, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_medicine_param
|
|
|
+ select id, type, js_ll_type_one, js_ll_one, js_ll_type_two, js_ll_two, js_cod_type_one, js_cod_one, js_cod_type_two, js_cod_two, hyc_xsy_type_one, hyc_xsy_one, hyc_xsy_type_two, hyc_xsy_two, qyc_yxy_type_one, qyc_yxy_one, qyc_yxy_type_two, qyc_yxy_two, qyc_ad_type_one, qyc_ad_one, qyc_ad_type_two, qyc_ad_two, js_tn_type_one, js_tn_one, js_tn_type_two, js_tn_two, htfksd_one, htfksd_two, jzxs_one, jzxs_two, xzxs_one, xzxs_two, kzxs_one, kzxs_two, slfpxs_one, slfpxs_two, tydl_one, tydl_two, zhxs_one, zhxs_two, sxps_one, sxps_two, yymd_one, yymd_two, zxqdll_one, zxqdll_two, medicine_amount_one, medicine_amount_two, tdb_one, tdb_two, revision, del_flag, create_by, create_time, update_by, update_time, remark from t_xlht_medicine_param
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectTXinyiMedicineParamList" parameterType="com.xlht.xlhtproject.domain.TXinyiMedicineParam" resultMap="TXinyiMedicineParamResult">
|
|
|
- <include refid="selectTXinyiMedicineParamVo"/>
|
|
|
- <where>
|
|
|
- 1 = 1
|
|
|
- <if test="numberBeng != null "> and number_beng = #{numberBeng}</if>
|
|
|
- <if test="type != null "> and type = #{type}</if>
|
|
|
- <if test="jsLlType != null "> and js_ll_type = #{jsLlType}</if>
|
|
|
- <if test="jsLlOne != null "> and js_ll_one = #{jsLlOne}</if>
|
|
|
- <if test="jsLlTwo != null "> and js_ll_two = #{jsLlTwo}</if>
|
|
|
- <if test="jsCodType != null "> and js_cod_type = #{jsCodType}</if>
|
|
|
- <if test="jsCodOne != null "> and js_cod_one = #{jsCodOne}</if>
|
|
|
- <if test="jsCodTwo != null "> and js_cod_two = #{jsCodTwo}</if>
|
|
|
- <if test="hycXsyType != null "> and hyc_xsy_type = #{hycXsyType}</if>
|
|
|
- <if test="hycXsyOne != null "> and hyc_xsy_one = #{hycXsyOne}</if>
|
|
|
- <if test="hycXsyTwo != null "> and hyc_xsy_two = #{hycXsyTwo}</if>
|
|
|
- <if test="qycYxyType != null "> and qyc_yxy_type = #{qycYxyType}</if>
|
|
|
- <if test="qycYxyOne != null "> and qyc_yxy_one = #{qycYxyOne}</if>
|
|
|
- <if test="qycYxyTwo != null "> and qyc_yxy_two = #{qycYxyTwo}</if>
|
|
|
- <if test="qycAdType != null "> and qyc_ad_type = #{qycAdType}</if>
|
|
|
- <if test="qycAdOne != null "> and qyc_ad_one = #{qycAdOne}</if>
|
|
|
- <if test="qycAdTwo != null "> and qyc_ad_two = #{qycAdTwo}</if>
|
|
|
- <if test="jsTnType != null "> and js_tn_type = #{jsTnType}</if>
|
|
|
- <if test="jsTnOne != null "> and js_tn_one = #{jsTnOne}</if>
|
|
|
- <if test="jsTnTwo != null "> and js_tn_two = #{jsTnTwo}</if>
|
|
|
- <if test="htfksd != null "> and htfksd = #{htfksd}</if>
|
|
|
- <if test="jzxs != null "> and jzxs = #{jzxs}</if>
|
|
|
- <if test="xzxs != null "> and xzxs = #{xzxs}</if>
|
|
|
- <if test="kzxs != null "> and kzxs = #{kzxs}</if>
|
|
|
- <if test="slfpxs != null "> and slfpxs = #{slfpxs}</if>
|
|
|
- <if test="tydl != null "> and tydl = #{tydl}</if>
|
|
|
- <if test="zhxs != null "> and zhxs = #{zhxs}</if>
|
|
|
- <if test="sxps != null "> and sxps = #{sxps}</if>
|
|
|
- <if test="yymd != null "> and yymd = #{yymd}</if>
|
|
|
- <if test="zxqdll != null "> and zxqdll = #{zxqdll}</if>
|
|
|
- <if test="tdb != null "> and tdb = #{tdb}</if>
|
|
|
- <if test="medicineAmount != null "> and medicine_amount = #{medicineAmount}</if>
|
|
|
- <if test="revision != null "> and revision = #{revision}</if>
|
|
|
- <!-- 下面是新增的SQL检索条件 SqlServer写法-->
|
|
|
- <if test="timeBegin != null and timeBegin != ''"> and SUBSTRING (CONVERT ( VARCHAR, create_time, 120 ), 1, 10 ) >= #{timeBegin}</if>
|
|
|
- <if test="timeEnd != null and timeEnd != ''"> and SUBSTRING (CONVERT ( VARCHAR, create_time, 120 ), 1, 10 ) <= #{timeEnd}</if>
|
|
|
- <!-- 下面是新增的SQL检索条件 MySQL写法-->
|
|
|
- <!--<if test="timeBegin != null and timeBegin != ''"> and DATE_FORMAT(create_time, '%Y-%m-%d') >= #{timeBegin}</if>
|
|
|
- <if test="timeEnd != null and timeEnd != ''"> DATE_FORMAT(create_time, '%Y-%m-%d') <= #{timeEnd}</if>-->
|
|
|
- </where>
|
|
|
- and del_flag = 0 order by id desc
|
|
|
- </select>
|
|
|
-
|
|
|
<select id="selectTXinyiMedicineParamById" parameterType="Long" resultMap="TXinyiMedicineParamResult">
|
|
|
<include refid="selectTXinyiMedicineParamVo"/>
|
|
|
where id = #{id} and del_flag = 0
|
|
|
</select>
|
|
|
-
|
|
|
- <insert id="insertTXinyiMedicineParam" parameterType="com.xlht.xlhtproject.domain.TXinyiMedicineParam" useGeneratedKeys="true" keyProperty="id">
|
|
|
- insert into t_xinyi_medicine_param
|
|
|
+
|
|
|
+ <insert id="insertTXinyiMedicineParam" parameterType="TXinyiMedicineParam" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into t_xlht_medicine_param
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="numberBeng != null">number_beng,</if>
|
|
|
<if test="type != null">type,</if>
|
|
|
- <if test="jsLlType != null">js_ll_type,</if>
|
|
|
+ <if test="jsLlTypeOne != null">js_ll_type_one,</if>
|
|
|
<if test="jsLlOne != null">js_ll_one,</if>
|
|
|
+ <if test="jsLlTypeTwo != null">js_ll_type_two,</if>
|
|
|
<if test="jsLlTwo != null">js_ll_two,</if>
|
|
|
- <if test="jsCodType != null">js_cod_type,</if>
|
|
|
+ <if test="jsCodTypeOne != null">js_cod_type_one,</if>
|
|
|
<if test="jsCodOne != null">js_cod_one,</if>
|
|
|
+ <if test="jsCodTypeTwo != null">js_cod_type_two,</if>
|
|
|
<if test="jsCodTwo != null">js_cod_two,</if>
|
|
|
- <if test="hycXsyType != null">hyc_xsy_type,</if>
|
|
|
+ <if test="hycXsyTypeOne != null">hyc_xsy_type_one,</if>
|
|
|
<if test="hycXsyOne != null">hyc_xsy_one,</if>
|
|
|
+ <if test="hycXsyTypeTwo != null">hyc_xsy_type_two,</if>
|
|
|
<if test="hycXsyTwo != null">hyc_xsy_two,</if>
|
|
|
- <if test="qycYxyType != null">qyc_yxy_type,</if>
|
|
|
+ <if test="qycYxyTypeOne != null">qyc_yxy_type_one,</if>
|
|
|
<if test="qycYxyOne != null">qyc_yxy_one,</if>
|
|
|
+ <if test="qycYxyTypeTwo != null">qyc_yxy_type_two,</if>
|
|
|
<if test="qycYxyTwo != null">qyc_yxy_two,</if>
|
|
|
- <if test="qycAdType != null">qyc_ad_type,</if>
|
|
|
+ <if test="qycAdTypeOne != null">qyc_ad_type_one,</if>
|
|
|
<if test="qycAdOne != null">qyc_ad_one,</if>
|
|
|
+ <if test="qycAdTypeTwo != null">qyc_ad_type_two,</if>
|
|
|
<if test="qycAdTwo != null">qyc_ad_two,</if>
|
|
|
- <if test="jsTnType != null">js_tn_type,</if>
|
|
|
+ <if test="jsTnTypeOne != null">js_tn_type_one,</if>
|
|
|
<if test="jsTnOne != null">js_tn_one,</if>
|
|
|
+ <if test="jsTnTypeTwo != null">js_tn_type_two,</if>
|
|
|
<if test="jsTnTwo != null">js_tn_two,</if>
|
|
|
- <if test="htfksd != null">htfksd,</if>
|
|
|
- <if test="jzxs != null">jzxs,</if>
|
|
|
- <if test="xzxs != null">xzxs,</if>
|
|
|
- <if test="kzxs != null">kzxs,</if>
|
|
|
- <if test="slfpxs != null">slfpxs,</if>
|
|
|
- <if test="tydl != null">tydl,</if>
|
|
|
- <if test="zhxs != null">zhxs,</if>
|
|
|
- <if test="sxps != null">sxps,</if>
|
|
|
- <if test="yymd != null">yymd,</if>
|
|
|
- <if test="zxqdll != null">zxqdll,</if>
|
|
|
- <if test="tdb != null">tdb,</if>
|
|
|
- <if test="medicineAmount != null">medicine_amount,</if>
|
|
|
- <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="htfksdOne != null">htfksd_one,</if>
|
|
|
+ <if test="htfksdTwo != null">htfksd_two,</if>
|
|
|
+ <if test="jzxsOne != null">jzxs_one,</if>
|
|
|
+ <if test="jzxsTwo != null">jzxs_two,</if>
|
|
|
+ <if test="xzxsOne != null">xzxs_one,</if>
|
|
|
+ <if test="xzxsTwo != null">xzxs_two,</if>
|
|
|
+ <if test="kzxsOne != null">kzxs_one,</if>
|
|
|
+ <if test="kzxsTwo != null">kzxs_two,</if>
|
|
|
+ <if test="slfpxsOne != null">slfpxs_one,</if>
|
|
|
+ <if test="slfpxsTwo != null">slfpxs_two,</if>
|
|
|
+ <if test="tydlOne != null">tydl_one,</if>
|
|
|
+ <if test="tydlTwo != null">tydl_two,</if>
|
|
|
+ <if test="zhxsOne != null">zhxs_one,</if>
|
|
|
+ <if test="zhxsTwo != null">zhxs_two,</if>
|
|
|
+ <if test="sxpsOne != null">sxps_one,</if>
|
|
|
+ <if test="sxpsTwo != null">sxps_two,</if>
|
|
|
+ <if test="yymdOne != null">yymd_one,</if>
|
|
|
+ <if test="yymdTwo != null">yymd_two,</if>
|
|
|
+ <if test="zxqdllOne != null">zxqdll_one,</if>
|
|
|
+ <if test="zxqdllTwo != null">zxqdll_two,</if>
|
|
|
+ <if test="medicineAmountOne != null">medicine_amount_one,</if>
|
|
|
+ <if test="medicineAmountTwo != null">medicine_amount_two,</if>
|
|
|
+ <if test="tdbOne != null">tdb_one,</if>
|
|
|
+ <if test="tdbTwo != null">tdb_two,</if>
|
|
|
<if test="revision != null">revision,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</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>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="numberBeng != null">#{numberBeng},</if>
|
|
|
<if test="type != null">#{type},</if>
|
|
|
- <if test="jsLlType != null">#{jsLlType},</if>
|
|
|
+ <if test="jsLlTypeOne != null">#{jsLlTypeOne},</if>
|
|
|
<if test="jsLlOne != null">#{jsLlOne},</if>
|
|
|
+ <if test="jsLlTypeTwo != null">#{jsLlTypeTwo},</if>
|
|
|
<if test="jsLlTwo != null">#{jsLlTwo},</if>
|
|
|
- <if test="jsCodType != null">#{jsCodType},</if>
|
|
|
+ <if test="jsCodTypeOne != null">#{jsCodTypeOne},</if>
|
|
|
<if test="jsCodOne != null">#{jsCodOne},</if>
|
|
|
+ <if test="jsCodTypeTwo != null">#{jsCodTypeTwo},</if>
|
|
|
<if test="jsCodTwo != null">#{jsCodTwo},</if>
|
|
|
- <if test="hycXsyType != null">#{hycXsyType},</if>
|
|
|
+ <if test="hycXsyTypeOne != null">#{hycXsyTypeOne},</if>
|
|
|
<if test="hycXsyOne != null">#{hycXsyOne},</if>
|
|
|
+ <if test="hycXsyTypeTwo != null">#{hycXsyTypeTwo},</if>
|
|
|
<if test="hycXsyTwo != null">#{hycXsyTwo},</if>
|
|
|
- <if test="qycYxyType != null">#{qycYxyType},</if>
|
|
|
+ <if test="qycYxyTypeOne != null">#{qycYxyTypeOne},</if>
|
|
|
<if test="qycYxyOne != null">#{qycYxyOne},</if>
|
|
|
+ <if test="qycYxyTypeTwo != null">#{qycYxyTypeTwo},</if>
|
|
|
<if test="qycYxyTwo != null">#{qycYxyTwo},</if>
|
|
|
- <if test="qycAdType != null">#{qycAdType},</if>
|
|
|
+ <if test="qycAdTypeOne != null">#{qycAdTypeOne},</if>
|
|
|
<if test="qycAdOne != null">#{qycAdOne},</if>
|
|
|
+ <if test="qycAdTypeTwo != null">#{qycAdTypeTwo},</if>
|
|
|
<if test="qycAdTwo != null">#{qycAdTwo},</if>
|
|
|
- <if test="jsTnType != null">#{jsTnType},</if>
|
|
|
+ <if test="jsTnTypeOne != null">#{jsTnTypeOne},</if>
|
|
|
<if test="jsTnOne != null">#{jsTnOne},</if>
|
|
|
+ <if test="jsTnTypeTwo != null">#{jsTnTypeTwo},</if>
|
|
|
<if test="jsTnTwo != null">#{jsTnTwo},</if>
|
|
|
- <if test="htfksd != null">#{htfksd},</if>
|
|
|
- <if test="jzxs != null">#{jzxs},</if>
|
|
|
- <if test="xzxs != null">#{xzxs},</if>
|
|
|
- <if test="kzxs != null">#{kzxs},</if>
|
|
|
- <if test="slfpxs != null">#{slfpxs},</if>
|
|
|
- <if test="tydl != null">#{tydl},</if>
|
|
|
- <if test="zhxs != null">#{zhxs},</if>
|
|
|
- <if test="sxps != null">#{sxps},</if>
|
|
|
- <if test="yymd != null">#{yymd},</if>
|
|
|
- <if test="zxqdll != null">#{zxqdll},</if>
|
|
|
- <if test="tdb != null">#{tdb},</if>
|
|
|
- <if test="medicineAmount != null">#{medicineAmount},</if>
|
|
|
- <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="htfksdOne != null">#{htfksdOne},</if>
|
|
|
+ <if test="htfksdTwo != null">#{htfksdTwo},</if>
|
|
|
+ <if test="jzxsOne != null">#{jzxsOne},</if>
|
|
|
+ <if test="jzxsTwo != null">#{jzxsTwo},</if>
|
|
|
+ <if test="xzxsOne != null">#{xzxsOne},</if>
|
|
|
+ <if test="xzxsTwo != null">#{xzxsTwo},</if>
|
|
|
+ <if test="kzxsOne != null">#{kzxsOne},</if>
|
|
|
+ <if test="kzxsTwo != null">#{kzxsTwo},</if>
|
|
|
+ <if test="slfpxsOne != null">#{slfpxsOne},</if>
|
|
|
+ <if test="slfpxsTwo != null">#{slfpxsTwo},</if>
|
|
|
+ <if test="tydlOne != null">#{tydlOne},</if>
|
|
|
+ <if test="tydlTwo != null">#{tydlTwo},</if>
|
|
|
+ <if test="zhxsOne != null">#{zhxsOne},</if>
|
|
|
+ <if test="zhxsTwo != null">#{zhxsTwo},</if>
|
|
|
+ <if test="sxpsOne != null">#{sxpsOne},</if>
|
|
|
+ <if test="sxpsTwo != null">#{sxpsTwo},</if>
|
|
|
+ <if test="yymdOne != null">#{yymdOne},</if>
|
|
|
+ <if test="yymdTwo != null">#{yymdTwo},</if>
|
|
|
+ <if test="zxqdllOne != null">#{zxqdllOne},</if>
|
|
|
+ <if test="zxqdllTwo != null">#{zxqdllTwo},</if>
|
|
|
+ <if test="medicineAmountOne != null">#{medicineAmountOne},</if>
|
|
|
+ <if test="medicineAmountTwo != null">#{medicineAmountTwo},</if>
|
|
|
+ <if test="tdbOne != null">#{tdbOne},</if>
|
|
|
+ <if test="tdbTwo != null">#{tdbTwo},</if>
|
|
|
<if test="revision != null">#{revision},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
- <update id="updateTXinyiMedicineParam" parameterType="com.xlht.xlhtproject.domain.TXinyiMedicineParam">
|
|
|
- update t_xinyi_medicine_param
|
|
|
+ <update id="updateTXinyiMedicineParam" parameterType="TXinyiMedicineParam">
|
|
|
+ update t_xlht_medicine_param
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="numberBeng != null">number_beng = #{numberBeng},</if>
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
- <if test="jsLlType != null">js_ll_type = #{jsLlType},</if>
|
|
|
+ <if test="jsLlTypeOne != null">js_ll_type_one = #{jsLlTypeOne},</if>
|
|
|
<if test="jsLlOne != null">js_ll_one = #{jsLlOne},</if>
|
|
|
+ <if test="jsLlTypeTwo != null">js_ll_type_two = #{jsLlTypeTwo},</if>
|
|
|
<if test="jsLlTwo != null">js_ll_two = #{jsLlTwo},</if>
|
|
|
- <if test="jsCodType != null">js_cod_type = #{jsCodType},</if>
|
|
|
+ <if test="jsCodTypeOne != null">js_cod_type_one = #{jsCodTypeOne},</if>
|
|
|
<if test="jsCodOne != null">js_cod_one = #{jsCodOne},</if>
|
|
|
+ <if test="jsCodTypeTwo != null">js_cod_type_two = #{jsCodTypeTwo},</if>
|
|
|
<if test="jsCodTwo != null">js_cod_two = #{jsCodTwo},</if>
|
|
|
- <if test="hycXsyType != null">hyc_xsy_type = #{hycXsyType},</if>
|
|
|
+ <if test="hycXsyTypeOne != null">hyc_xsy_type_one = #{hycXsyTypeOne},</if>
|
|
|
<if test="hycXsyOne != null">hyc_xsy_one = #{hycXsyOne},</if>
|
|
|
+ <if test="hycXsyTypeTwo != null">hyc_xsy_type_two = #{hycXsyTypeTwo},</if>
|
|
|
<if test="hycXsyTwo != null">hyc_xsy_two = #{hycXsyTwo},</if>
|
|
|
- <if test="qycYxyType != null">qyc_yxy_type = #{qycYxyType},</if>
|
|
|
+ <if test="qycYxyTypeOne != null">qyc_yxy_type_one = #{qycYxyTypeOne},</if>
|
|
|
<if test="qycYxyOne != null">qyc_yxy_one = #{qycYxyOne},</if>
|
|
|
+ <if test="qycYxyTypeTwo != null">qyc_yxy_type_two = #{qycYxyTypeTwo},</if>
|
|
|
<if test="qycYxyTwo != null">qyc_yxy_two = #{qycYxyTwo},</if>
|
|
|
- <if test="qycAdType != null">qyc_ad_type = #{qycAdType},</if>
|
|
|
+ <if test="qycAdTypeOne != null">qyc_ad_type_one = #{qycAdTypeOne},</if>
|
|
|
<if test="qycAdOne != null">qyc_ad_one = #{qycAdOne},</if>
|
|
|
+ <if test="qycAdTypeTwo != null">qyc_ad_type_two = #{qycAdTypeTwo},</if>
|
|
|
<if test="qycAdTwo != null">qyc_ad_two = #{qycAdTwo},</if>
|
|
|
- <if test="jsTnType != null">js_tn_type = #{jsTnType},</if>
|
|
|
+ <if test="jsTnTypeOne != null">js_tn_type_one = #{jsTnTypeOne},</if>
|
|
|
<if test="jsTnOne != null">js_tn_one = #{jsTnOne},</if>
|
|
|
+ <if test="jsTnTypeTwo != null">js_tn_type_two = #{jsTnTypeTwo},</if>
|
|
|
<if test="jsTnTwo != null">js_tn_two = #{jsTnTwo},</if>
|
|
|
- <if test="htfksd != null">htfksd = #{htfksd},</if>
|
|
|
- <if test="jzxs != null">jzxs = #{jzxs},</if>
|
|
|
- <if test="xzxs != null">xzxs = #{xzxs},</if>
|
|
|
- <if test="kzxs != null">kzxs = #{kzxs},</if>
|
|
|
- <if test="slfpxs != null">slfpxs = #{slfpxs},</if>
|
|
|
- <if test="tydl != null">tydl = #{tydl},</if>
|
|
|
- <if test="zhxs != null">zhxs = #{zhxs},</if>
|
|
|
- <if test="sxps != null">sxps = #{sxps},</if>
|
|
|
- <if test="yymd != null">yymd = #{yymd},</if>
|
|
|
- <if test="zxqdll != null">zxqdll = #{zxqdll},</if>
|
|
|
- <if test="tdb != null">tdb = #{tdb},</if>
|
|
|
- <if test="medicineAmount != null">medicine_amount = #{medicineAmount},</if>
|
|
|
- <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="htfksdOne != null">htfksd_one = #{htfksdOne},</if>
|
|
|
+ <if test="htfksdTwo != null">htfksd_two = #{htfksdTwo},</if>
|
|
|
+ <if test="jzxsOne != null">jzxs_one = #{jzxsOne},</if>
|
|
|
+ <if test="jzxsTwo != null">jzxs_two = #{jzxsTwo},</if>
|
|
|
+ <if test="xzxsOne != null">xzxs_one = #{xzxsOne},</if>
|
|
|
+ <if test="xzxsTwo != null">xzxs_two = #{xzxsTwo},</if>
|
|
|
+ <if test="kzxsOne != null">kzxs_one = #{kzxsOne},</if>
|
|
|
+ <if test="kzxsTwo != null">kzxs_two = #{kzxsTwo},</if>
|
|
|
+ <if test="slfpxsOne != null">slfpxs_one = #{slfpxsOne},</if>
|
|
|
+ <if test="slfpxsTwo != null">slfpxs_two = #{slfpxsTwo},</if>
|
|
|
+ <if test="tydlOne != null">tydl_one = #{tydlOne},</if>
|
|
|
+ <if test="tydlTwo != null">tydl_two = #{tydlTwo},</if>
|
|
|
+ <if test="zhxsOne != null">zhxs_one = #{zhxsOne},</if>
|
|
|
+ <if test="zhxsTwo != null">zhxs_two = #{zhxsTwo},</if>
|
|
|
+ <if test="sxpsOne != null">sxps_one = #{sxpsOne},</if>
|
|
|
+ <if test="sxpsTwo != null">sxps_two = #{sxpsTwo},</if>
|
|
|
+ <if test="yymdOne != null">yymd_one = #{yymdOne},</if>
|
|
|
+ <if test="yymdTwo != null">yymd_two = #{yymdTwo},</if>
|
|
|
+ <if test="zxqdllOne != null">zxqdll_one = #{zxqdllOne},</if>
|
|
|
+ <if test="zxqdllTwo != null">zxqdll_two = #{zxqdllTwo},</if>
|
|
|
+ <if test="medicineAmountOne != null">medicine_amount_one = #{medicineAmountOne},</if>
|
|
|
+ <if test="medicineAmountTwo != null">medicine_amount_two = #{medicineAmountTwo},</if>
|
|
|
+ <if test="tdbOne != null">tdb_one = #{tdbOne},</if>
|
|
|
+ <if test="tdbTwo != null">tdb_two = #{tdbTwo},</if>
|
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
@@ -236,14 +257,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<delete id="deleteTXinyiMedicineParamById" parameterType="Long">
|
|
|
- update t_xinyi_medicine_param set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
|
|
|
+ update t_xlht_medicine_param set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteTXinyiMedicineParamByIds" parameterType="String">
|
|
|
- update t_xinyi_medicine_param set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
|
|
|
+ update t_xlht_medicine_param set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
@@ -254,7 +275,66 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT TOP
|
|
|
1 *
|
|
|
FROM
|
|
|
- t_xinyi_medicine_param
|
|
|
+ t_xlht_medicine_param
|
|
|
where del_flag = 0 order by id desc
|
|
|
</select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectTXinyiMedicineParamList" parameterType="TXinyiMedicineParam" resultMap="TXinyiMedicineParamResult">
|
|
|
+ <include refid="selectTXinyiMedicineParamVo"/>
|
|
|
+ <where>
|
|
|
+ 1 = 1
|
|
|
+ <if test="type != null "> and type = #{type}</if>
|
|
|
+ <if test="jsLlTypeOne != null "> and js_ll_type_one = #{jsLlTypeOne}</if>
|
|
|
+ <if test="jsLlOne != null "> and js_ll_one = #{jsLlOne}</if>
|
|
|
+ <if test="jsLlTypeTwo != null "> and js_ll_type_two = #{jsLlTypeTwo}</if>
|
|
|
+ <if test="jsLlTwo != null "> and js_ll_two = #{jsLlTwo}</if>
|
|
|
+ <if test="jsCodTypeOne != null "> and js_cod_type_one = #{jsCodTypeOne}</if>
|
|
|
+ <if test="jsCodOne != null "> and js_cod_one = #{jsCodOne}</if>
|
|
|
+ <if test="jsCodTypeTwo != null "> and js_cod_type_two = #{jsCodTypeTwo}</if>
|
|
|
+ <if test="jsCodTwo != null "> and js_cod_two = #{jsCodTwo}</if>
|
|
|
+ <if test="hycXsyTypeOne != null "> and hyc_xsy_type_one = #{hycXsyTypeOne}</if>
|
|
|
+ <if test="hycXsyOne != null "> and hyc_xsy_one = #{hycXsyOne}</if>
|
|
|
+ <if test="hycXsyTypeTwo != null "> and hyc_xsy_type_two = #{hycXsyTypeTwo}</if>
|
|
|
+ <if test="hycXsyTwo != null "> and hyc_xsy_two = #{hycXsyTwo}</if>
|
|
|
+ <if test="qycYxyTypeOne != null "> and qyc_yxy_type_one = #{qycYxyTypeOne}</if>
|
|
|
+ <if test="qycYxyOne != null "> and qyc_yxy_one = #{qycYxyOne}</if>
|
|
|
+ <if test="qycYxyTypeTwo != null "> and qyc_yxy_type_two = #{qycYxyTypeTwo}</if>
|
|
|
+ <if test="qycYxyTwo != null "> and qyc_yxy_two = #{qycYxyTwo}</if>
|
|
|
+ <if test="qycAdTypeOne != null "> and qyc_ad_type_one = #{qycAdTypeOne}</if>
|
|
|
+ <if test="qycAdOne != null "> and qyc_ad_one = #{qycAdOne}</if>
|
|
|
+ <if test="qycAdTypeTwo != null "> and qyc_ad_type_two = #{qycAdTypeTwo}</if>
|
|
|
+ <if test="qycAdTwo != null "> and qyc_ad_two = #{qycAdTwo}</if>
|
|
|
+ <if test="jsTnTypeOne != null "> and js_tn_type_one = #{jsTnTypeOne}</if>
|
|
|
+ <if test="jsTnOne != null "> and js_tn_one = #{jsTnOne}</if>
|
|
|
+ <if test="jsTnTypeTwo != null "> and js_tn_type_two = #{jsTnTypeTwo}</if>
|
|
|
+ <if test="jsTnTwo != null "> and js_tn_two = #{jsTnTwo}</if>
|
|
|
+ <if test="htfksdOne != null "> and htfksd_one = #{htfksdOne}</if>
|
|
|
+ <if test="htfksdTwo != null "> and htfksd_two = #{htfksdTwo}</if>
|
|
|
+ <if test="jzxsOne != null "> and jzxs_one = #{jzxsOne}</if>
|
|
|
+ <if test="jzxsTwo != null "> and jzxs_two = #{jzxsTwo}</if>
|
|
|
+ <if test="xzxsOne != null "> and xzxs_one = #{xzxsOne}</if>
|
|
|
+ <if test="xzxsTwo != null "> and xzxs_two = #{xzxsTwo}</if>
|
|
|
+ <if test="kzxsOne != null "> and kzxs_one = #{kzxsOne}</if>
|
|
|
+ <if test="kzxsTwo != null "> and kzxs_two = #{kzxsTwo}</if>
|
|
|
+ <if test="slfpxsOne != null "> and slfpxs_one = #{slfpxsOne}</if>
|
|
|
+ <if test="slfpxsTwo != null "> and slfpxs_two = #{slfpxsTwo}</if>
|
|
|
+ <if test="tydlOne != null "> and tydl_one = #{tydlOne}</if>
|
|
|
+ <if test="tydlTwo != null "> and tydl_two = #{tydlTwo}</if>
|
|
|
+ <if test="zhxsOne != null "> and zhxs_one = #{zhxsOne}</if>
|
|
|
+ <if test="zhxsTwo != null "> and zhxs_two = #{zhxsTwo}</if>
|
|
|
+ <if test="sxpsOne != null "> and sxps_one = #{sxpsOne}</if>
|
|
|
+ <if test="sxpsTwo != null "> and sxps_two = #{sxpsTwo}</if>
|
|
|
+ <if test="yymdOne != null "> and yymd_one = #{yymdOne}</if>
|
|
|
+ <if test="yymdTwo != null "> and yymd_two = #{yymdTwo}</if>
|
|
|
+ <if test="zxqdllOne != null "> and zxqdll_one = #{zxqdllOne}</if>
|
|
|
+ <if test="zxqdllTwo != null "> and zxqdll_two = #{zxqdllTwo}</if>
|
|
|
+ <if test="medicineAmountOne != null "> and medicine_amount_one = #{medicineAmountOne}</if>
|
|
|
+ <if test="medicineAmountTwo != null "> and medicine_amount_two = #{medicineAmountTwo}</if>
|
|
|
+ <if test="tdbOne != null "> and tdb_one = #{tdbOne}</if>
|
|
|
+ <if test="tdbTwo != null "> and tdb_two = #{tdbTwo}</if>
|
|
|
+ <if test="revision != null "> and revision = #{revision}</if>
|
|
|
+ </where>
|
|
|
+ and del_flag = 0 order by id desc
|
|
|
+ </select>
|
|
|
</mapper>
|