|
|
|
@ -4,9 +4,11 @@
|
|
|
|
<resultMap id="BaseResultMap" type="com.emr.entity.EmrComomSet" >
|
|
|
|
<resultMap id="BaseResultMap" type="com.emr.entity.EmrComomSet" >
|
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
|
<result column="times" property="times" jdbcType="SMALLINT" />
|
|
|
|
<result column="times" property="times" jdbcType="SMALLINT" />
|
|
|
|
|
|
|
|
<result column="defaultDay" property="defaultDay" jdbcType="INTEGER" />
|
|
|
|
|
|
|
|
<result column="maxDay" property="maxDay" jdbcType="INTEGER" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
|
id, times
|
|
|
|
id, times, defaultDay, maxDay
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
|
select
|
|
|
|
select
|
|
|
|
@ -19,8 +21,8 @@
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
<insert id="insert" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
insert into emr_comom_set (id, times)
|
|
|
|
insert into emr_comom_set (id, times, defaultDay, maxDay)
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{times,jdbcType=SMALLINT})
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{times,jdbcType=SMALLINT}, #{defaultDay,jdbcType=INTEGER}, #{maxDay,jdbcType=INTEGER})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
<insert id="insertSelective" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
insert into emr_comom_set
|
|
|
|
insert into emr_comom_set
|
|
|
|
@ -31,6 +33,12 @@
|
|
|
|
<if test="times != null" >
|
|
|
|
<if test="times != null" >
|
|
|
|
times,
|
|
|
|
times,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="defaultDay != null" >
|
|
|
|
|
|
|
|
defaultDay,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="maxDay != null" >
|
|
|
|
|
|
|
|
maxDay,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
|
<if test="id != null" >
|
|
|
|
<if test="id != null" >
|
|
|
|
@ -39,6 +47,12 @@
|
|
|
|
<if test="times != null" >
|
|
|
|
<if test="times != null" >
|
|
|
|
#{times,jdbcType=SMALLINT},
|
|
|
|
#{times,jdbcType=SMALLINT},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="defaultDay != null" >
|
|
|
|
|
|
|
|
#{defaultDay,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="maxDay != null" >
|
|
|
|
|
|
|
|
#{maxDay,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
@ -47,12 +61,18 @@
|
|
|
|
<if test="times != null" >
|
|
|
|
<if test="times != null" >
|
|
|
|
times = #{times,jdbcType=SMALLINT},
|
|
|
|
times = #{times,jdbcType=SMALLINT},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="defaultDay != null" >
|
|
|
|
|
|
|
|
#{defaultDay,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="maxDay != null" >
|
|
|
|
|
|
|
|
#{maxDay,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.emr.entity.EmrComomSet" >
|
|
|
|
update emr_comom_set
|
|
|
|
update emr_comom_set
|
|
|
|
set times = #{times,jdbcType=SMALLINT}
|
|
|
|
set times = #{times,jdbcType=SMALLINT}, defaultDay = #{defaultDay,jdbcType=INTEGER}, maxDay = #{maxDay,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|