|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<mapper namespace="com.ms.dal.mapper.AftersaleArbitrateMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.ms.dal.entity.AftersaleArbitrate">
|
|
|
|
|
<id property="arbitrateId" column="arbitrate_id" jdbcType="BIGINT"/>
|
|
|
|
|
<id property="arbitrateId" column="arbitrate_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="aftersaleId" column="aftersale_id" jdbcType="BIGINT"/>
|
|
|
|
|
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
|
|
|
|
|
<result property="arbitrateState" column="arbitrate_state" jdbcType="SMALLINT"/>
|
|
|
|
@ -29,16 +29,16 @@
|
|
|
|
|
gmt_create,gmt_modified
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from aftersale_arbitrate
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from aftersale_arbitrate
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" keyColumn="arbitrate_id" keyProperty="arbitrateId" parameterType="com.ms.dal.entity.AftersaleArbitrate" useGeneratedKeys="true">
|
|
|
|
|
insert into aftersale_arbitrate
|
|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
,arbitrate_evidence_tmpl,evidence,arbitrate_conclusion
|
|
|
|
|
,arbitrate_opinion,arbitrate_create_time,arbitrate_update_time
|
|
|
|
|
,gmt_create,gmt_modified)
|
|
|
|
|
values (#{arbitrateId,jdbcType=BIGINT},#{aftersaleId,jdbcType=BIGINT},#{shopId,jdbcType=BIGINT}
|
|
|
|
|
values (#{arbitrateId,jdbcType=VARCHAR},#{aftersaleId,jdbcType=BIGINT},#{shopId,jdbcType=BIGINT}
|
|
|
|
|
,#{arbitrateState,jdbcType=SMALLINT},#{evidenceDeadline,jdbcType=TIMESTAMP},#{isRequiredEvidence,jdbcType=BOOLEAN}
|
|
|
|
|
,#{arbitrateEvidenceTmpl,jdbcType=VARCHAR},#{evidence,jdbcType=VARCHAR},#{arbitrateConclusion,jdbcType=VARCHAR}
|
|
|
|
|
,#{arbitrateOpinion,jdbcType=VARCHAR},#{arbitrateCreateTime,jdbcType=TIMESTAMP},#{arbitrateUpdateTime,jdbcType=TIMESTAMP}
|
|
|
|
@ -72,7 +72,7 @@
|
|
|
|
|
<if test="gmtModified != null">gmt_modified,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="arbitrateId != null">#{arbitrateId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="arbitrateId != null">#{arbitrateId,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="aftersaleId != null">#{aftersaleId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="arbitrateState != null">#{arbitrateState,jdbcType=SMALLINT},</if>
|
|
|
|
@ -92,7 +92,7 @@
|
|
|
|
|
update aftersale_arbitrate
|
|
|
|
|
<set>
|
|
|
|
|
<if test="aftersaleId != null">
|
|
|
|
|
aftersale_id = #{aftersaleId,jdbcType=BIGINT},
|
|
|
|
|
aftersale_id = #{aftersaleId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopId != null">
|
|
|
|
|
shop_id = #{shopId,jdbcType=BIGINT},
|
|
|
|
@ -131,12 +131,12 @@
|
|
|
|
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.AftersaleArbitrate">
|
|
|
|
|
update aftersale_arbitrate
|
|
|
|
|
set
|
|
|
|
|
aftersale_id = #{aftersaleId,jdbcType=BIGINT},
|
|
|
|
|
set
|
|
|
|
|
aftersale_id = #{aftersaleId,jdbcType=VARCHAR},
|
|
|
|
|
shop_id = #{shopId,jdbcType=BIGINT},
|
|
|
|
|
arbitrate_state = #{arbitrateState,jdbcType=SMALLINT},
|
|
|
|
|
evidence_deadline = #{evidenceDeadline,jdbcType=TIMESTAMP},
|
|
|
|
@ -149,6 +149,6 @@
|
|
|
|
|
arbitrate_update_time = #{arbitrateUpdateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
|
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=BIGINT}
|
|
|
|
|
where arbitrate_id = #{arbitrateId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|
|
|
|
|