商品查询修改

This commit is contained in:
wangguocheng 2024-05-17 10:48:36 +08:00
parent 168d9c8a43
commit 09e9b172ee
6 changed files with 1144 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.OrderChildDetail;
public interface OrderChildDetailMapper {
int deleteByPrimaryKey(Integer id);
int insert(OrderChildDetail record);
int insertSelective(OrderChildDetail record);
OrderChildDetail selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(OrderChildDetail record);
int updateByPrimaryKey(OrderChildDetail record);
}

View File

@ -0,0 +1,17 @@
package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.OrderChildInfo;
public interface OrderChildInfoMapper {
int deleteByPrimaryKey(Integer id);
int insert(OrderChildInfo record);
int insertSelective(OrderChildInfo record);
OrderChildInfo selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(OrderChildInfo record);
int updateByPrimaryKey(OrderChildInfo record);
}

View File

@ -0,0 +1,159 @@
package com.chaozhanggui.system.cashierservice.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class OrderChildDetail implements Serializable {
private Integer id;
private Integer orderId;
private Integer shopId;
private Integer productId;
private Integer productSkuId;
private Integer num;
private String productName;
private String productSkuName;
private String productImg;
private Date createTime;
private Date updateTime;
private BigDecimal price;
private BigDecimal priceAmount;
private String status;
private BigDecimal packAmount;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Integer getShopId() {
return shopId;
}
public void setShopId(Integer shopId) {
this.shopId = shopId;
}
public Integer getProductId() {
return productId;
}
public void setProductId(Integer productId) {
this.productId = productId;
}
public Integer getProductSkuId() {
return productSkuId;
}
public void setProductSkuId(Integer productSkuId) {
this.productSkuId = productSkuId;
}
public Integer getNum() {
return num;
}
public void setNum(Integer num) {
this.num = num;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName == null ? null : productName.trim();
}
public String getProductSkuName() {
return productSkuName;
}
public void setProductSkuName(String productSkuName) {
this.productSkuName = productSkuName == null ? null : productSkuName.trim();
}
public String getProductImg() {
return productImg;
}
public void setProductImg(String productImg) {
this.productImg = productImg == null ? null : productImg.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public BigDecimal getPriceAmount() {
return priceAmount;
}
public void setPriceAmount(BigDecimal priceAmount) {
this.priceAmount = priceAmount;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public BigDecimal getPackAmount() {
return packAmount;
}
public void setPackAmount(BigDecimal packAmount) {
this.packAmount = packAmount;
}
}

View File

@ -0,0 +1,137 @@
package com.chaozhanggui.system.cashierservice.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
@Data
public class OrderChildInfo implements Serializable {
private Integer id;
private String orderNo;
private BigDecimal settlementAmount;
private BigDecimal packFee;
private BigDecimal originAmount;
private BigDecimal productAmount;
private BigDecimal amount;
private BigDecimal refundAmount;
private String payType;
private BigDecimal payAmount;
private BigDecimal orderAmount;
private BigDecimal freightAmount;
private BigDecimal discountRatio;
private BigDecimal discountAmount;
private String tableId;
private BigDecimal smallChange;
private String sendType;
private String orderType;
private String productType;
private String status;
private String billingId;
private String merchantId;
private String shopId;
private Byte isVip;
private String memberId;
private String userId;
private Integer productScore;
private Integer deductScore;
private String userCouponId;
private BigDecimal userCouponAmount;
private Byte refundAble;
private Long paidTime;
private Byte isEffect;
private Byte isGroup;
private Long updatedAt;
private Long systemTime;
private Long createdAt;
private Byte isAccepted;
private String payOrderNo;
private String tradeDay;
private Integer source;
private String remark;
private String masterId;
private String payRemark;
private String tableName;
private String isBuyCoupon;
private String isUseCoupon;
private String parentorderno;
private static final long serialVersionUID = 1L;
public OrderChildInfo(){
super();
}
public OrderChildInfo( String orderNo, BigDecimal settlementAmount, BigDecimal packFee,BigDecimal originAmount,
BigDecimal productAmount,BigDecimal orderAmount, BigDecimal freightAmount,String tableId, String sendType,
String orderType,String merchantId,String shopId,String userId,Byte refundAble,String tradeDay,String masterId ) {
this.orderNo = orderNo;
this.masterId = masterId;
this.tradeDay = tradeDay;
this.settlementAmount = settlementAmount;
this.packFee = packFee;
this.originAmount = originAmount;
this.productAmount = productAmount;
this.orderAmount = orderAmount;
this.freightAmount = freightAmount;
this.tableId = tableId;
this.sendType = sendType;
this.orderType = orderType;
this.status = "unpaid";
this.merchantId = merchantId;
this.shopId = shopId;
this.isVip = 0;
this.userId = userId;
this.refundAble = refundAble;
this.isEffect = 1;
this.systemTime = System.currentTimeMillis();
this.createdAt = System.currentTimeMillis();
this.isAccepted = 1;
}
}

View File

@ -0,0 +1,212 @@
<?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.chaozhanggui.system.cashierservice.dao.OrderChildDetailMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.OrderChildDetail">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="order_id" jdbcType="INTEGER" property="orderId" />
<result column="shop_id" jdbcType="INTEGER" property="shopId" />
<result column="product_id" jdbcType="INTEGER" property="productId" />
<result column="product_sku_id" jdbcType="INTEGER" property="productSkuId" />
<result column="num" jdbcType="INTEGER" property="num" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="product_sku_name" jdbcType="VARCHAR" property="productSkuName" />
<result column="product_img" jdbcType="VARCHAR" property="productImg" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="price_amount" jdbcType="DECIMAL" property="priceAmount" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="pack_amount" jdbcType="DECIMAL" property="packAmount" />
</resultMap>
<sql id="Base_Column_List">
id, order_id, shop_id, product_id, product_sku_id, num, product_name, product_sku_name,
product_img, create_time, update_time, price, price_amount, status, pack_amount
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_order_child_detail
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_order_child_detail
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildDetail">
insert into tb_order_child_detail (id, order_id, shop_id,
product_id, product_sku_id, num,
product_name, product_sku_name, product_img,
create_time, update_time, price,
price_amount, status, pack_amount
)
values (#{id,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER},
#{productId,jdbcType=INTEGER}, #{productSkuId,jdbcType=INTEGER}, #{num,jdbcType=INTEGER},
#{productName,jdbcType=VARCHAR}, #{productSkuName,jdbcType=VARCHAR}, #{productImg,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL},
#{priceAmount,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, #{packAmount,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildDetail">
insert into tb_order_child_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="orderId != null">
order_id,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="productId != null">
product_id,
</if>
<if test="productSkuId != null">
product_sku_id,
</if>
<if test="num != null">
num,
</if>
<if test="productName != null">
product_name,
</if>
<if test="productSkuName != null">
product_sku_name,
</if>
<if test="productImg != null">
product_img,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="price != null">
price,
</if>
<if test="priceAmount != null">
price_amount,
</if>
<if test="status != null">
status,
</if>
<if test="packAmount != null">
pack_amount,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="orderId != null">
#{orderId,jdbcType=INTEGER},
</if>
<if test="shopId != null">
#{shopId,jdbcType=INTEGER},
</if>
<if test="productId != null">
#{productId,jdbcType=INTEGER},
</if>
<if test="productSkuId != null">
#{productSkuId,jdbcType=INTEGER},
</if>
<if test="num != null">
#{num,jdbcType=INTEGER},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="productSkuName != null">
#{productSkuName,jdbcType=VARCHAR},
</if>
<if test="productImg != null">
#{productImg,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="price != null">
#{price,jdbcType=DECIMAL},
</if>
<if test="priceAmount != null">
#{priceAmount,jdbcType=DECIMAL},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="packAmount != null">
#{packAmount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildDetail">
update tb_order_child_detail
<set>
<if test="orderId != null">
order_id = #{orderId,jdbcType=INTEGER},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=INTEGER},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=INTEGER},
</if>
<if test="productSkuId != null">
product_sku_id = #{productSkuId,jdbcType=INTEGER},
</if>
<if test="num != null">
num = #{num,jdbcType=INTEGER},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="productSkuName != null">
product_sku_name = #{productSkuName,jdbcType=VARCHAR},
</if>
<if test="productImg != null">
product_img = #{productImg,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="price != null">
price = #{price,jdbcType=DECIMAL},
</if>
<if test="priceAmount != null">
price_amount = #{priceAmount,jdbcType=DECIMAL},
</if>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
<if test="packAmount != null">
pack_amount = #{packAmount,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildDetail">
update tb_order_child_detail
set order_id = #{orderId,jdbcType=INTEGER},
shop_id = #{shopId,jdbcType=INTEGER},
product_id = #{productId,jdbcType=INTEGER},
product_sku_id = #{productSkuId,jdbcType=INTEGER},
num = #{num,jdbcType=INTEGER},
product_name = #{productName,jdbcType=VARCHAR},
product_sku_name = #{productSkuName,jdbcType=VARCHAR},
product_img = #{productImg,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
price = #{price,jdbcType=DECIMAL},
price_amount = #{priceAmount,jdbcType=DECIMAL},
status = #{status,jdbcType=VARCHAR},
pack_amount = #{packAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -0,0 +1,602 @@
<?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.chaozhanggui.system.cashierservice.dao.OrderChildInfoMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.OrderChildInfo">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
<result column="settlement_amount" jdbcType="DECIMAL" property="settlementAmount" />
<result column="pack_fee" jdbcType="DECIMAL" property="packFee" />
<result column="origin_amount" jdbcType="DECIMAL" property="originAmount" />
<result column="product_amount" jdbcType="DECIMAL" property="productAmount" />
<result column="amount" jdbcType="DECIMAL" property="amount" />
<result column="refund_amount" jdbcType="DECIMAL" property="refundAmount" />
<result column="pay_type" jdbcType="VARCHAR" property="payType" />
<result column="pay_amount" jdbcType="DECIMAL" property="payAmount" />
<result column="order_amount" jdbcType="DECIMAL" property="orderAmount" />
<result column="freight_amount" jdbcType="DECIMAL" property="freightAmount" />
<result column="discount_ratio" jdbcType="DECIMAL" property="discountRatio" />
<result column="discount_amount" jdbcType="DECIMAL" property="discountAmount" />
<result column="table_id" jdbcType="VARCHAR" property="tableId" />
<result column="small_change" jdbcType="DECIMAL" property="smallChange" />
<result column="send_type" jdbcType="VARCHAR" property="sendType" />
<result column="order_type" jdbcType="VARCHAR" property="orderType" />
<result column="product_type" jdbcType="VARCHAR" property="productType" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="billing_id" jdbcType="VARCHAR" property="billingId" />
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
<result column="is_vip" jdbcType="TINYINT" property="isVip" />
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="product_score" jdbcType="INTEGER" property="productScore" />
<result column="deduct_score" jdbcType="INTEGER" property="deductScore" />
<result column="user_coupon_id" jdbcType="VARCHAR" property="userCouponId" />
<result column="user_coupon_amount" jdbcType="DECIMAL" property="userCouponAmount" />
<result column="refund_able" jdbcType="TINYINT" property="refundAble" />
<result column="paid_time" jdbcType="BIGINT" property="paidTime" />
<result column="is_effect" jdbcType="TINYINT" property="isEffect" />
<result column="is_group" jdbcType="TINYINT" property="isGroup" />
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
<result column="system_time" jdbcType="BIGINT" property="systemTime" />
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
<result column="is_accepted" jdbcType="TINYINT" property="isAccepted" />
<result column="pay_order_no" jdbcType="VARCHAR" property="payOrderNo" />
<result column="trade_day" jdbcType="VARCHAR" property="tradeDay" />
<result column="source" jdbcType="INTEGER" property="source" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="master_id" jdbcType="VARCHAR" property="masterId" />
<result column="pay_remark" jdbcType="VARCHAR" property="payRemark" />
<result column="table_name" jdbcType="VARCHAR" property="tableName" />
<result column="is_buy_coupon" jdbcType="VARCHAR" property="isBuyCoupon" />
<result column="is_use_coupon" jdbcType="VARCHAR" property="isUseCoupon" />
<result column="parentOrderNo" jdbcType="VARCHAR" property="parentorderno" />
</resultMap>
<sql id="Base_Column_List">
id, order_no, settlement_amount, pack_fee, origin_amount, product_amount, amount,
refund_amount, pay_type, pay_amount, order_amount, freight_amount, discount_ratio,
discount_amount, table_id, small_change, send_type, order_type, product_type, status,
billing_id, merchant_id, shop_id, is_vip, member_id, user_id, product_score, deduct_score,
user_coupon_id, user_coupon_amount, refund_able, paid_time, is_effect, is_group,
updated_at, system_time, created_at, is_accepted, pay_order_no, trade_day, source,
remark, master_id, pay_remark, table_name, is_buy_coupon, is_use_coupon, parentOrderNo
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_order_child_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_order_child_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildInfo">
insert into tb_order_child_info (id, order_no, settlement_amount,
pack_fee, origin_amount, product_amount,
amount, refund_amount, pay_type,
pay_amount, order_amount, freight_amount,
discount_ratio, discount_amount, table_id,
small_change, send_type, order_type,
product_type, status, billing_id,
merchant_id, shop_id, is_vip,
member_id, user_id, product_score,
deduct_score, user_coupon_id, user_coupon_amount,
refund_able, paid_time, is_effect,
is_group, updated_at, system_time,
created_at, is_accepted, pay_order_no,
trade_day, source, remark,
master_id, pay_remark, table_name,
is_buy_coupon, is_use_coupon, parentOrderNo
)
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{settlementAmount,jdbcType=DECIMAL},
#{packFee,jdbcType=DECIMAL}, #{originAmount,jdbcType=DECIMAL}, #{productAmount,jdbcType=DECIMAL},
#{amount,jdbcType=DECIMAL}, #{refundAmount,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR},
#{payAmount,jdbcType=DECIMAL}, #{orderAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL},
#{discountRatio,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, #{tableId,jdbcType=VARCHAR},
#{smallChange,jdbcType=DECIMAL}, #{sendType,jdbcType=VARCHAR}, #{orderType,jdbcType=VARCHAR},
#{productType,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{billingId,jdbcType=VARCHAR},
#{merchantId,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{isVip,jdbcType=TINYINT},
#{memberId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{productScore,jdbcType=INTEGER},
#{deductScore,jdbcType=INTEGER}, #{userCouponId,jdbcType=VARCHAR}, #{userCouponAmount,jdbcType=DECIMAL},
#{refundAble,jdbcType=TINYINT}, #{paidTime,jdbcType=BIGINT}, #{isEffect,jdbcType=TINYINT},
#{isGroup,jdbcType=TINYINT}, #{updatedAt,jdbcType=BIGINT}, #{systemTime,jdbcType=BIGINT},
#{createdAt,jdbcType=BIGINT}, #{isAccepted,jdbcType=TINYINT}, #{payOrderNo,jdbcType=VARCHAR},
#{tradeDay,jdbcType=VARCHAR}, #{source,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR},
#{masterId,jdbcType=VARCHAR}, #{payRemark,jdbcType=VARCHAR}, #{tableName,jdbcType=VARCHAR},
#{isBuyCoupon,jdbcType=VARCHAR}, #{isUseCoupon,jdbcType=VARCHAR}, #{parentorderno,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildInfo">
insert into tb_order_child_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="orderNo != null">
order_no,
</if>
<if test="settlementAmount != null">
settlement_amount,
</if>
<if test="packFee != null">
pack_fee,
</if>
<if test="originAmount != null">
origin_amount,
</if>
<if test="productAmount != null">
product_amount,
</if>
<if test="amount != null">
amount,
</if>
<if test="refundAmount != null">
refund_amount,
</if>
<if test="payType != null">
pay_type,
</if>
<if test="payAmount != null">
pay_amount,
</if>
<if test="orderAmount != null">
order_amount,
</if>
<if test="freightAmount != null">
freight_amount,
</if>
<if test="discountRatio != null">
discount_ratio,
</if>
<if test="discountAmount != null">
discount_amount,
</if>
<if test="tableId != null">
table_id,
</if>
<if test="smallChange != null">
small_change,
</if>
<if test="sendType != null">
send_type,
</if>
<if test="orderType != null">
order_type,
</if>
<if test="productType != null">
product_type,
</if>
<if test="status != null">
status,
</if>
<if test="billingId != null">
billing_id,
</if>
<if test="merchantId != null">
merchant_id,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="isVip != null">
is_vip,
</if>
<if test="memberId != null">
member_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="productScore != null">
product_score,
</if>
<if test="deductScore != null">
deduct_score,
</if>
<if test="userCouponId != null">
user_coupon_id,
</if>
<if test="userCouponAmount != null">
user_coupon_amount,
</if>
<if test="refundAble != null">
refund_able,
</if>
<if test="paidTime != null">
paid_time,
</if>
<if test="isEffect != null">
is_effect,
</if>
<if test="isGroup != null">
is_group,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="systemTime != null">
system_time,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="isAccepted != null">
is_accepted,
</if>
<if test="payOrderNo != null">
pay_order_no,
</if>
<if test="tradeDay != null">
trade_day,
</if>
<if test="source != null">
source,
</if>
<if test="remark != null">
remark,
</if>
<if test="masterId != null">
master_id,
</if>
<if test="payRemark != null">
pay_remark,
</if>
<if test="tableName != null">
table_name,
</if>
<if test="isBuyCoupon != null">
is_buy_coupon,
</if>
<if test="isUseCoupon != null">
is_use_coupon,
</if>
<if test="parentorderno != null">
parentOrderNo,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="orderNo != null">
#{orderNo,jdbcType=VARCHAR},
</if>
<if test="settlementAmount != null">
#{settlementAmount,jdbcType=DECIMAL},
</if>
<if test="packFee != null">
#{packFee,jdbcType=DECIMAL},
</if>
<if test="originAmount != null">
#{originAmount,jdbcType=DECIMAL},
</if>
<if test="productAmount != null">
#{productAmount,jdbcType=DECIMAL},
</if>
<if test="amount != null">
#{amount,jdbcType=DECIMAL},
</if>
<if test="refundAmount != null">
#{refundAmount,jdbcType=DECIMAL},
</if>
<if test="payType != null">
#{payType,jdbcType=VARCHAR},
</if>
<if test="payAmount != null">
#{payAmount,jdbcType=DECIMAL},
</if>
<if test="orderAmount != null">
#{orderAmount,jdbcType=DECIMAL},
</if>
<if test="freightAmount != null">
#{freightAmount,jdbcType=DECIMAL},
</if>
<if test="discountRatio != null">
#{discountRatio,jdbcType=DECIMAL},
</if>
<if test="discountAmount != null">
#{discountAmount,jdbcType=DECIMAL},
</if>
<if test="tableId != null">
#{tableId,jdbcType=VARCHAR},
</if>
<if test="smallChange != null">
#{smallChange,jdbcType=DECIMAL},
</if>
<if test="sendType != null">
#{sendType,jdbcType=VARCHAR},
</if>
<if test="orderType != null">
#{orderType,jdbcType=VARCHAR},
</if>
<if test="productType != null">
#{productType,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="billingId != null">
#{billingId,jdbcType=VARCHAR},
</if>
<if test="merchantId != null">
#{merchantId,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
</if>
<if test="isVip != null">
#{isVip,jdbcType=TINYINT},
</if>
<if test="memberId != null">
#{memberId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="productScore != null">
#{productScore,jdbcType=INTEGER},
</if>
<if test="deductScore != null">
#{deductScore,jdbcType=INTEGER},
</if>
<if test="userCouponId != null">
#{userCouponId,jdbcType=VARCHAR},
</if>
<if test="userCouponAmount != null">
#{userCouponAmount,jdbcType=DECIMAL},
</if>
<if test="refundAble != null">
#{refundAble,jdbcType=TINYINT},
</if>
<if test="paidTime != null">
#{paidTime,jdbcType=BIGINT},
</if>
<if test="isEffect != null">
#{isEffect,jdbcType=TINYINT},
</if>
<if test="isGroup != null">
#{isGroup,jdbcType=TINYINT},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=BIGINT},
</if>
<if test="systemTime != null">
#{systemTime,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=BIGINT},
</if>
<if test="isAccepted != null">
#{isAccepted,jdbcType=TINYINT},
</if>
<if test="payOrderNo != null">
#{payOrderNo,jdbcType=VARCHAR},
</if>
<if test="tradeDay != null">
#{tradeDay,jdbcType=VARCHAR},
</if>
<if test="source != null">
#{source,jdbcType=INTEGER},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="masterId != null">
#{masterId,jdbcType=VARCHAR},
</if>
<if test="payRemark != null">
#{payRemark,jdbcType=VARCHAR},
</if>
<if test="tableName != null">
#{tableName,jdbcType=VARCHAR},
</if>
<if test="isBuyCoupon != null">
#{isBuyCoupon,jdbcType=VARCHAR},
</if>
<if test="isUseCoupon != null">
#{isUseCoupon,jdbcType=VARCHAR},
</if>
<if test="parentorderno != null">
#{parentorderno,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildInfo">
update tb_order_child_info
<set>
<if test="orderNo != null">
order_no = #{orderNo,jdbcType=VARCHAR},
</if>
<if test="settlementAmount != null">
settlement_amount = #{settlementAmount,jdbcType=DECIMAL},
</if>
<if test="packFee != null">
pack_fee = #{packFee,jdbcType=DECIMAL},
</if>
<if test="originAmount != null">
origin_amount = #{originAmount,jdbcType=DECIMAL},
</if>
<if test="productAmount != null">
product_amount = #{productAmount,jdbcType=DECIMAL},
</if>
<if test="amount != null">
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="refundAmount != null">
refund_amount = #{refundAmount,jdbcType=DECIMAL},
</if>
<if test="payType != null">
pay_type = #{payType,jdbcType=VARCHAR},
</if>
<if test="payAmount != null">
pay_amount = #{payAmount,jdbcType=DECIMAL},
</if>
<if test="orderAmount != null">
order_amount = #{orderAmount,jdbcType=DECIMAL},
</if>
<if test="freightAmount != null">
freight_amount = #{freightAmount,jdbcType=DECIMAL},
</if>
<if test="discountRatio != null">
discount_ratio = #{discountRatio,jdbcType=DECIMAL},
</if>
<if test="discountAmount != null">
discount_amount = #{discountAmount,jdbcType=DECIMAL},
</if>
<if test="tableId != null">
table_id = #{tableId,jdbcType=VARCHAR},
</if>
<if test="smallChange != null">
small_change = #{smallChange,jdbcType=DECIMAL},
</if>
<if test="sendType != null">
send_type = #{sendType,jdbcType=VARCHAR},
</if>
<if test="orderType != null">
order_type = #{orderType,jdbcType=VARCHAR},
</if>
<if test="productType != null">
product_type = #{productType,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
<if test="billingId != null">
billing_id = #{billingId,jdbcType=VARCHAR},
</if>
<if test="merchantId != null">
merchant_id = #{merchantId,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="isVip != null">
is_vip = #{isVip,jdbcType=TINYINT},
</if>
<if test="memberId != null">
member_id = #{memberId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="productScore != null">
product_score = #{productScore,jdbcType=INTEGER},
</if>
<if test="deductScore != null">
deduct_score = #{deductScore,jdbcType=INTEGER},
</if>
<if test="userCouponId != null">
user_coupon_id = #{userCouponId,jdbcType=VARCHAR},
</if>
<if test="userCouponAmount != null">
user_coupon_amount = #{userCouponAmount,jdbcType=DECIMAL},
</if>
<if test="refundAble != null">
refund_able = #{refundAble,jdbcType=TINYINT},
</if>
<if test="paidTime != null">
paid_time = #{paidTime,jdbcType=BIGINT},
</if>
<if test="isEffect != null">
is_effect = #{isEffect,jdbcType=TINYINT},
</if>
<if test="isGroup != null">
is_group = #{isGroup,jdbcType=TINYINT},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=BIGINT},
</if>
<if test="systemTime != null">
system_time = #{systemTime,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=BIGINT},
</if>
<if test="isAccepted != null">
is_accepted = #{isAccepted,jdbcType=TINYINT},
</if>
<if test="payOrderNo != null">
pay_order_no = #{payOrderNo,jdbcType=VARCHAR},
</if>
<if test="tradeDay != null">
trade_day = #{tradeDay,jdbcType=VARCHAR},
</if>
<if test="source != null">
source = #{source,jdbcType=INTEGER},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="masterId != null">
master_id = #{masterId,jdbcType=VARCHAR},
</if>
<if test="payRemark != null">
pay_remark = #{payRemark,jdbcType=VARCHAR},
</if>
<if test="tableName != null">
table_name = #{tableName,jdbcType=VARCHAR},
</if>
<if test="isBuyCoupon != null">
is_buy_coupon = #{isBuyCoupon,jdbcType=VARCHAR},
</if>
<if test="isUseCoupon != null">
is_use_coupon = #{isUseCoupon,jdbcType=VARCHAR},
</if>
<if test="parentorderno != null">
parentOrderNo = #{parentorderno,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.OrderChildInfo">
update tb_order_child_info
set order_no = #{orderNo,jdbcType=VARCHAR},
settlement_amount = #{settlementAmount,jdbcType=DECIMAL},
pack_fee = #{packFee,jdbcType=DECIMAL},
origin_amount = #{originAmount,jdbcType=DECIMAL},
product_amount = #{productAmount,jdbcType=DECIMAL},
amount = #{amount,jdbcType=DECIMAL},
refund_amount = #{refundAmount,jdbcType=DECIMAL},
pay_type = #{payType,jdbcType=VARCHAR},
pay_amount = #{payAmount,jdbcType=DECIMAL},
order_amount = #{orderAmount,jdbcType=DECIMAL},
freight_amount = #{freightAmount,jdbcType=DECIMAL},
discount_ratio = #{discountRatio,jdbcType=DECIMAL},
discount_amount = #{discountAmount,jdbcType=DECIMAL},
table_id = #{tableId,jdbcType=VARCHAR},
small_change = #{smallChange,jdbcType=DECIMAL},
send_type = #{sendType,jdbcType=VARCHAR},
order_type = #{orderType,jdbcType=VARCHAR},
product_type = #{productType,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
billing_id = #{billingId,jdbcType=VARCHAR},
merchant_id = #{merchantId,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
is_vip = #{isVip,jdbcType=TINYINT},
member_id = #{memberId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
product_score = #{productScore,jdbcType=INTEGER},
deduct_score = #{deductScore,jdbcType=INTEGER},
user_coupon_id = #{userCouponId,jdbcType=VARCHAR},
user_coupon_amount = #{userCouponAmount,jdbcType=DECIMAL},
refund_able = #{refundAble,jdbcType=TINYINT},
paid_time = #{paidTime,jdbcType=BIGINT},
is_effect = #{isEffect,jdbcType=TINYINT},
is_group = #{isGroup,jdbcType=TINYINT},
updated_at = #{updatedAt,jdbcType=BIGINT},
system_time = #{systemTime,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=BIGINT},
is_accepted = #{isAccepted,jdbcType=TINYINT},
pay_order_no = #{payOrderNo,jdbcType=VARCHAR},
trade_day = #{tradeDay,jdbcType=VARCHAR},
source = #{source,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
master_id = #{masterId,jdbcType=VARCHAR},
pay_remark = #{payRemark,jdbcType=VARCHAR},
table_name = #{tableName,jdbcType=VARCHAR},
is_buy_coupon = #{isBuyCoupon,jdbcType=VARCHAR},
is_use_coupon = #{isUseCoupon,jdbcType=VARCHAR},
parentOrderNo = #{parentorderno,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>