20240115-ljl-multiPay
parent
f51e8a5553
commit
804a410f0f
@ -0,0 +1,22 @@
|
|||||||
|
package com.ms.api.dto.dsorder;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AlibabaMessage {
|
||||||
|
private String msgType;
|
||||||
|
private JSONObject msgData;
|
||||||
|
|
||||||
|
public boolean isRefundAfterMsg() {
|
||||||
|
return "ORDER_BUYER_VIEW_ORDER_REFUND_AFTER_SALES".equals(msgType);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isRefundInMsg() {
|
||||||
|
return "ORDER_BUYER_VIEW_ORDER_BUYER_REFUND_IN_SALES".equals(msgType);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isRefundMsg() {
|
||||||
|
return isRefundAfterMsg() || isRefundInMsg();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.ms.biz.service;
|
||||||
|
|
||||||
|
import com.ms.dal.entity.RefundPurchaseOrder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface RefundPurchaseOrderService {
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
int insertSelective(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
RefundPurchaseOrder selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(RefundPurchaseOrder record);
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.ms.biz.service;
|
||||||
|
|
||||||
|
import com.ms.dal.entity.RefundPurchaseOrderSku;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface RefundPurchaseOrderSkuService {
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
int insertSelective(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
RefundPurchaseOrderSku selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(RefundPurchaseOrderSku record);
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.ms.biz.service.impl;
|
||||||
|
|
||||||
|
import com.ms.dal.entity.RefundPurchaseOrder;
|
||||||
|
import com.ms.dal.service.RefundPurchaseOrderService;
|
||||||
|
import com.ms.dal.mapper.RefundPurchaseOrderMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RefundPurchaseOrderServiceImpl implements RefundPurchaseOrderService{
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private RefundPurchaseOrderMapper refundPurchaseOrderMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteByPrimaryKey(Long id) {
|
||||||
|
return refundPurchaseOrderMapper.deleteByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insert(RefundPurchaseOrder record) {
|
||||||
|
return refundPurchaseOrderMapper.insert(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertSelective(RefundPurchaseOrder record) {
|
||||||
|
return refundPurchaseOrderMapper.insertSelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RefundPurchaseOrder selectByPrimaryKey(Long id) {
|
||||||
|
return refundPurchaseOrderMapper.selectByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateByPrimaryKeySelective(RefundPurchaseOrder record) {
|
||||||
|
return refundPurchaseOrderMapper.updateByPrimaryKeySelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateByPrimaryKey(RefundPurchaseOrder record) {
|
||||||
|
return refundPurchaseOrderMapper.updateByPrimaryKey(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.ms.biz.service.impl;
|
||||||
|
|
||||||
|
import com.ms.dal.entity.RefundPurchaseOrderSku;
|
||||||
|
import com.ms.dal.service.RefundPurchaseOrderSkuService;
|
||||||
|
import com.ms.dal.mapper.RefundPurchaseOrderSkuMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RefundPurchaseOrderSkuServiceImpl implements RefundPurchaseOrderSkuService{
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private RefundPurchaseOrderSkuMapper refundPurchaseOrderSkuMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteByPrimaryKey(Long id) {
|
||||||
|
return refundPurchaseOrderSkuMapper.deleteByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insert(RefundPurchaseOrderSku record) {
|
||||||
|
return refundPurchaseOrderSkuMapper.insert(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertSelective(RefundPurchaseOrderSku record) {
|
||||||
|
return refundPurchaseOrderSkuMapper.insertSelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RefundPurchaseOrderSku selectByPrimaryKey(Long id) {
|
||||||
|
return refundPurchaseOrderSkuMapper.selectByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateByPrimaryKeySelective(RefundPurchaseOrderSku record) {
|
||||||
|
return refundPurchaseOrderSkuMapper.updateByPrimaryKeySelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateByPrimaryKey(RefundPurchaseOrderSku record) {
|
||||||
|
return refundPurchaseOrderSkuMapper.updateByPrimaryKey(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,66 @@
|
|||||||
|
package com.ms.dal.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退款子单表
|
||||||
|
* @TableName refund_purchase_order_sku
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class RefundPurchaseOrderSku implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Long refundPurchaseOrderSkuId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退款单号
|
||||||
|
*/
|
||||||
|
private String refundId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 店铺id
|
||||||
|
*/
|
||||||
|
private Long shopId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 选品采购单号
|
||||||
|
*/
|
||||||
|
private String purOrderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 采购子单
|
||||||
|
*/
|
||||||
|
private String purSkuOrderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单id
|
||||||
|
*/
|
||||||
|
private String orderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1688采购子单号
|
||||||
|
*/
|
||||||
|
private String subItemId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sku数量
|
||||||
|
*/
|
||||||
|
private Integer num;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date gmtCreate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改时间
|
||||||
|
*/
|
||||||
|
private Date gmtModified;
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.ms.dal.mapper;
|
||||||
|
|
||||||
|
import com.ms.dal.entity.RefundPurchaseOrder;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Entity com.ms.dal.entity.RefundPurchaseOrder
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface RefundPurchaseOrderMapper {
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
int insertOrUpdate(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
int insertSelective(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
RefundPurchaseOrder selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(RefundPurchaseOrder record);
|
||||||
|
|
||||||
|
RefundPurchaseOrder getByRefundId(@Param("refundId") String refundId);
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.ms.dal.mapper;
|
||||||
|
|
||||||
|
import com.ms.dal.entity.RefundPurchaseOrderSku;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Entity com.ms.dal.entity.RefundPurchaseOrderSku
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface RefundPurchaseOrderSkuMapper {
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int insert(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
int insertOrUpdate(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
int insertSelective(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
RefundPurchaseOrderSku selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(RefundPurchaseOrderSku record);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,291 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ms.dal.mapper.RefundPurchaseOrderMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.ms.dal.entity.RefundPurchaseOrder">
|
||||||
|
<id property="refundPurchaseOrderId" column="refund_purchase_order_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="refundId" column="refund_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="purOrderId" column="pur_order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="orderId" column="order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="rejectReason" column="reject_reason" jdbcType="VARCHAR"/>
|
||||||
|
<result property="onlyRefund" column="only_refund" jdbcType="TINYINT"/>
|
||||||
|
<result property="refundGoods" column="refund_goods" jdbcType="TINYINT"/>
|
||||||
|
<result property="goodsReceived" column="goods_received" jdbcType="TINYINT"/>
|
||||||
|
<result property="goodsStatus" column="goods_status" jdbcType="TINYINT"/>
|
||||||
|
<result property="sellerMobile" column="seller_mobile" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sellerTel" column="seller_tel" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sellerRealName" column="seller_real_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="sellerReceiveAddress" column="seller_receive_address" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gmtTimeOut" column="gmt_time_out" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="status" column="status" jdbcType="VARCHAR"/>
|
||||||
|
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
refund_purchase_order_id,refund_id,pur_order_id,
|
||||||
|
order_id,shop_id,reject_reason,
|
||||||
|
only_refund,refund_goods,goods_received,
|
||||||
|
goods_status,seller_mobile,seller_tel,
|
||||||
|
seller_real_name,seller_receive_address,gmt_time_out,
|
||||||
|
status,gmt_create,gmt_modified
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from refund_purchase_order
|
||||||
|
where refund_purchase_order_id = #{refundPurchaseOrderId,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
<select id="getByRefundId" resultType="com.ms.dal.entity.RefundPurchaseOrder">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from refund_purchase_order
|
||||||
|
where refund_id = #{refundId,jdbcType=VARCHAR}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from refund_purchase_order
|
||||||
|
where refund_purchase_order_id = #{refundPurchaseOrderId,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" keyColumn="refund_purchase_order_id" keyProperty="refundPurchaseOrderId" parameterType="com.ms.dal.entity.RefundPurchaseOrder" useGeneratedKeys="true">
|
||||||
|
insert into refund_purchase_order
|
||||||
|
( refund_purchase_order_id,refund_id,pur_order_id
|
||||||
|
,order_id,shop_id,reject_reason
|
||||||
|
,only_refund,refund_goods,goods_received
|
||||||
|
,goods_status,seller_mobile,seller_tel
|
||||||
|
,seller_real_name,seller_receive_address,gmt_time_out
|
||||||
|
,status,gmt_create,gmt_modified
|
||||||
|
)
|
||||||
|
values (#{refundPurchaseOrderId,jdbcType=BIGINT},#{refundId,jdbcType=VARCHAR},#{purOrderId,jdbcType=VARCHAR}
|
||||||
|
,#{orderId,jdbcType=VARCHAR},#{shopId,jdbcType=BIGINT},#{rejectReason,jdbcType=VARCHAR}
|
||||||
|
,#{onlyRefund,jdbcType=TINYINT},#{refundGoods,jdbcType=TINYINT},#{goodsReceived,jdbcType=TINYINT}
|
||||||
|
,#{goodsStatus,jdbcType=TINYINT},#{sellerMobile,jdbcType=VARCHAR},#{sellerTel,jdbcType=VARCHAR}
|
||||||
|
,#{sellerRealName,jdbcType=VARCHAR},#{sellerReceiveAddress,jdbcType=VARCHAR},#{gmtTimeOut,jdbcType=TIMESTAMP}
|
||||||
|
,#{status,jdbcType=VARCHAR},#{gmtCreate,jdbcType=TIMESTAMP},#{gmtModified,jdbcType=TIMESTAMP}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<update id="insertOrUpdate" keyColumn="refund_purchase_order_id" keyProperty="refundPurchaseOrderId" parameterType="com.ms.dal.entity.RefundPurchaseOrder"
|
||||||
|
useGeneratedKeys="true">
|
||||||
|
insert into refund_purchase_order
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderId != null">refund_purchase_order_id,</if>
|
||||||
|
<if test="refundId != null">refund_id,</if>
|
||||||
|
<if test="purOrderId != null">pur_order_id,</if>
|
||||||
|
<if test="orderId != null">order_id,</if>
|
||||||
|
<if test="shopId != null">shop_id,</if>
|
||||||
|
<if test="rejectReason != null">reject_reason,</if>
|
||||||
|
<if test="onlyRefund != null">only_refund,</if>
|
||||||
|
<if test="refundGoods != null">refund_goods,</if>
|
||||||
|
<if test="goodsReceived != null">goods_received,</if>
|
||||||
|
<if test="goodsStatus != null">goods_status,</if>
|
||||||
|
<if test="sellerMobile != null">seller_mobile,</if>
|
||||||
|
<if test="sellerTel != null">seller_tel,</if>
|
||||||
|
<if test="sellerRealName != null">seller_real_name,</if>
|
||||||
|
<if test="sellerReceiveAddress != null">seller_receive_address,</if>
|
||||||
|
<if test="gmtTimeOut != null">gmt_time_out,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="gmtCreate != null">gmt_create,</if>
|
||||||
|
<if test="gmtModified != null">gmt_modified,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderId != null">#{refundPurchaseOrderId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="refundId != null">#{refundId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="purOrderId != null">#{purOrderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="rejectReason != null">#{rejectReason,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="onlyRefund != null">#{onlyRefund,jdbcType=TINYINT},</if>
|
||||||
|
<if test="refundGoods != null">#{refundGoods,jdbcType=TINYINT},</if>
|
||||||
|
<if test="goodsReceived != null">#{goodsReceived,jdbcType=TINYINT},</if>
|
||||||
|
<if test="goodsStatus != null">#{goodsStatus,jdbcType=TINYINT},</if>
|
||||||
|
<if test="sellerMobile != null">#{sellerMobile,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="sellerTel != null">#{sellerTel,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="sellerRealName != null">#{sellerRealName,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="sellerReceiveAddress != null">#{sellerReceiveAddress,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="gmtTimeOut != null">#{gmtTimeOut,jdbcType=TIMESTAMP},</if>
|
||||||
|
<if test="status != null">#{status,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||||
|
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||||
|
</trim>
|
||||||
|
ON DUPLICATE KEY UPDATE
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="refundId != null">
|
||||||
|
refund_id = #{refundId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="purOrderId != null">
|
||||||
|
pur_order_id = #{purOrderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="orderId != null">
|
||||||
|
order_id = #{orderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="shopId != null">
|
||||||
|
shop_id = #{shopId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="rejectReason != null">
|
||||||
|
reject_reason = #{rejectReason,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="onlyRefund != null">
|
||||||
|
only_refund = #{onlyRefund,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="refundGoods != null">
|
||||||
|
refund_goods = #{refundGoods,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="goodsReceived != null">
|
||||||
|
goods_received = #{goodsReceived,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="goodsStatus != null">
|
||||||
|
goods_status = #{goodsStatus,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="sellerMobile != null">
|
||||||
|
seller_mobile = #{sellerMobile,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sellerTel != null">
|
||||||
|
seller_tel = #{sellerTel,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sellerRealName != null">
|
||||||
|
seller_real_name = #{sellerRealName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sellerReceiveAddress != null">
|
||||||
|
seller_receive_address = #{sellerReceiveAddress,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="gmtTimeOut != null">
|
||||||
|
gmt_time_out = #{gmtTimeOut,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
status = #{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="gmtCreate != null">
|
||||||
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="gmtModified != null">
|
||||||
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<insert id="insertSelective" keyColumn="refund_purchase_order_id" keyProperty="refundPurchaseOrderId" parameterType="com.ms.dal.entity.RefundPurchaseOrder" useGeneratedKeys="true">
|
||||||
|
insert into refund_purchase_order
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderId != null">refund_purchase_order_id,</if>
|
||||||
|
<if test="refundId != null">refund_id,</if>
|
||||||
|
<if test="purOrderId != null">pur_order_id,</if>
|
||||||
|
<if test="orderId != null">order_id,</if>
|
||||||
|
<if test="shopId != null">shop_id,</if>
|
||||||
|
<if test="rejectReason != null">reject_reason,</if>
|
||||||
|
<if test="onlyRefund != null">only_refund,</if>
|
||||||
|
<if test="refundGoods != null">refund_goods,</if>
|
||||||
|
<if test="goodsReceived != null">goods_received,</if>
|
||||||
|
<if test="goodsStatus != null">goods_status,</if>
|
||||||
|
<if test="sellerMobile != null">seller_mobile,</if>
|
||||||
|
<if test="sellerTel != null">seller_tel,</if>
|
||||||
|
<if test="sellerRealName != null">seller_real_name,</if>
|
||||||
|
<if test="sellerReceiveAddress != null">seller_receive_address,</if>
|
||||||
|
<if test="gmtTimeOut != null">gmt_time_out,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="gmtCreate != null">gmt_create,</if>
|
||||||
|
<if test="gmtModified != null">gmt_modified,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderId != null">#{refundPurchaseOrderId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="refundId != null">#{refundId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="purOrderId != null">#{purOrderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="rejectReason != null">#{rejectReason,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="onlyRefund != null">#{onlyRefund,jdbcType=TINYINT},</if>
|
||||||
|
<if test="refundGoods != null">#{refundGoods,jdbcType=TINYINT},</if>
|
||||||
|
<if test="goodsReceived != null">#{goodsReceived,jdbcType=TINYINT},</if>
|
||||||
|
<if test="goodsStatus != null">#{goodsStatus,jdbcType=TINYINT},</if>
|
||||||
|
<if test="sellerMobile != null">#{sellerMobile,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="sellerTel != null">#{sellerTel,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="sellerRealName != null">#{sellerRealName,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="sellerReceiveAddress != null">#{sellerReceiveAddress,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="gmtTimeOut != null">#{gmtTimeOut,jdbcType=TIMESTAMP},</if>
|
||||||
|
<if test="status != null">#{status,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||||
|
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.RefundPurchaseOrder">
|
||||||
|
update refund_purchase_order
|
||||||
|
<set>
|
||||||
|
<if test="refundId != null">
|
||||||
|
refund_id = #{refundId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="purOrderId != null">
|
||||||
|
pur_order_id = #{purOrderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="orderId != null">
|
||||||
|
order_id = #{orderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="shopId != null">
|
||||||
|
shop_id = #{shopId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="rejectReason != null">
|
||||||
|
reject_reason = #{rejectReason,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="onlyRefund != null">
|
||||||
|
only_refund = #{onlyRefund,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="refundGoods != null">
|
||||||
|
refund_goods = #{refundGoods,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="goodsReceived != null">
|
||||||
|
goods_received = #{goodsReceived,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="goodsStatus != null">
|
||||||
|
goods_status = #{goodsStatus,jdbcType=TINYINT},
|
||||||
|
</if>
|
||||||
|
<if test="sellerMobile != null">
|
||||||
|
seller_mobile = #{sellerMobile,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sellerTel != null">
|
||||||
|
seller_tel = #{sellerTel,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sellerRealName != null">
|
||||||
|
seller_real_name = #{sellerRealName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="sellerReceiveAddress != null">
|
||||||
|
seller_receive_address = #{sellerReceiveAddress,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="gmtTimeOut != null">
|
||||||
|
gmt_time_out = #{gmtTimeOut,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
status = #{status,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="gmtCreate != null">
|
||||||
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="gmtModified != null">
|
||||||
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where refund_purchase_order_id = #{refundPurchaseOrderId,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.RefundPurchaseOrder">
|
||||||
|
update refund_purchase_order
|
||||||
|
set
|
||||||
|
refund_id = #{refundId,jdbcType=VARCHAR},
|
||||||
|
pur_order_id = #{purOrderId,jdbcType=VARCHAR},
|
||||||
|
order_id = #{orderId,jdbcType=VARCHAR},
|
||||||
|
shop_id = #{shopId,jdbcType=BIGINT},
|
||||||
|
reject_reason = #{rejectReason,jdbcType=VARCHAR},
|
||||||
|
only_refund = #{onlyRefund,jdbcType=TINYINT},
|
||||||
|
refund_goods = #{refundGoods,jdbcType=TINYINT},
|
||||||
|
goods_received = #{goodsReceived,jdbcType=TINYINT},
|
||||||
|
goods_status = #{goodsStatus,jdbcType=TINYINT},
|
||||||
|
seller_mobile = #{sellerMobile,jdbcType=VARCHAR},
|
||||||
|
seller_tel = #{sellerTel,jdbcType=VARCHAR},
|
||||||
|
seller_real_name = #{sellerRealName,jdbcType=VARCHAR},
|
||||||
|
seller_receive_address = #{sellerReceiveAddress,jdbcType=VARCHAR},
|
||||||
|
gmt_time_out = #{gmtTimeOut,jdbcType=TIMESTAMP},
|
||||||
|
status = #{status,jdbcType=VARCHAR},
|
||||||
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
||||||
|
where refund_purchase_order_id = #{refundPurchaseOrderId,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
@ -0,0 +1,181 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ms.dal.mapper.RefundPurchaseOrderSkuMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.ms.dal.entity.RefundPurchaseOrderSku">
|
||||||
|
<id property="refundPurchaseOrderSkuId" column="refund_purchase_order_sku_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="refundId" column="refund_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="purOrderId" column="pur_order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="purSkuOrderId" column="pur_sku_order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="orderId" column="order_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="subItemId" column="sub_item_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="num" column="num" jdbcType="INTEGER"/>
|
||||||
|
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
refund_purchase_order_sku_id,refund_id,shop_id,
|
||||||
|
pur_order_id,pur_sku_order_id,order_id,
|
||||||
|
sub_item_id,num,gmt_create,
|
||||||
|
gmt_modified
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from refund_purchase_order_sku
|
||||||
|
where refund_purchase_order_sku_id = #{refundPurchaseOrderSkuId,jdbcType=BIGINT}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
|
delete from refund_purchase_order_sku
|
||||||
|
where refund_purchase_order_sku_id = #{refundPurchaseOrderSkuId,jdbcType=BIGINT}
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" keyColumn="refund_purchase_order_sku_id" keyProperty="refundPurchaseOrderSkuId" parameterType="com.ms.dal.entity.RefundPurchaseOrderSku" useGeneratedKeys="true">
|
||||||
|
insert into refund_purchase_order_sku
|
||||||
|
( refund_purchase_order_sku_id,refund_id,shop_id
|
||||||
|
,pur_order_id,pur_sku_order_id,order_id
|
||||||
|
,sub_item_id,num,gmt_create
|
||||||
|
,gmt_modified)
|
||||||
|
values (#{refundPurchaseOrderSkuId,jdbcType=BIGINT},#{refundId,jdbcType=VARCHAR},#{shopId,jdbcType=BIGINT}
|
||||||
|
,#{purOrderId,jdbcType=VARCHAR},#{purSkuOrderId,jdbcType=VARCHAR},#{orderId,jdbcType=VARCHAR}
|
||||||
|
,#{subItemId,jdbcType=VARCHAR},#{num,jdbcType=INTEGER},#{gmtCreate,jdbcType=TIMESTAMP}
|
||||||
|
,#{gmtModified,jdbcType=TIMESTAMP})
|
||||||
|
</insert>
|
||||||
|
<update id="insertOrUpdate" keyColumn="refund_purchase_order_sku_id" keyProperty="refundPurchaseOrderSkuId" parameterType="com.ms.dal.entity.RefundPurchaseOrderSku"
|
||||||
|
useGeneratedKeys="true">
|
||||||
|
insert into refund_purchase_order_sku
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderSkuId != null">refund_purchase_order_sku_id,</if>
|
||||||
|
<if test="refundId != null">refund_id,</if>
|
||||||
|
<if test="shopId != null">shop_id,</if>
|
||||||
|
<if test="purOrderId != null">pur_order_id,</if>
|
||||||
|
<if test="purSkuOrderId != null">pur_sku_order_id,</if>
|
||||||
|
<if test="orderId != null">order_id,</if>
|
||||||
|
<if test="subItemId != null">sub_item_id,</if>
|
||||||
|
<if test="num != null">num,</if>
|
||||||
|
<if test="gmtCreate != null">gmt_create,</if>
|
||||||
|
<if test="gmtModified != null">gmt_modified,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderSkuId != null">#{refundPurchaseOrderSkuId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="refundId != null">#{refundId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="purOrderId != null">#{purOrderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="purSkuOrderId != null">#{purSkuOrderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="subItemId != null">#{subItemId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="num != null">#{num,jdbcType=INTEGER},</if>
|
||||||
|
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||||
|
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||||
|
</trim>
|
||||||
|
ON DUPLICATE KEY UPDATE
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="refundId != null">
|
||||||
|
refund_id = #{refundId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="shopId != null">
|
||||||
|
shop_id = #{shopId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="purOrderId != null">
|
||||||
|
pur_order_id = #{purOrderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="purSkuOrderId != null">
|
||||||
|
pur_sku_order_id = #{purSkuOrderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="orderId != null">
|
||||||
|
order_id = #{orderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="subItemId != null">
|
||||||
|
sub_item_id = #{subItemId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="num != null">
|
||||||
|
num = #{num,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="gmtCreate != null">
|
||||||
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="gmtModified != null">
|
||||||
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</update>
|
||||||
|
<insert id="insertSelective" keyColumn="refund_purchase_order_sku_id" keyProperty="refundPurchaseOrderSkuId" parameterType="com.ms.dal.entity.RefundPurchaseOrderSku" useGeneratedKeys="true">
|
||||||
|
insert into refund_purchase_order_sku
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderSkuId != null">refund_purchase_order_sku_id,</if>
|
||||||
|
<if test="refundId != null">refund_id,</if>
|
||||||
|
<if test="shopId != null">shop_id,</if>
|
||||||
|
<if test="purOrderId != null">pur_order_id,</if>
|
||||||
|
<if test="purSkuOrderId != null">pur_sku_order_id,</if>
|
||||||
|
<if test="orderId != null">order_id,</if>
|
||||||
|
<if test="subItemId != null">sub_item_id,</if>
|
||||||
|
<if test="num != null">num,</if>
|
||||||
|
<if test="gmtCreate != null">gmt_create,</if>
|
||||||
|
<if test="gmtModified != null">gmt_modified,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="refundPurchaseOrderSkuId != null">#{refundPurchaseOrderSkuId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="refundId != null">#{refundId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
||||||
|
<if test="purOrderId != null">#{purOrderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="purSkuOrderId != null">#{purSkuOrderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="subItemId != null">#{subItemId,jdbcType=VARCHAR},</if>
|
||||||
|
<if test="num != null">#{num,jdbcType=INTEGER},</if>
|
||||||
|
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||||
|
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.RefundPurchaseOrderSku">
|
||||||
|
update refund_purchase_order_sku
|
||||||
|
<set>
|
||||||
|
<if test="refundId != null">
|
||||||
|
refund_id = #{refundId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="shopId != null">
|
||||||
|
shop_id = #{shopId,jdbcType=BIGINT},
|
||||||
|
</if>
|
||||||
|
<if test="purOrderId != null">
|
||||||
|
pur_order_id = #{purOrderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="purSkuOrderId != null">
|
||||||
|
pur_sku_order_id = #{purSkuOrderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="orderId != null">
|
||||||
|
order_id = #{orderId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="subItemId != null">
|
||||||
|
sub_item_id = #{subItemId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="num != null">
|
||||||
|
num = #{num,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="gmtCreate != null">
|
||||||
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="gmtModified != null">
|
||||||
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where refund_purchase_order_sku_id = #{refundPurchaseOrderSkuId,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.RefundPurchaseOrderSku">
|
||||||
|
update refund_purchase_order_sku
|
||||||
|
set
|
||||||
|
refund_id = #{refundId,jdbcType=VARCHAR},
|
||||||
|
shop_id = #{shopId,jdbcType=BIGINT},
|
||||||
|
pur_order_id = #{purOrderId,jdbcType=VARCHAR},
|
||||||
|
pur_sku_order_id = #{purSkuOrderId,jdbcType=VARCHAR},
|
||||||
|
order_id = #{orderId,jdbcType=VARCHAR},
|
||||||
|
sub_item_id = #{subItemId,jdbcType=VARCHAR},
|
||||||
|
num = #{num,jdbcType=INTEGER},
|
||||||
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||||
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
||||||
|
where refund_purchase_order_sku_id = #{refundPurchaseOrderSkuId,jdbcType=BIGINT}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue