1
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
package com.ruoyi.web.controller.jarvis;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.jarvis.domain.OrderRows;
|
||||
import com.ruoyi.jarvis.service.IOrderRowsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* 京粉订单Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/jarvis/orderrows")
|
||||
public class OrderRowsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IOrderRowsService orderRowsService;
|
||||
|
||||
/**
|
||||
* 查询京粉订单列表
|
||||
*/
|
||||
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(OrderRows orderRows)
|
||||
{
|
||||
startPage();
|
||||
List<OrderRows> list = orderRowsService.selectOrderRowsList(orderRows);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出京粉订单列表
|
||||
*/
|
||||
|
||||
@Log(title = "京粉订单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OrderRows orderRows)
|
||||
{
|
||||
List<OrderRows> list = orderRowsService.selectOrderRowsList(orderRows);
|
||||
ExcelUtil<OrderRows> util = new ExcelUtil<OrderRows>(OrderRows.class);
|
||||
util.exportExcel(response, list, "京粉订单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取京粉订单详细信息
|
||||
*/
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(orderRowsService.selectOrderRowsById(id));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,690 @@
|
||||
package com.ruoyi.jarvis.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 京粉订单对象 order_rows
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class OrderRows extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private String id;
|
||||
|
||||
/** 订单ID */
|
||||
private Long orderId;
|
||||
|
||||
/** 父订单ID */
|
||||
private Long parentId;
|
||||
|
||||
/** 下单时间 */
|
||||
private Date orderTime;
|
||||
|
||||
/** 完成时间 */
|
||||
private Date finishTime;
|
||||
|
||||
/** 修改时间 */
|
||||
private Date modifyTime;
|
||||
|
||||
/** 订单类型 */
|
||||
private Integer orderEmt;
|
||||
|
||||
/** 是否PLUS会员 */
|
||||
private Integer plus;
|
||||
|
||||
/** 联盟ID */
|
||||
private Long unionId;
|
||||
|
||||
/** SKU ID */
|
||||
private Long skuId;
|
||||
|
||||
/** SKU名称 */
|
||||
private String skuName;
|
||||
|
||||
/** SKU数量 */
|
||||
private Integer skuNum;
|
||||
|
||||
/** SKU退货数量 */
|
||||
private Integer skuReturnNum;
|
||||
|
||||
/** SKU冻结数量 */
|
||||
private Integer skuFrozenNum;
|
||||
|
||||
/** 价格 */
|
||||
private Double price;
|
||||
|
||||
/** 佣金比例 */
|
||||
private Double commissionRate;
|
||||
|
||||
/** 子边比例 */
|
||||
private Double subSideRate;
|
||||
|
||||
/** 补贴比例 */
|
||||
private Double subsidyRate;
|
||||
|
||||
/** 最终比例 */
|
||||
private Double finalRate;
|
||||
|
||||
/** 预估成本价 */
|
||||
private Double estimateCosPrice;
|
||||
|
||||
/** 预估佣金 */
|
||||
private Double estimateFee;
|
||||
|
||||
/** 实际成本价 */
|
||||
private Double actualCosPrice;
|
||||
|
||||
/** 实际佣金 */
|
||||
private Double actualFee;
|
||||
|
||||
/** 有效性 */
|
||||
private Integer validCode;
|
||||
|
||||
/** 跟踪类型 */
|
||||
private Integer traceType;
|
||||
|
||||
/** 位置ID */
|
||||
private Long positionId;
|
||||
|
||||
/** 站点ID */
|
||||
private Long siteId;
|
||||
|
||||
/** 联盟别名 */
|
||||
private String unionAlias;
|
||||
|
||||
/** PID */
|
||||
private String pid;
|
||||
|
||||
/** 一级分类ID */
|
||||
private Long cid1;
|
||||
|
||||
/** 二级分类ID */
|
||||
private Long cid2;
|
||||
|
||||
/** 三级分类ID */
|
||||
private Long cid3;
|
||||
|
||||
/** 子联盟ID */
|
||||
private String subUnionId;
|
||||
|
||||
/** 联盟标签 */
|
||||
private String unionTag;
|
||||
|
||||
/** POP ID */
|
||||
private Long popId;
|
||||
|
||||
/** 扩展字段1 */
|
||||
private String ext1;
|
||||
|
||||
/** 支付月份 */
|
||||
private String payMonth;
|
||||
|
||||
/** 活动ID */
|
||||
private Long cpActId;
|
||||
|
||||
/** 联盟角色 */
|
||||
private Integer unionRole;
|
||||
|
||||
/** 礼品券OCS金额 */
|
||||
private Double giftCouponOcsAmount;
|
||||
|
||||
/** 礼品券KEY */
|
||||
private String giftCouponKey;
|
||||
|
||||
/** 余额扩展 */
|
||||
private String balanceExt;
|
||||
|
||||
/** 签名 */
|
||||
private String sign;
|
||||
|
||||
/** 促销价格金额 */
|
||||
private Double proPriceAmount;
|
||||
|
||||
/** RID */
|
||||
private Long rid;
|
||||
|
||||
/** 商品信息ID */
|
||||
private Long goodsInfoId;
|
||||
|
||||
/** 快递状态 */
|
||||
private Integer expressStatus;
|
||||
|
||||
/** 渠道ID */
|
||||
private Long channelId;
|
||||
|
||||
/** SKU标签 */
|
||||
private String skuTag;
|
||||
|
||||
/** 商品ID */
|
||||
private String itemId;
|
||||
|
||||
/** 调用方商品ID */
|
||||
private String callerItemId;
|
||||
|
||||
/** 订单标签 */
|
||||
private String orderTag;
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(Long orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Date getOrderTime()
|
||||
{
|
||||
return orderTime;
|
||||
}
|
||||
|
||||
public void setOrderTime(Date orderTime)
|
||||
{
|
||||
this.orderTime = orderTime;
|
||||
}
|
||||
|
||||
public Date getFinishTime()
|
||||
{
|
||||
return finishTime;
|
||||
}
|
||||
|
||||
public void setFinishTime(Date finishTime)
|
||||
{
|
||||
this.finishTime = finishTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime()
|
||||
{
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime)
|
||||
{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Integer getOrderEmt()
|
||||
{
|
||||
return orderEmt;
|
||||
}
|
||||
|
||||
public void setOrderEmt(Integer orderEmt)
|
||||
{
|
||||
this.orderEmt = orderEmt;
|
||||
}
|
||||
|
||||
public Integer getPlus()
|
||||
{
|
||||
return plus;
|
||||
}
|
||||
|
||||
public void setPlus(Integer plus)
|
||||
{
|
||||
this.plus = plus;
|
||||
}
|
||||
|
||||
public Long getUnionId()
|
||||
{
|
||||
return unionId;
|
||||
}
|
||||
|
||||
public void setUnionId(Long unionId)
|
||||
{
|
||||
this.unionId = unionId;
|
||||
}
|
||||
|
||||
public Long getSkuId()
|
||||
{
|
||||
return skuId;
|
||||
}
|
||||
|
||||
public void setSkuId(Long skuId)
|
||||
{
|
||||
this.skuId = skuId;
|
||||
}
|
||||
|
||||
public String getSkuName()
|
||||
{
|
||||
return skuName;
|
||||
}
|
||||
|
||||
public void setSkuName(String skuName)
|
||||
{
|
||||
this.skuName = skuName;
|
||||
}
|
||||
|
||||
public Integer getSkuNum()
|
||||
{
|
||||
return skuNum;
|
||||
}
|
||||
|
||||
public void setSkuNum(Integer skuNum)
|
||||
{
|
||||
this.skuNum = skuNum;
|
||||
}
|
||||
|
||||
public Integer getSkuReturnNum()
|
||||
{
|
||||
return skuReturnNum;
|
||||
}
|
||||
|
||||
public void setSkuReturnNum(Integer skuReturnNum)
|
||||
{
|
||||
this.skuReturnNum = skuReturnNum;
|
||||
}
|
||||
|
||||
public Integer getSkuFrozenNum()
|
||||
{
|
||||
return skuFrozenNum;
|
||||
}
|
||||
|
||||
public void setSkuFrozenNum(Integer skuFrozenNum)
|
||||
{
|
||||
this.skuFrozenNum = skuFrozenNum;
|
||||
}
|
||||
|
||||
public Double getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(Double price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public Double getCommissionRate()
|
||||
{
|
||||
return commissionRate;
|
||||
}
|
||||
|
||||
public void setCommissionRate(Double commissionRate)
|
||||
{
|
||||
this.commissionRate = commissionRate;
|
||||
}
|
||||
|
||||
public Double getSubSideRate()
|
||||
{
|
||||
return subSideRate;
|
||||
}
|
||||
|
||||
public void setSubSideRate(Double subSideRate)
|
||||
{
|
||||
this.subSideRate = subSideRate;
|
||||
}
|
||||
|
||||
public Double getSubsidyRate()
|
||||
{
|
||||
return subsidyRate;
|
||||
}
|
||||
|
||||
public void setSubsidyRate(Double subsidyRate)
|
||||
{
|
||||
this.subsidyRate = subsidyRate;
|
||||
}
|
||||
|
||||
public Double getFinalRate()
|
||||
{
|
||||
return finalRate;
|
||||
}
|
||||
|
||||
public void setFinalRate(Double finalRate)
|
||||
{
|
||||
this.finalRate = finalRate;
|
||||
}
|
||||
|
||||
public Double getEstimateCosPrice()
|
||||
{
|
||||
return estimateCosPrice;
|
||||
}
|
||||
|
||||
public void setEstimateCosPrice(Double estimateCosPrice)
|
||||
{
|
||||
this.estimateCosPrice = estimateCosPrice;
|
||||
}
|
||||
|
||||
public Double getEstimateFee()
|
||||
{
|
||||
return estimateFee;
|
||||
}
|
||||
|
||||
public void setEstimateFee(Double estimateFee)
|
||||
{
|
||||
this.estimateFee = estimateFee;
|
||||
}
|
||||
|
||||
public Double getActualCosPrice()
|
||||
{
|
||||
return actualCosPrice;
|
||||
}
|
||||
|
||||
public void setActualCosPrice(Double actualCosPrice)
|
||||
{
|
||||
this.actualCosPrice = actualCosPrice;
|
||||
}
|
||||
|
||||
public Double getActualFee()
|
||||
{
|
||||
return actualFee;
|
||||
}
|
||||
|
||||
public void setActualFee(Double actualFee)
|
||||
{
|
||||
this.actualFee = actualFee;
|
||||
}
|
||||
|
||||
public Integer getValidCode()
|
||||
{
|
||||
return validCode;
|
||||
}
|
||||
|
||||
public void setValidCode(Integer validCode)
|
||||
{
|
||||
this.validCode = validCode;
|
||||
}
|
||||
|
||||
public Integer getTraceType()
|
||||
{
|
||||
return traceType;
|
||||
}
|
||||
|
||||
public void setTraceType(Integer traceType)
|
||||
{
|
||||
this.traceType = traceType;
|
||||
}
|
||||
|
||||
public Long getPositionId()
|
||||
{
|
||||
return positionId;
|
||||
}
|
||||
|
||||
public void setPositionId(Long positionId)
|
||||
{
|
||||
this.positionId = positionId;
|
||||
}
|
||||
|
||||
public Long getSiteId()
|
||||
{
|
||||
return siteId;
|
||||
}
|
||||
|
||||
public void setSiteId(Long siteId)
|
||||
{
|
||||
this.siteId = siteId;
|
||||
}
|
||||
|
||||
public String getUnionAlias()
|
||||
{
|
||||
return unionAlias;
|
||||
}
|
||||
|
||||
public void setUnionAlias(String unionAlias)
|
||||
{
|
||||
this.unionAlias = unionAlias;
|
||||
}
|
||||
|
||||
public String getPid()
|
||||
{
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(String pid)
|
||||
{
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public Long getCid1()
|
||||
{
|
||||
return cid1;
|
||||
}
|
||||
|
||||
public void setCid1(Long cid1)
|
||||
{
|
||||
this.cid1 = cid1;
|
||||
}
|
||||
|
||||
public Long getCid2()
|
||||
{
|
||||
return cid2;
|
||||
}
|
||||
|
||||
public void setCid2(Long cid2)
|
||||
{
|
||||
this.cid2 = cid2;
|
||||
}
|
||||
|
||||
public Long getCid3()
|
||||
{
|
||||
return cid3;
|
||||
}
|
||||
|
||||
public void setCid3(Long cid3)
|
||||
{
|
||||
this.cid3 = cid3;
|
||||
}
|
||||
|
||||
public String getSubUnionId()
|
||||
{
|
||||
return subUnionId;
|
||||
}
|
||||
|
||||
public void setSubUnionId(String subUnionId)
|
||||
{
|
||||
this.subUnionId = subUnionId;
|
||||
}
|
||||
|
||||
public String getUnionTag()
|
||||
{
|
||||
return unionTag;
|
||||
}
|
||||
|
||||
public void setUnionTag(String unionTag)
|
||||
{
|
||||
this.unionTag = unionTag;
|
||||
}
|
||||
|
||||
public Long getPopId()
|
||||
{
|
||||
return popId;
|
||||
}
|
||||
|
||||
public void setPopId(Long popId)
|
||||
{
|
||||
this.popId = popId;
|
||||
}
|
||||
|
||||
public String getExt1()
|
||||
{
|
||||
return ext1;
|
||||
}
|
||||
|
||||
public void setExt1(String ext1)
|
||||
{
|
||||
this.ext1 = ext1;
|
||||
}
|
||||
|
||||
public String getPayMonth()
|
||||
{
|
||||
return payMonth;
|
||||
}
|
||||
|
||||
public void setPayMonth(String payMonth)
|
||||
{
|
||||
this.payMonth = payMonth;
|
||||
}
|
||||
|
||||
public Long getCpActId()
|
||||
{
|
||||
return cpActId;
|
||||
}
|
||||
|
||||
public void setCpActId(Long cpActId)
|
||||
{
|
||||
this.cpActId = cpActId;
|
||||
}
|
||||
|
||||
public Integer getUnionRole()
|
||||
{
|
||||
return unionRole;
|
||||
}
|
||||
|
||||
public void setUnionRole(Integer unionRole)
|
||||
{
|
||||
this.unionRole = unionRole;
|
||||
}
|
||||
|
||||
public Double getGiftCouponOcsAmount()
|
||||
{
|
||||
return giftCouponOcsAmount;
|
||||
}
|
||||
|
||||
public void setGiftCouponOcsAmount(Double giftCouponOcsAmount)
|
||||
{
|
||||
this.giftCouponOcsAmount = giftCouponOcsAmount;
|
||||
}
|
||||
|
||||
public String getGiftCouponKey()
|
||||
{
|
||||
return giftCouponKey;
|
||||
}
|
||||
|
||||
public void setGiftCouponKey(String giftCouponKey)
|
||||
{
|
||||
this.giftCouponKey = giftCouponKey;
|
||||
}
|
||||
|
||||
public String getBalanceExt()
|
||||
{
|
||||
return balanceExt;
|
||||
}
|
||||
|
||||
public void setBalanceExt(String balanceExt)
|
||||
{
|
||||
this.balanceExt = balanceExt;
|
||||
}
|
||||
|
||||
public String getSign()
|
||||
{
|
||||
return sign;
|
||||
}
|
||||
|
||||
public void setSign(String sign)
|
||||
{
|
||||
this.sign = sign;
|
||||
}
|
||||
|
||||
public Double getProPriceAmount()
|
||||
{
|
||||
return proPriceAmount;
|
||||
}
|
||||
|
||||
public void setProPriceAmount(Double proPriceAmount)
|
||||
{
|
||||
this.proPriceAmount = proPriceAmount;
|
||||
}
|
||||
|
||||
public Long getRid()
|
||||
{
|
||||
return rid;
|
||||
}
|
||||
|
||||
public void setRid(Long rid)
|
||||
{
|
||||
this.rid = rid;
|
||||
}
|
||||
|
||||
public Long getGoodsInfoId()
|
||||
{
|
||||
return goodsInfoId;
|
||||
}
|
||||
|
||||
public void setGoodsInfoId(Long goodsInfoId)
|
||||
{
|
||||
this.goodsInfoId = goodsInfoId;
|
||||
}
|
||||
|
||||
public Integer getExpressStatus()
|
||||
{
|
||||
return expressStatus;
|
||||
}
|
||||
|
||||
public void setExpressStatus(Integer expressStatus)
|
||||
{
|
||||
this.expressStatus = expressStatus;
|
||||
}
|
||||
|
||||
public Long getChannelId()
|
||||
{
|
||||
return channelId;
|
||||
}
|
||||
|
||||
public void setChannelId(Long channelId)
|
||||
{
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
public String getSkuTag()
|
||||
{
|
||||
return skuTag;
|
||||
}
|
||||
|
||||
public void setSkuTag(String skuTag)
|
||||
{
|
||||
this.skuTag = skuTag;
|
||||
}
|
||||
|
||||
public String getItemId()
|
||||
{
|
||||
return itemId;
|
||||
}
|
||||
|
||||
public void setItemId(String itemId)
|
||||
{
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public String getCallerItemId()
|
||||
{
|
||||
return callerItemId;
|
||||
}
|
||||
|
||||
public void setCallerItemId(String callerItemId)
|
||||
{
|
||||
this.callerItemId = callerItemId;
|
||||
}
|
||||
|
||||
public String getOrderTag()
|
||||
{
|
||||
return orderTag;
|
||||
}
|
||||
|
||||
public void setOrderTag(String orderTag)
|
||||
{
|
||||
this.orderTag = orderTag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.jarvis.mapper;
|
||||
|
||||
import com.ruoyi.jarvis.domain.OrderRows;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 京粉订单Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface OrderRowsMapper
|
||||
{
|
||||
/**
|
||||
* 查询京粉订单
|
||||
*
|
||||
* @param id 京粉订单主键
|
||||
* @return 京粉订单
|
||||
*/
|
||||
public OrderRows selectOrderRowsById(String id);
|
||||
|
||||
/**
|
||||
* 查询京粉订单列表
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 京粉订单集合
|
||||
*/
|
||||
public List<OrderRows> selectOrderRowsList(OrderRows orderRows);
|
||||
|
||||
/**
|
||||
* 新增京粉订单
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOrderRows(OrderRows orderRows);
|
||||
|
||||
/**
|
||||
* 修改京粉订单
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrderRows(OrderRows orderRows);
|
||||
|
||||
/**
|
||||
* 删除京粉订单
|
||||
*
|
||||
* @param id 京粉订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderRowsById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除京粉订单
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderRowsByIds(String[] ids);
|
||||
}
|
||||
@@ -0,0 +1,275 @@
|
||||
<?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.ruoyi.system.mapper.OrderRowsMapper">
|
||||
|
||||
<resultMap type="OrderRows" id="OrderRowsResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="parentId" column="parent_id"/>
|
||||
<result property="orderTime" column="order_time"/>
|
||||
<result property="finishTime" column="finish_time"/>
|
||||
<result property="modifyTime" column="modify_time"/>
|
||||
<result property="orderEmt" column="order_emt"/>
|
||||
<result property="plus" column="plus"/>
|
||||
<result property="unionId" column="union_id"/>
|
||||
<result property="skuId" column="sku_id"/>
|
||||
<result property="skuName" column="sku_name"/>
|
||||
<result property="skuNum" column="sku_num"/>
|
||||
<result property="skuReturnNum" column="sku_return_num"/>
|
||||
<result property="skuFrozenNum" column="sku_frozen_num"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="commissionRate" column="commission_rate"/>
|
||||
<result property="subSideRate" column="sub_side_rate"/>
|
||||
<result property="subsidyRate" column="subsidy_rate"/>
|
||||
<result property="finalRate" column="final_rate"/>
|
||||
<result property="estimateCosPrice" column="estimate_cos_price"/>
|
||||
<result property="estimateFee" column="estimate_fee"/>
|
||||
<result property="actualCosPrice" column="actual_cos_price"/>
|
||||
<result property="actualFee" column="actual_fee"/>
|
||||
<result property="validCode" column="valid_code"/>
|
||||
<result property="traceType" column="trace_type"/>
|
||||
<result property="positionId" column="position_id"/>
|
||||
<result property="siteId" column="site_id"/>
|
||||
<result property="unionAlias" column="union_alias"/>
|
||||
<result property="pid" column="pid"/>
|
||||
<result property="cid1" column="cid1"/>
|
||||
<result property="cid2" column="cid2"/>
|
||||
<result property="cid3" column="cid3"/>
|
||||
<result property="subUnionId" column="sub_union_id"/>
|
||||
<result property="unionTag" column="union_tag"/>
|
||||
<result property="popId" column="pop_id"/>
|
||||
<result property="ext1" column="ext1"/>
|
||||
<result property="payMonth" column="pay_month"/>
|
||||
<result property="cpActId" column="cp_act_id"/>
|
||||
<result property="unionRole" column="union_role"/>
|
||||
<result property="giftCouponOcsAmount" column="gift_coupon_ocs_amount"/>
|
||||
<result property="giftCouponKey" column="gift_coupon_key"/>
|
||||
<result property="balanceExt" column="balance_ext"/>
|
||||
<result property="sign" column="sign"/>
|
||||
<result property="proPriceAmount" column="pro_price_amount"/>
|
||||
<result property="rid" column="rid"/>
|
||||
<result property="goodsInfoId" column="goods_info_id"/>
|
||||
<result property="expressStatus" column="express_status"/>
|
||||
<result property="channelId" column="channel_id"/>
|
||||
<result property="skuTag" column="sku_tag"/>
|
||||
<result property="itemId" column="item_id"/>
|
||||
<result property="callerItemId" column="caller_item_id"/>
|
||||
<result property="orderTag" column="order_tag"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOrderRowsVo">
|
||||
select id, order_id, parent_id, order_time, finish_time, modify_time, order_emt, plus, union_id, sku_id, sku_name, sku_num, sku_return_num, sku_frozen_num, price, commission_rate, sub_side_rate, subsidy_rate, final_rate, estimate_cos_price, estimate_fee, actual_cos_price, actual_fee, valid_code, trace_type, position_id, site_id, union_alias, pid, cid1, cid2, cid3, sub_union_id, union_tag, pop_id, ext1, pay_month, cp_act_id, union_role, gift_coupon_ocs_amount, gift_coupon_key, balance_ext, sign, pro_price_amount, rid, goods_info_id, express_status, channel_id, sku_tag, item_id, caller_item_id, order_tag from order_rows
|
||||
</sql>
|
||||
|
||||
<select id="selectOrderRowsList" parameterType="OrderRows" resultMap="OrderRowsResult">
|
||||
<include refid="selectOrderRowsVo"/>
|
||||
<where>
|
||||
<if test="orderId != null "> and order_id = #{orderId}</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="orderTime != null "> and order_time = #{orderTime}</if>
|
||||
<if test="finishTime != null "> and finish_time = #{finishTime}</if>
|
||||
<if test="modifyTime != null "> and modify_time = #{modifyTime}</if>
|
||||
<if test="orderEmt != null "> and order_emt = #{orderEmt}</if>
|
||||
<if test="plus != null "> and plus = #{plus}</if>
|
||||
<if test="unionId != null "> and union_id = #{unionId}</if>
|
||||
<if test="skuId != null "> and sku_id = #{skuId}</if>
|
||||
<if test="skuName != null and skuName != ''"> and sku_name like concat('%', #{skuName}, '%')</if>
|
||||
<if test="skuNum != null "> and sku_num = #{skuNum}</if>
|
||||
<if test="skuReturnNum != null "> and sku_return_num = #{skuReturnNum}</if>
|
||||
<if test="skuFrozenNum != null "> and sku_frozen_num = #{skuFrozenNum}</if>
|
||||
<if test="price != null "> and price = #{price}</if>
|
||||
<if test="commissionRate != null "> and commission_rate = #{commissionRate}</if>
|
||||
<if test="subSideRate != null "> and sub_side_rate = #{subSideRate}</if>
|
||||
<if test="subsidyRate != null "> and subsidy_rate = #{subsidyRate}</if>
|
||||
<if test="finalRate != null "> and final_rate = #{finalRate}</if>
|
||||
<if test="estimateCosPrice != null "> and estimate_cos_price = #{estimateCosPrice}</if>
|
||||
<if test="estimateFee != null "> and estimate_fee = #{estimateFee}</if>
|
||||
<if test="actualCosPrice != null "> and actual_cos_price = #{actualCosPrice}</if>
|
||||
<if test="actualFee != null "> and actual_fee = #{actualFee}</if>
|
||||
<if test="validCode != null "> and valid_code = #{validCode}</if>
|
||||
<if test="traceType != null "> and trace_type = #{traceType}</if>
|
||||
<if test="positionId != null "> and position_id = #{positionId}</if>
|
||||
<if test="siteId != null "> and site_id = #{siteId}</if>
|
||||
<if test="unionAlias != null and unionAlias != ''"> and union_alias like concat('%', #{unionAlias}, '%')</if>
|
||||
<if test="pid != null and pid != ''"> and pid = #{pid}</if>
|
||||
<if test="cid1 != null "> and cid1 = #{cid1}</if>
|
||||
<if test="cid2 != null "> and cid2 = #{cid2}</if>
|
||||
<if test="cid3 != null "> and cid3 = #{cid3}</if>
|
||||
<if test="subUnionId != null and subUnionId != ''"> and sub_union_id = #{subUnionId}</if>
|
||||
<if test="unionTag != null and unionTag != ''"> and union_tag = #{unionTag}</if>
|
||||
<if test="popId != null "> and pop_id = #{popId}</if>
|
||||
<if test="ext1 != null and ext1 != ''"> and ext1 = #{ext1}</if>
|
||||
<if test="payMonth != null and payMonth != ''"> and pay_month = #{payMonth}</if>
|
||||
<if test="cpActId != null "> and cp_act_id = #{cpActId}</if>
|
||||
<if test="unionRole != null "> and union_role = #{unionRole}</if>
|
||||
<if test="giftCouponOcsAmount != null "> and gift_coupon_ocs_amount = #{giftCouponOcsAmount}</if>
|
||||
<if test="giftCouponKey != null and giftCouponKey != ''"> and gift_coupon_key = #{giftCouponKey}</if>
|
||||
<if test="balanceExt != null and balanceExt != ''"> and balance_ext = #{balanceExt}</if>
|
||||
<if test="sign != null and sign != ''"> and sign = #{sign}</if>
|
||||
<if test="proPriceAmount != null "> and pro_price_amount = #{proPriceAmount}</if>
|
||||
<if test="rid != null "> and rid = #{rid}</if>
|
||||
<if test="goodsInfoId != null "> and goods_info_id = #{goodsInfoId}</if>
|
||||
<if test="expressStatus != null "> and express_status = #{expressStatus}</if>
|
||||
<if test="channelId != null "> and channel_id = #{channelId}</if>
|
||||
<if test="skuTag != null and skuTag != ''"> and sku_tag = #{skuTag}</if>
|
||||
<if test="itemId != null and itemId != ''"> and item_id = #{itemId}</if>
|
||||
<if test="callerItemId != null and callerItemId != ''"> and caller_item_id = #{callerItemId}</if>
|
||||
<if test="orderTag != null and orderTag != ''"> and order_tag = #{orderTag}</if>
|
||||
</where>
|
||||
order by order_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectOrderRowsById" parameterType="String" resultMap="OrderRowsResult">
|
||||
<include refid="selectOrderRowsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertOrderRows" parameterType="OrderRows">
|
||||
insert into order_rows
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id,</if>
|
||||
<if test="orderId != null">order_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="orderTime != null">order_time,</if>
|
||||
<if test="finishTime != null">finish_time,</if>
|
||||
<if test="modifyTime != null">modify_time,</if>
|
||||
<if test="orderEmt != null">order_emt,</if>
|
||||
<if test="plus != null">plus,</if>
|
||||
<if test="unionId != null">union_id,</if>
|
||||
<if test="skuId != null">sku_id,</if>
|
||||
<if test="skuName != null and skuName != ''">sku_name,</if>
|
||||
<if test="skuNum != null">sku_num,</if>
|
||||
<if test="skuReturnNum != null">sku_return_num,</if>
|
||||
<if test="skuFrozenNum != null">sku_frozen_num,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="commissionRate != null">commission_rate,</if>
|
||||
<if test="subSideRate != null">sub_side_rate,</if>
|
||||
<if test="subsidyRate != null">subsidy_rate,</if>
|
||||
<if test="finalRate != null">final_rate,</if>
|
||||
<if test="estimateCosPrice != null">estimate_cos_price,</if>
|
||||
<if test="estimateFee != null">estimate_fee,</if>
|
||||
<if test="actualCosPrice != null">actual_cos_price,</if>
|
||||
<if test="actualFee != null">actual_fee,</if>
|
||||
<if test="validCode != null">valid_code,</if>
|
||||
<if test="traceType != null">trace_type,</if>
|
||||
<if test="positionId != null">position_id,</if>
|
||||
<if test="siteId != null">site_id,</if>
|
||||
<if test="unionAlias != null and unionAlias != ''">union_alias,</if>
|
||||
<if test="pid != null and pid != ''">pid,</if>
|
||||
<if test="cid1 != null">cid1,</if>
|
||||
<if test="cid2 != null">cid2,</if>
|
||||
<if test="cid3 != null">cid3,</if>
|
||||
<if test="subUnionId != null and subUnionId != ''">sub_union_id,</if>
|
||||
<if test="unionTag != null and unionTag != ''">union_tag,</if>
|
||||
<if test="popId != null">pop_id,</if>
|
||||
<if test="ext1 != null and ext1 != ''">ext1,</if>
|
||||
<if test="payMonth != null and payMonth != ''">pay_month,</if>
|
||||
<if test="cpActId != null">cp_act_id,</if>
|
||||
<if test="unionRole != null">union_role,</if>
|
||||
<if test="giftCouponOcsAmount != null">gift_coupon_ocs_amount,</if>
|
||||
<if test="giftCouponKey != null and giftCouponKey != ''">gift_coupon_key,</if>
|
||||
<if test="balanceExt != null and balanceExt != ''">balance_ext,</if>
|
||||
<if test="sign != null and sign != ''">sign,</if>
|
||||
<if test="proPriceAmount != null">pro_price_amount,</if>
|
||||
<if test="rid != null">rid,</if>
|
||||
<if test="goodsInfoId != null">goods_info_id,</if>
|
||||
<if test="expressStatus != null">express_status,</if>
|
||||
<if test="channelId != null">channel_id,</if>
|
||||
<if test="skuTag != null and skuTag != ''">sku_tag,</if>
|
||||
<if test="itemId != null and itemId != ''">item_id,</if>
|
||||
<if test="callerItemId != null and callerItemId != ''">caller_item_id,</if>
|
||||
<if test="orderTag != null and orderTag != ''">order_tag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id},</if>
|
||||
<if test="orderId != null">#{orderId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="orderTime != null">#{orderTime},</if>
|
||||
<if test="finishTime != null">#{finishTime},</if>
|
||||
<if test="modifyTime != null">#{modifyTime},</if>
|
||||
<if test="orderEmt != null">#{orderEmt},</if>
|
||||
<if test="plus != null">#{plus},</if>
|
||||
<if test="unionId != null">#{unionId},</if>
|
||||
<if test="skuId != null">#{skuId},</if>
|
||||
<if test="skuName != null and skuName != ''">#{skuName},</if>
|
||||
<if test="skuNum != null">#{skuNum},</if>
|
||||
<if test="skuReturnNum != null">#{skuReturnNum},</if>
|
||||
<if test="skuFrozenNum != null">#{skuFrozenNum},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="commissionRate != null">#{commissionRate},</if>
|
||||
<if test="subSideRate != null">#{subSideRate},</if>
|
||||
<if test="subsidyRate != null">#{subsidyRate},</if>
|
||||
<if test="finalRate != null">#{finalRate},</if>
|
||||
<if test="estimateCosPrice != null">#{estimateCosPrice},</if>
|
||||
<if test="estimateFee != null">#{estimateFee},</if>
|
||||
<if test="actualCosPrice != null">#{actualCosPrice},</if>
|
||||
<if test="actualFee != null">#{actualFee},</if>
|
||||
<if test="validCode != null">#{validCode},</if>
|
||||
<if test="traceType != null">#{traceType},</if>
|
||||
<if test="positionId != null">#{positionId},</if>
|
||||
<if test="siteId != null">#{siteId},</if>
|
||||
<if test="unionAlias != null and unionAlias != ''">#{unionAlias},</if>
|
||||
<if test="pid != null and pid != ''">#{pid},</if>
|
||||
<if test="cid1 != null">#{cid1},</if>
|
||||
<if test="cid2 != null">#{cid2},</if>
|
||||
<if test="cid3 != null">#{cid3},</if>
|
||||
<if test="subUnionId != null and subUnionId != ''">#{subUnionId},</if>
|
||||
<if test="unionTag != null and unionTag != ''">#{unionTag},</if>
|
||||
<if test="popId != null">#{popId},</if>
|
||||
<if test="ext1 != null and ext1 != ''">#{ext1},</if>
|
||||
<if test="payMonth != null and payMonth != ''">#{payMonth},</if>
|
||||
<if test="cpActId != null">#{cpActId},</if>
|
||||
<if test="unionRole != null">#{unionRole},</if>
|
||||
<if test="giftCouponOcsAmount != null">#{giftCouponOcsAmount},</if>
|
||||
<if test="giftCouponKey != null and giftCouponKey != ''">#{giftCouponKey},</if>
|
||||
<if test="balanceExt != null and balanceExt != ''">#{balanceExt},</if>
|
||||
<if test="sign != null and sign != ''">#{sign},</if>
|
||||
<if test="proPriceAmount != null">#{proPriceAmount},</if>
|
||||
<if test="rid != null">#{rid},</if>
|
||||
<if test="goodsInfoId != null">#{goodsInfoId},</if>
|
||||
<if test="expressStatus != null">#{expressStatus},</if>
|
||||
<if test="channelId != null">#{channelId},</if>
|
||||
<if test="skuTag != null and skuTag != ''">#{skuTag},</if>
|
||||
<if test="itemId != null and itemId != ''">#{itemId},</if>
|
||||
<if test="callerItemId != null and callerItemId != ''">#{callerItemId},</if>
|
||||
<if test="orderTag != null and orderTag != ''">#{orderTag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOrderRows" parameterType="OrderRows">
|
||||
update order_rows
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id = #{orderId},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="orderTime != null">order_time = #{orderTime},</if>
|
||||
<if test="finishTime != null">finish_time = #{finishTime},</if>
|
||||
<if test="modifyTime != null">modify_time = #{modifyTime},</if>
|
||||
<if test="orderEmt != null">order_emt = #{orderEmt},</if>
|
||||
<if test="plus != null">plus = #{plus},</if>
|
||||
<if test="unionId != null">union_id = #{unionId},</if>
|
||||
<if test="skuId != null">sku_id = #{skuId},</if>
|
||||
<if test="skuName != null and skuName != ''">sku_name = #{skuName},</if>
|
||||
<if test="skuNum != null">sku_num = #{skuNum},</if>
|
||||
<if test="skuReturnNum != null">sku_return_num = #{skuReturnNum},</if>
|
||||
<if test="skuFrozenNum != null">sku_frozen_num = #{skuFrozenNum},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="commissionRate != null">commission_rate = #{commissionRate},</if>
|
||||
<if test="subSideRate != null">sub_side_rate = #{subSideRate},</if>
|
||||
<if test="subsidyRate != null">subsidy_rate = #{subsidyRate},</if>
|
||||
<if test="finalRate != null">final_rate = #{finalRate},</if>
|
||||
<if test="estimateCosPrice != null">estimate_cos_price = #{estimateCosPrice},</if>
|
||||
<if test="estimateFee != null">estimate_fee = #{estimateFee},</if>
|
||||
<if test="actualCosPrice != null">actual_cos_price = #{actualCosPrice},</if>
|
||||
<if test="actualFee != null">actual_fee = #{actualFee},</if>
|
||||
<if test="validCode != null">valid_code = #{validCode},</if>
|
||||
<if test="traceType != null">trace_type = #{traceType},</if>
|
||||
<if test="positionId != null">position_id = #{positionId},</if>
|
||||
<if test="siteId != null">site_id = #{siteId},</if>
|
||||
<if test="unionAlias != null and unionAlias != ''">union_alias = #{unionAlias},</if>
|
||||
<if test="pid != null and pid != ''">pid = #{pid},</if>
|
||||
<if test="cid1 != null">cid1 = #{cid1},</if>
|
||||
<if test="cid2 != null">cid2 = #{cid2},</if>
|
||||
<if test="cid3 != null">cid3 = #{cid3},</if>
|
||||
<if
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.jarvis.service;
|
||||
|
||||
import com.ruoyi.jarvis.domain.OrderRows;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 京粉订单Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface IOrderRowsService
|
||||
{
|
||||
/**
|
||||
* 查询京粉订单
|
||||
*
|
||||
* @param id 京粉订单主键
|
||||
* @return 京粉订单
|
||||
*/
|
||||
public OrderRows selectOrderRowsById(String id);
|
||||
|
||||
/**
|
||||
* 查询京粉订单列表
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 京粉订单集合
|
||||
*/
|
||||
public List<OrderRows> selectOrderRowsList(OrderRows orderRows);
|
||||
|
||||
/**
|
||||
* 新增京粉订单
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOrderRows(OrderRows orderRows);
|
||||
|
||||
/**
|
||||
* 修改京粉订单
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrderRows(OrderRows orderRows);
|
||||
|
||||
/**
|
||||
* 批量删除京粉订单
|
||||
*
|
||||
* @param ids 需要删除的京粉订单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderRowsByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除京粉订单信息
|
||||
*
|
||||
* @param id 京粉订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderRowsById(String id);
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package com.ruoyi.jarvis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.jarvis.domain.OrderRows;
|
||||
import com.ruoyi.jarvis.mapper.OrderRowsMapper;
|
||||
import com.ruoyi.jarvis.service.IOrderRowsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 京粉订单Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Service
|
||||
public class OrderRowsServiceImpl implements IOrderRowsService
|
||||
{
|
||||
@Autowired
|
||||
private OrderRowsMapper orderRowsMapper;
|
||||
|
||||
/**
|
||||
* 查询京粉订单
|
||||
*
|
||||
* @param id 京粉订单主键
|
||||
* @return 京粉订单
|
||||
*/
|
||||
@Override
|
||||
public OrderRows selectOrderRowsById(String id)
|
||||
{
|
||||
return orderRowsMapper.selectOrderRowsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询京粉订单列表
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 京粉订单
|
||||
*/
|
||||
@Override
|
||||
public List<OrderRows> selectOrderRowsList(OrderRows orderRows)
|
||||
{
|
||||
return orderRowsMapper.selectOrderRowsList(orderRows);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增京粉订单
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertOrderRows(OrderRows orderRows)
|
||||
{
|
||||
return orderRowsMapper.insertOrderRows(orderRows);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改京粉订单
|
||||
*
|
||||
* @param orderRows 京粉订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOrderRows(OrderRows orderRows)
|
||||
{
|
||||
return orderRowsMapper.updateOrderRows(orderRows);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除京粉订单
|
||||
*
|
||||
* @param ids 需要删除的京粉订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOrderRowsByIds(String[] ids)
|
||||
{
|
||||
return orderRowsMapper.deleteOrderRowsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除京粉订单信息
|
||||
*
|
||||
* @param id 京粉订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOrderRowsById(String id)
|
||||
{
|
||||
return orderRowsMapper.deleteOrderRowsById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user