|
|
|
@ -20,12 +20,12 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
id, diNameCode, drugCode, ybbm, ycCode, sptm, ypbwm, tyshxyh, gjbm, `status`, updateTime,
|
|
|
|
|
id, diNameCode, drugCode, ybbm, ycCode, sptm, ypbwm, tyshxyh, gjbm, `status`, updateTime,
|
|
|
|
|
createTime, fromType
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
select
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from code_rel
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
@ -37,14 +37,14 @@
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.udidl.admin.entity.chs.CodeRel" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into code_rel (diNameCode, drugCode, ybbm,
|
|
|
|
|
ycCode, sptm, ypbwm,
|
|
|
|
|
tyshxyh, gjbm, `status`,
|
|
|
|
|
insert into code_rel (diNameCode, drugCode, ybbm,
|
|
|
|
|
ycCode, sptm, ypbwm,
|
|
|
|
|
tyshxyh, gjbm, `status`,
|
|
|
|
|
updateTime, createTime, fromType
|
|
|
|
|
)
|
|
|
|
|
values (#{diNameCode,jdbcType=VARCHAR}, #{drugCode,jdbcType=VARCHAR}, #{ybbm,jdbcType=VARCHAR},
|
|
|
|
|
#{ycCode,jdbcType=VARCHAR}, #{sptm,jdbcType=VARCHAR}, #{ypbwm,jdbcType=VARCHAR},
|
|
|
|
|
#{tyshxyh,jdbcType=VARCHAR}, #{gjbm,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
|
|
|
|
values (#{diNameCode,jdbcType=VARCHAR}, #{drugCode,jdbcType=VARCHAR}, #{ybbm,jdbcType=VARCHAR},
|
|
|
|
|
#{ycCode,jdbcType=VARCHAR}, #{sptm,jdbcType=VARCHAR}, #{ypbwm,jdbcType=VARCHAR},
|
|
|
|
|
#{tyshxyh,jdbcType=VARCHAR}, #{gjbm,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{fromType,jdbcType=TINYINT}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
@ -88,6 +88,18 @@
|
|
|
|
|
<if test="fromType != null">
|
|
|
|
|
fromType,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="packUnit != null">
|
|
|
|
|
packUnit,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bhxjsl != null">
|
|
|
|
|
bhxjsl,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="xjdw != null">
|
|
|
|
|
xjdw,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybBzgg != null">
|
|
|
|
|
ybBzgg,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="diNameCode != null">
|
|
|
|
@ -126,6 +138,18 @@
|
|
|
|
|
<if test="fromType != null">
|
|
|
|
|
#{fromType,jdbcType=TINYINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="packUnit != null">
|
|
|
|
|
#{packUnit,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bhxjsl != null">
|
|
|
|
|
#{bhxjsl,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="xjdw != null">
|
|
|
|
|
#{xjdw,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybBzgg != null">
|
|
|
|
|
#{ybBzgg,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udidl.admin.entity.chs.CodeRel">
|
|
|
|
@ -225,6 +249,18 @@
|
|
|
|
|
<if test="fromType != null">
|
|
|
|
|
fromType = #{fromType,jdbcType=TINYINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="packUnit != null">
|
|
|
|
|
packUnit = #{packUnit,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bhxjsl != null">
|
|
|
|
|
bhxjsl = #{bhxjsl,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="xjdw != null">
|
|
|
|
|
xjdw = #{xjdw,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybBzgg != null">
|
|
|
|
|
ybBzgg = #{ybBzgg,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="diNameCode != null">
|
|
|
|
@ -236,4 +272,4 @@
|
|
|
|
|
</where>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|
|
|
|
|