|
|
|
@ -16,6 +16,7 @@ |
|
|
|
<result column="real_amount" jdbcType="DECIMAL" property="realAmount" /> |
|
|
|
<result column="already_earn" jdbcType="DECIMAL" property="alreadyEarn" /> |
|
|
|
<result column="no_earn" jdbcType="DECIMAL" property="noEarn" /> |
|
|
|
<result column="pay_status" jdbcType="VARCHAR" property="payStatus" /> |
|
|
|
<result column="status" jdbcType="VARCHAR" property="status" /> |
|
|
|
<result column="transport_type" jdbcType="VARCHAR" property="transportType" /> |
|
|
|
<result column="share_address" jdbcType="VARCHAR" property="shareAddress" /> |
|
|
|
@ -84,8 +85,8 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, create_by, create_time, del_flag, update_by, update_time, user_id, shop_id, total_amount, |
|
|
|
discount, discount_amount, real_amount, already_earn, no_earn, status, transport_type, |
|
|
|
share_address, receive_address, province, city, area |
|
|
|
discount, discount_amount, real_amount, already_earn, no_earn, pay_status, status, |
|
|
|
transport_type, share_address, receive_address, province, city, area |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="cc.hiver.mall.entity.SaleExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
@ -122,18 +123,18 @@ |
|
|
|
del_flag, update_by, update_time, |
|
|
|
user_id, shop_id, total_amount, |
|
|
|
discount, discount_amount, real_amount, |
|
|
|
already_earn, no_earn, status, |
|
|
|
transport_type, share_address, receive_address, |
|
|
|
province, city, area |
|
|
|
) |
|
|
|
already_earn, no_earn, pay_status, |
|
|
|
status, transport_type, share_address, |
|
|
|
receive_address, province, city, |
|
|
|
area) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
#{userId,jdbcType=BIGINT}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, |
|
|
|
#{discount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, #{realAmount,jdbcType=DECIMAL}, |
|
|
|
#{alreadyEarn,jdbcType=DECIMAL}, #{noEarn,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, |
|
|
|
#{transportType,jdbcType=VARCHAR}, #{shareAddress,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, |
|
|
|
#{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR} |
|
|
|
) |
|
|
|
#{alreadyEarn,jdbcType=DECIMAL}, #{noEarn,jdbcType=DECIMAL}, #{payStatus,jdbcType=VARCHAR}, |
|
|
|
#{status,jdbcType=VARCHAR}, #{transportType,jdbcType=VARCHAR}, #{shareAddress,jdbcType=VARCHAR}, |
|
|
|
#{receiveAddress,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, |
|
|
|
#{area,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Sale"> |
|
|
|
insert into t_sale |
|
|
|
@ -180,6 +181,9 @@ |
|
|
|
<if test="noEarn != null"> |
|
|
|
no_earn, |
|
|
|
</if> |
|
|
|
<if test="payStatus != null"> |
|
|
|
pay_status, |
|
|
|
</if> |
|
|
|
<if test="status != null"> |
|
|
|
status, |
|
|
|
</if> |
|
|
|
@ -245,6 +249,9 @@ |
|
|
|
<if test="noEarn != null"> |
|
|
|
#{noEarn,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="payStatus != null"> |
|
|
|
#{payStatus,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="status != null"> |
|
|
|
#{status,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -319,6 +326,9 @@ |
|
|
|
<if test="record.noEarn != null"> |
|
|
|
no_earn = #{record.noEarn,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="record.payStatus != null"> |
|
|
|
pay_status = #{record.payStatus,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.status != null"> |
|
|
|
status = #{record.status,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -361,6 +371,7 @@ |
|
|
|
real_amount = #{record.realAmount,jdbcType=DECIMAL}, |
|
|
|
already_earn = #{record.alreadyEarn,jdbcType=DECIMAL}, |
|
|
|
no_earn = #{record.noEarn,jdbcType=DECIMAL}, |
|
|
|
pay_status = #{record.payStatus,jdbcType=VARCHAR}, |
|
|
|
status = #{record.status,jdbcType=VARCHAR}, |
|
|
|
transport_type = #{record.transportType,jdbcType=VARCHAR}, |
|
|
|
share_address = #{record.shareAddress,jdbcType=VARCHAR}, |
|
|
|
@ -414,6 +425,9 @@ |
|
|
|
<if test="noEarn != null"> |
|
|
|
no_earn = #{noEarn,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="payStatus != null"> |
|
|
|
pay_status = #{payStatus,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="status != null"> |
|
|
|
status = #{status,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
@ -453,6 +467,7 @@ |
|
|
|
real_amount = #{realAmount,jdbcType=DECIMAL}, |
|
|
|
already_earn = #{alreadyEarn,jdbcType=DECIMAL}, |
|
|
|
no_earn = #{noEarn,jdbcType=DECIMAL}, |
|
|
|
pay_status = #{payStatus,jdbcType=VARCHAR}, |
|
|
|
status = #{status,jdbcType=VARCHAR}, |
|
|
|
transport_type = #{transportType,jdbcType=VARCHAR}, |
|
|
|
share_address = #{shareAddress,jdbcType=VARCHAR}, |
|
|
|
|