...
|
...
|
@@ -14,10 +14,12 @@ |
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
<result column="break_zhi_ma_cert" property="breakZhiMaCert" jdbcType="TINYINT" />
|
|
|
<result column="entry_type" property="entryType" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, valid_status,cert_no,cert_name,operator_uid,operator_name,enter_time,quit_time ,create_time, update_time,break_zhi_ma_cert
|
|
|
id, uid, valid_status,cert_no,cert_name,operator_uid,operator_name,enter_time,quit_time ,
|
|
|
create_time, update_time,break_zhi_ma_cert,entry_type
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectValidByUid" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
...
|
...
|
@@ -36,12 +38,19 @@ |
|
|
order by id desc limit 1
|
|
|
</select>
|
|
|
|
|
|
|
|
|
<select id="selectByUid" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select <include refid="Base_Column_List" />
|
|
|
from stored_seller where uid = #{uid}
|
|
|
</select>
|
|
|
|
|
|
<insert id="insert" parameterType="com.yohoufo.dal.order.model.StoredSeller" >
|
|
|
insert into stored_seller (uid, valid_status,cert_no,cert_name,operator_uid,operator_name,enter_time,quit_time, create_time, update_time,break_zhi_ma_cert)
|
|
|
insert into stored_seller (uid, valid_status,cert_no,cert_name,operator_uid,operator_name,
|
|
|
enter_time,quit_time, create_time, update_time,break_zhi_ma_cert,entry_type)
|
|
|
values (#{uid},#{validStatus},
|
|
|
#{certNo},#{certName},#{operatorUid},#{operatorName},
|
|
|
#{enterTime},#{quitTime},
|
|
|
#{createTime},#{updateTime},#{breakZhiMaCert})
|
|
|
#{createTime},#{updateTime},#{breakZhiMaCert},#{entryType})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateStatusByUid">
|
...
|
...
|
@@ -50,11 +59,122 @@ |
|
|
where uid = #{uid} and valid_status = #{expectStatus}
|
|
|
</update>
|
|
|
|
|
|
<!-- <update id="updateToQuitByPrimaryKey">
|
|
|
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.StoredSeller" useGeneratedKeys="true">
|
|
|
insert into stored_seller
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="uid != null">
|
|
|
uid,
|
|
|
</if>
|
|
|
<if test="validStatus != null">
|
|
|
valid_status,
|
|
|
</if>
|
|
|
<if test="certName != null">
|
|
|
cert_name,
|
|
|
</if>
|
|
|
<if test="certNo != null">
|
|
|
cert_no,
|
|
|
</if>
|
|
|
<if test="enterTime != null">
|
|
|
enter_time,
|
|
|
</if>
|
|
|
<if test="quitTime != null">
|
|
|
quit_time,
|
|
|
</if>
|
|
|
<if test="operatorUid != null">
|
|
|
operator_uid,
|
|
|
</if>
|
|
|
<if test="operatorName != null">
|
|
|
operator_name,
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
<if test="breakZhiMaCert != null">
|
|
|
break_zhi_ma_cert,
|
|
|
</if>
|
|
|
<if test="entryType != null">
|
|
|
entry_type,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="uid != null">
|
|
|
#{uid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="validStatus != null">
|
|
|
#{validStatus,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="certName != null">
|
|
|
#{certName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="certNo != null">
|
|
|
#{certNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="enterTime != null">
|
|
|
#{enterTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="quitTime != null">
|
|
|
#{quitTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="operatorUid != null">
|
|
|
#{operatorUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="operatorName != null">
|
|
|
#{operatorName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="breakZhiMaCert != null">
|
|
|
#{breakZhiMaCert,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="entryType != null">
|
|
|
#{entryType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateByUidSelective" parameterType="com.yohoufo.dal.order.model.StoredSeller">
|
|
|
update stored_seller
|
|
|
set valid_status = #{validStatus},operator_uid = #{operatorUid},operator_name=#{operatorName},
|
|
|
quit_time = #{quitTime} ,update_time = #{updateTime}
|
|
|
where id = #{id} and valid_status = #{expectStatus}
|
|
|
</update>-->
|
|
|
<set>
|
|
|
<if test="validStatus != null">
|
|
|
valid_status = #{validStatus,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="certName != null">
|
|
|
cert_name = #{certName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="certNo != null">
|
|
|
cert_no = #{certNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="enterTime != null">
|
|
|
enter_time = #{enterTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="quitTime != null">
|
|
|
quit_time = #{quitTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="operatorUid != null">
|
|
|
operator_uid = #{operatorUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="operatorName != null">
|
|
|
operator_name = #{operatorName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="breakZhiMaCert != null">
|
|
|
break_zhi_ma_cert = #{breakZhiMaCert,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="entryType != null">
|
|
|
entry_type = #{entryType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where uid = #{uid,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|