Browse Source

销售单代码

Signed-off-by: fengb <fengbin1989@aliyun.com>
cangku
fengb 3 years ago
parent
commit
2bd722a183
  1. 2
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/PurchaseController.java
  2. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/StockController.java
  3. 3
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/PurchaseDetailMapper.java
  4. 33
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/SaleDetailMapper.java
  5. 33
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/SaleMapper.java
  6. 2
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Purchase.java
  7. 197
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseDetail.java
  8. 1067
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseDetailExample.java
  9. 269
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Sale.java
  10. 221
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleDetail.java
  11. 1281
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleDetailExample.java
  12. 1561
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleExample.java
  13. 13
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/service/mybatis/SaleService.java
  14. 3
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/service/mybatis/StockService.java
  15. 25
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/SaleServiceImpl.java
  16. 43
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/StockServiceImpl.java
  17. 265
      hiver-modules/hiver-mall/src/main/resources/mapper/PurchaseDetailMapper.xml
  18. 401
      hiver-modules/hiver-mall/src/main/resources/mapper/SaleDetailMapper.xml
  19. 465
      hiver-modules/hiver-mall/src/main/resources/mapper/SaleMapper.xml

2
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/PurchaseController.java

@ -25,7 +25,7 @@ import java.util.List;
@Slf4j
@RestController
@Api(tags = "采购接口")
@Api(tags = "采购入库接口")
@RequestMapping(value = "/hiver/app/purchase/")
@Transactional
public class PurchaseController {

4
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/StockController.java

@ -46,8 +46,8 @@ public class StockController {
@RequestMapping(value = "/putIn", method = RequestMethod.POST)
@ApiOperation(value = "入库")
public Result putIn(StockVo stockVo) {
return stockService.putIn(stockVo);
public Result putIn(PurchaseVo purchaseVo) {
return stockService.putIn(purchaseVo);
}
}

3
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/PurchaseDetailMapper.java

@ -4,10 +4,9 @@ import cc.hiver.mall.entity.PurchaseDetail;
import cc.hiver.mall.entity.PurchaseDetailExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface PurchaseDetailMapper extends BaseMapper<PurchaseDetail> {
long countByExample(PurchaseDetailExample example);

33
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/SaleDetailMapper.java

@ -0,0 +1,33 @@
package cc.hiver.mall.dao.mapper;
import cc.hiver.mall.entity.Sale;
import cc.hiver.mall.entity.SaleDetail;
import cc.hiver.mall.entity.SaleDetailExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SaleDetailMapper extends BaseMapper<SaleDetail> {
long countByExample(SaleDetailExample example);
int deleteByExample(SaleDetailExample example);
int deleteByPrimaryKey(Long id);
int insert(SaleDetail record);
int insertSelective(SaleDetail record);
List<SaleDetail> selectByExample(SaleDetailExample example);
SaleDetail selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SaleDetail record, @Param("example") SaleDetailExample example);
int updateByExample(@Param("record") SaleDetail record, @Param("example") SaleDetailExample example);
int updateByPrimaryKeySelective(SaleDetail record);
int updateByPrimaryKey(SaleDetail record);
}

33
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/SaleMapper.java

@ -0,0 +1,33 @@
package cc.hiver.mall.dao.mapper;
import cc.hiver.mall.entity.PurchaseDetail;
import cc.hiver.mall.entity.Sale;
import cc.hiver.mall.entity.SaleExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SaleMapper extends BaseMapper<Sale> {
long countByExample(SaleExample example);
int deleteByExample(SaleExample example);
int deleteByPrimaryKey(Long id);
int insert(Sale record);
int insertSelective(Sale record);
List<Sale> selectByExample(SaleExample example);
Sale selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Sale record, @Param("example") SaleExample example);
int updateByExample(@Param("record") Sale record, @Param("example") SaleExample example);
int updateByPrimaryKeySelective(Sale record);
int updateByPrimaryKey(Sale record);
}

2
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Purchase.java

@ -6,7 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "采购单主表")
@ApiModel(value = "采购入库单主表")
public class Purchase implements Serializable {
private Long id;

197
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseDetail.java

@ -4,8 +4,9 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "采购单明细表")
@ApiModel(value = "采购入库单明细表")
public class PurchaseDetail implements Serializable {
private Long id;
@ -25,8 +26,53 @@ public class PurchaseDetail implements Serializable {
@ApiModelProperty(value = "商品ID")
private Long productId;
@ApiModelProperty(value = "商品规格")
private String productSpecs;
@ApiModelProperty(value = "商品名称")
private String productName;
@ApiModelProperty(value = "单位")
private String unit;
@ApiModelProperty(value = "店铺ID")
private String shopId;
@ApiModelProperty(value = "商品分类")
private Long categoryId;
@ApiModelProperty(value = "商品属性列表")
private String attributeList;
@ApiModelProperty(value = "供应商")
private String supplierId;
@ApiModelProperty(value = "货号")
private String productSn;
@ApiModelProperty(value = "条码")
private String barcode;
@ApiModelProperty(value = "市场价")
private BigDecimal price;
@ApiModelProperty(value = "采购价")
private BigDecimal purchasePrice;
@ApiModelProperty(value = "批发价")
private BigDecimal wholesalePrice;
@ApiModelProperty(value = "货品图片")
private String productPicture;
@ApiModelProperty(value = "货品视频")
private String productVideo;
@ApiModelProperty(value = "货品简介")
private String productIntro;
@ApiModelProperty(value = "销售周期")
private String salesWeek;
@ApiModelProperty(value = "打印条码(自己制作的)")
private String printBarcode;
@ApiModelProperty(value = "采购数量")
private Integer productCount;
@ -97,12 +143,132 @@ public class PurchaseDetail implements Serializable {
this.productId = productId;
}
public String getProductSpecs() {
return productSpecs;
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getUnit() {
return unit;
}
public void setUnit(String unit) {
this.unit = unit;
}
public String getShopId() {
return shopId;
}
public void setShopId(String shopId) {
this.shopId = shopId;
}
public Long getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
this.categoryId = categoryId;
}
public String getAttributeList() {
return attributeList;
}
public void setAttributeList(String attributeList) {
this.attributeList = attributeList;
}
public String getSupplierId() {
return supplierId;
}
public void setSupplierId(String supplierId) {
this.supplierId = supplierId;
}
public String getProductSn() {
return productSn;
}
public void setProductSn(String productSn) {
this.productSn = productSn;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public BigDecimal getPurchasePrice() {
return purchasePrice;
}
public void setPurchasePrice(BigDecimal purchasePrice) {
this.purchasePrice = purchasePrice;
}
public BigDecimal getWholesalePrice() {
return wholesalePrice;
}
public void setWholesalePrice(BigDecimal wholesalePrice) {
this.wholesalePrice = wholesalePrice;
}
public String getProductPicture() {
return productPicture;
}
public void setProductPicture(String productPicture) {
this.productPicture = productPicture;
}
public String getProductVideo() {
return productVideo;
}
public void setProductVideo(String productVideo) {
this.productVideo = productVideo;
}
public String getProductIntro() {
return productIntro;
}
public void setProductIntro(String productIntro) {
this.productIntro = productIntro;
}
public String getSalesWeek() {
return salesWeek;
}
public void setSalesWeek(String salesWeek) {
this.salesWeek = salesWeek;
}
public String getPrintBarcode() {
return printBarcode;
}
public void setProductSpecs(String productSpecs) {
this.productSpecs = productSpecs;
public void setPrintBarcode(String printBarcode) {
this.printBarcode = printBarcode;
}
public Integer getProductCount() {
@ -127,7 +293,22 @@ public class PurchaseDetail implements Serializable {
sb.append(", updateTime=").append(updateTime);
sb.append(", purchaseId=").append(purchaseId);
sb.append(", productId=").append(productId);
sb.append(", productSpecs=").append(productSpecs);
sb.append(", productName=").append(productName);
sb.append(", unit=").append(unit);
sb.append(", shopId=").append(shopId);
sb.append(", categoryId=").append(categoryId);
sb.append(", attributeList=").append(attributeList);
sb.append(", supplierId=").append(supplierId);
sb.append(", productSn=").append(productSn);
sb.append(", barcode=").append(barcode);
sb.append(", price=").append(price);
sb.append(", purchasePrice=").append(purchasePrice);
sb.append(", wholesalePrice=").append(wholesalePrice);
sb.append(", productPicture=").append(productPicture);
sb.append(", productVideo=").append(productVideo);
sb.append(", productIntro=").append(productIntro);
sb.append(", salesWeek=").append(salesWeek);
sb.append(", printBarcode=").append(printBarcode);
sb.append(", productCount=").append(productCount);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");

1067
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseDetailExample.java

File diff suppressed because it is too large

269
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Sale.java

@ -0,0 +1,269 @@
package cc.hiver.mall.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "销售单主表")
public class Sale implements Serializable {
private Long id;
private String createBy;
private Date createTime;
private Integer delFlag;
private String updateBy;
private Date updateTime;
@ApiModelProperty(value = "客户ID")
private Long userId;
@ApiModelProperty(value = "店铺ID")
private String shopId;
@ApiModelProperty(value = "订单金额")
private BigDecimal totalAmount;
@ApiModelProperty(value = "折扣")
private BigDecimal discount;
@ApiModelProperty(value = "优惠金额")
private BigDecimal discountAmount;
@ApiModelProperty(value = "实收金额")
private BigDecimal realAmount;
@ApiModelProperty(value = "已收")
private BigDecimal alreadyEarn;
@ApiModelProperty(value = "未收")
private BigDecimal noEarn;
@ApiModelProperty(value = "订单状态 0-拣货中 1-已提交抢单 2-已取货 3-已送达")
private String status;
@ApiModelProperty(value = "物流类别 0-物流 1-快递 2-自提 3-拼单")
private String transportType;
@ApiModelProperty(value = "拼单店铺地址 为拼单类别时手动输入")
private String shareAddress;
@ApiModelProperty(value = "收货地址")
private String receiveAddress;
@ApiModelProperty(value = "省")
private String province;
@ApiModelProperty(value = "市")
private String city;
@ApiModelProperty(value = "区县")
private String area;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getDelFlag() {
return delFlag;
}
public void setDelFlag(Integer delFlag) {
this.delFlag = delFlag;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getShopId() {
return shopId;
}
public void setShopId(String shopId) {
this.shopId = shopId;
}
public BigDecimal getTotalAmount() {
return totalAmount;
}
public void setTotalAmount(BigDecimal totalAmount) {
this.totalAmount = totalAmount;
}
public BigDecimal getDiscount() {
return discount;
}
public void setDiscount(BigDecimal discount) {
this.discount = discount;
}
public BigDecimal getDiscountAmount() {
return discountAmount;
}
public void setDiscountAmount(BigDecimal discountAmount) {
this.discountAmount = discountAmount;
}
public BigDecimal getRealAmount() {
return realAmount;
}
public void setRealAmount(BigDecimal realAmount) {
this.realAmount = realAmount;
}
public BigDecimal getAlreadyEarn() {
return alreadyEarn;
}
public void setAlreadyEarn(BigDecimal alreadyEarn) {
this.alreadyEarn = alreadyEarn;
}
public BigDecimal getNoEarn() {
return noEarn;
}
public void setNoEarn(BigDecimal noEarn) {
this.noEarn = noEarn;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getTransportType() {
return transportType;
}
public void setTransportType(String transportType) {
this.transportType = transportType;
}
public String getShareAddress() {
return shareAddress;
}
public void setShareAddress(String shareAddress) {
this.shareAddress = shareAddress;
}
public String getReceiveAddress() {
return receiveAddress;
}
public void setReceiveAddress(String receiveAddress) {
this.receiveAddress = receiveAddress;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", delFlag=").append(delFlag);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", userId=").append(userId);
sb.append(", shopId=").append(shopId);
sb.append(", totalAmount=").append(totalAmount);
sb.append(", discount=").append(discount);
sb.append(", discountAmount=").append(discountAmount);
sb.append(", realAmount=").append(realAmount);
sb.append(", alreadyEarn=").append(alreadyEarn);
sb.append(", noEarn=").append(noEarn);
sb.append(", status=").append(status);
sb.append(", transportType=").append(transportType);
sb.append(", shareAddress=").append(shareAddress);
sb.append(", receiveAddress=").append(receiveAddress);
sb.append(", province=").append(province);
sb.append(", city=").append(city);
sb.append(", area=").append(area);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

221
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleDetail.java

@ -0,0 +1,221 @@
package cc.hiver.mall.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "销售单明细表")
public class SaleDetail implements Serializable {
private Long id;
private String createBy;
private Date createTime;
private Integer delFlag;
private String updateBy;
private Date updateTime;
@ApiModelProperty(value = "销售单ID")
private Long saleId;
@ApiModelProperty(value = "商品ID")
private Long productId;
@ApiModelProperty(value = "商品名称")
private String productName;
@ApiModelProperty(value = "单位")
private String unit;
@ApiModelProperty(value = "店铺ID")
private String shopId;
@ApiModelProperty(value = "商品分类")
private Long categoryId;
@ApiModelProperty(value = "商品属性列表")
private String attributeList;
@ApiModelProperty(value = "市场价")
private BigDecimal price;
@ApiModelProperty(value = "采购价")
private BigDecimal purchasePrice;
@ApiModelProperty(value = "批发价")
private BigDecimal wholesalePrice;
@ApiModelProperty(value = "销售数量")
private Integer productCount;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getDelFlag() {
return delFlag;
}
public void setDelFlag(Integer delFlag) {
this.delFlag = delFlag;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Long getSaleId() {
return saleId;
}
public void setSaleId(Long saleId) {
this.saleId = saleId;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getUnit() {
return unit;
}
public void setUnit(String unit) {
this.unit = unit;
}
public String getShopId() {
return shopId;
}
public void setShopId(String shopId) {
this.shopId = shopId;
}
public Long getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
this.categoryId = categoryId;
}
public String getAttributeList() {
return attributeList;
}
public void setAttributeList(String attributeList) {
this.attributeList = attributeList;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public BigDecimal getPurchasePrice() {
return purchasePrice;
}
public void setPurchasePrice(BigDecimal purchasePrice) {
this.purchasePrice = purchasePrice;
}
public BigDecimal getWholesalePrice() {
return wholesalePrice;
}
public void setWholesalePrice(BigDecimal wholesalePrice) {
this.wholesalePrice = wholesalePrice;
}
public Integer getProductCount() {
return productCount;
}
public void setProductCount(Integer productCount) {
this.productCount = productCount;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", delFlag=").append(delFlag);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", saleId=").append(saleId);
sb.append(", productId=").append(productId);
sb.append(", productName=").append(productName);
sb.append(", unit=").append(unit);
sb.append(", shopId=").append(shopId);
sb.append(", categoryId=").append(categoryId);
sb.append(", attributeList=").append(attributeList);
sb.append(", price=").append(price);
sb.append(", purchasePrice=").append(purchasePrice);
sb.append(", wholesalePrice=").append(wholesalePrice);
sb.append(", productCount=").append(productCount);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

1281
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleDetailExample.java

File diff suppressed because it is too large

1561
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleExample.java

File diff suppressed because it is too large

13
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/service/mybatis/SaleService.java

@ -0,0 +1,13 @@
package cc.hiver.mall.service.mybatis;
import cc.hiver.core.common.vo.Result;
import cc.hiver.mall.entity.Sale;
import cc.hiver.mall.entity.Stock;
import cc.hiver.mall.pojo.vo.PurchaseVo;
import com.baomidou.mybatisplus.extension.service.IService;
public interface SaleService extends IService<Sale> {
}

3
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/service/mybatis/StockService.java

@ -3,9 +3,10 @@ package cc.hiver.mall.service.mybatis;
import cc.hiver.core.common.vo.Result;
import cc.hiver.mall.entity.Purchase;
import cc.hiver.mall.entity.Stock;
import cc.hiver.mall.pojo.vo.PurchaseVo;
import cc.hiver.mall.pojo.vo.StockVo;
import com.baomidou.mybatisplus.extension.service.IService;
public interface StockService extends IService<Stock> {
Result putIn(StockVo stockVo);
Result putIn(PurchaseVo purchaseVo);
}

25
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/SaleServiceImpl.java

@ -0,0 +1,25 @@
package cc.hiver.mall.serviceimpl.mybatis;
import cc.hiver.core.common.utils.BeanUtils;
import cc.hiver.core.common.utils.ResultUtil;
import cc.hiver.core.common.vo.Result;
import cc.hiver.mall.dao.mapper.SaleMapper;
import cc.hiver.mall.dao.mapper.StockMapper;
import cc.hiver.mall.entity.*;
import cc.hiver.mall.pojo.vo.PurchaseVo;
import cc.hiver.mall.service.mybatis.*;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
public class SaleServiceImpl extends ServiceImpl<SaleMapper, Sale> implements SaleService {
}

43
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/StockServiceImpl.java

@ -7,6 +7,7 @@ import cc.hiver.core.common.vo.Result;
import cc.hiver.mall.dao.mapper.ProductMapper;
import cc.hiver.mall.dao.mapper.StockMapper;
import cc.hiver.mall.entity.*;
import cc.hiver.mall.pojo.vo.PurchaseVo;
import cc.hiver.mall.pojo.vo.StockVo;
import cc.hiver.mall.service.mybatis.*;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
@ -35,15 +36,14 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
@Transactional
@Override
public Result putIn(StockVo stockVo) {
public Result putIn(PurchaseVo purchaseVo) {
Boolean result = false;
List<PurchaseDetail> purchaseDetails = new ArrayList<>();
//1.判断入库的货品是否有库存,有则修改库存数量,没有则新建库存数据
Purchase purchase = stockVo.getPurchase();
List<Stock> stockList = stockVo.getStockList();
for (Stock stock:stockList){
Long productId = stock.getProductId();
String attributeList = stock.getAttributeList();
Purchase purchase = purchaseVo.getPurchase();
List<PurchaseDetail> purchaseDetailList = purchaseVo.getPurchaseDetails();
for (PurchaseDetail purchaseDetail:purchaseDetailList){
Long productId = purchaseDetail.getProductId();
String attributeList = purchaseDetail.getAttributeList();
QueryWrapper<Stock> stockQueryWrapper = new QueryWrapper<>();
stockQueryWrapper.eq("product_id",productId);
stockQueryWrapper.eq("attribute_list",attributeList);
@ -55,36 +55,33 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
stockCount = origin.getStockCount();
UpdateWrapper<Stock> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("id",origin.getId());
updateWrapper.set("stock_count",stockCount + stock.getStockCount());
updateWrapper.set("stock_count",stockCount + purchaseDetail.getProductCount());
this.update();
}else {
//没有则新建库存数据
Stock stock = new Stock();
BeanUtils.copyBeanProp(stock,purchaseDetail);
stock.setStockCount(purchaseDetail.getProductCount());
save(stock);
}
//创建采购单明细
PurchaseDetail purchaseDetail = new PurchaseDetail();
purchaseDetail.setProductId(stock.getProductId());
purchaseDetail.setProductSpecs(stock.getAttributeList());
purchaseDetail.setPurchaseId(purchase.getId());
purchaseDetail.setProductCount(stock.getStockCount());
purchaseDetails.add(purchaseDetail);
//2.记录库存履历
StockLog stockLog = new StockLog();
stockLog.setChangeType("0");//入库
stockLog.setProductId(stock.getProductId());
stockLog.setProductSpecs(stock.getAttributeList());
stockLog.setProductId(purchaseDetail.getProductId());
stockLog.setProductSpecs(purchaseDetail.getAttributeList());
stockLog.setStock(stockCount);//入库前数量
stockLog.setChangeStock(stock.getStockCount());//入库数量
stockLog.setPrice(stock.getPrice());
stockLog.setPurchasePrice(stock.getPurchasePrice());
stockLog.setWholesalePrice(stock.getWholesalePrice());
stockLog.setShopId(stock.getShopId());
stockLog.setChangeStock(purchaseDetail.getProductCount());//入库数量
stockLog.setPrice(purchaseDetail.getPrice());
stockLog.setPurchasePrice(purchaseDetail.getPurchasePrice());
stockLog.setWholesalePrice(purchaseDetail.getWholesalePrice());
stockLog.setShopId(purchaseDetail.getShopId());
stockLogService.save(stockLog);
}
//3.登记采购单主表和采购单明细表
if(purchaseService.save(purchase)){
result = purchaseDetailService.saveBatch(purchaseDetails);
result = purchaseDetailService.saveBatch(purchaseDetailList);
};
if(result) {

265
hiver-modules/hiver-mall/src/main/resources/mapper/PurchaseDetailMapper.xml

@ -10,7 +10,22 @@
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="purchase_id" jdbcType="BIGINT" property="purchaseId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_specs" jdbcType="VARCHAR" property="productSpecs" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="unit" jdbcType="VARCHAR" property="unit" />
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="attribute_list" jdbcType="VARCHAR" property="attributeList" />
<result column="supplier_id" jdbcType="VARCHAR" property="supplierId" />
<result column="product_sn" jdbcType="VARCHAR" property="productSn" />
<result column="barcode" jdbcType="VARCHAR" property="barcode" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="purchase_price" jdbcType="DECIMAL" property="purchasePrice" />
<result column="wholesale_price" jdbcType="DECIMAL" property="wholesalePrice" />
<result column="product_picture" jdbcType="VARCHAR" property="productPicture" />
<result column="product_video" jdbcType="VARCHAR" property="productVideo" />
<result column="product_intro" jdbcType="VARCHAR" property="productIntro" />
<result column="sales_week" jdbcType="VARCHAR" property="salesWeek" />
<result column="print_barcode" jdbcType="VARCHAR" property="printBarcode" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
</resultMap>
<sql id="Example_Where_Clause">
@ -73,7 +88,9 @@
</sql>
<sql id="Base_Column_List">
id, create_by, create_time, del_flag, update_by, update_time, purchase_id, product_id,
product_specs, product_count
product_name, unit, shop_id, category_id, attribute_list, supplier_id, product_sn,
barcode, price, purchase_price, wholesale_price, product_picture, product_video,
product_intro, sales_week, print_barcode, product_count
</sql>
<select id="selectByExample" parameterType="cc.hiver.mall.entity.PurchaseDetailExample" resultMap="BaseResultMap">
select
@ -108,11 +125,21 @@
<insert id="insert" parameterType="cc.hiver.mall.entity.PurchaseDetail">
insert into t_purchase_detail (id, create_by, create_time,
del_flag, update_by, update_time,
purchase_id, product_id, product_specs,
purchase_id, product_id, product_name,
unit, shop_id, category_id,
attribute_list, supplier_id, product_sn,
barcode, price, purchase_price,
wholesale_price, product_picture, product_video,
product_intro, sales_week, print_barcode,
product_count)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{purchaseId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{productSpecs,jdbcType=VARCHAR},
#{purchaseId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=BIGINT},
#{attributeList,jdbcType=VARCHAR}, #{supplierId,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR},
#{barcode,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{purchasePrice,jdbcType=DECIMAL},
#{wholesalePrice,jdbcType=DECIMAL}, #{productPicture,jdbcType=VARCHAR}, #{productVideo,jdbcType=VARCHAR},
#{productIntro,jdbcType=VARCHAR}, #{salesWeek,jdbcType=VARCHAR}, #{printBarcode,jdbcType=VARCHAR},
#{productCount,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.PurchaseDetail">
@ -142,8 +169,53 @@
<if test="productId != null">
product_id,
</if>
<if test="productSpecs != null">
product_specs,
<if test="productName != null">
product_name,
</if>
<if test="unit != null">
unit,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="categoryId != null">
category_id,
</if>
<if test="attributeList != null">
attribute_list,
</if>
<if test="supplierId != null">
supplier_id,
</if>
<if test="productSn != null">
product_sn,
</if>
<if test="barcode != null">
barcode,
</if>
<if test="price != null">
price,
</if>
<if test="purchasePrice != null">
purchase_price,
</if>
<if test="wholesalePrice != null">
wholesale_price,
</if>
<if test="productPicture != null">
product_picture,
</if>
<if test="productVideo != null">
product_video,
</if>
<if test="productIntro != null">
product_intro,
</if>
<if test="salesWeek != null">
sales_week,
</if>
<if test="printBarcode != null">
print_barcode,
</if>
<if test="productCount != null">
product_count,
@ -174,8 +246,53 @@
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productSpecs != null">
#{productSpecs,jdbcType=VARCHAR},
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="unit != null">
#{unit,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="attributeList != null">
#{attributeList,jdbcType=VARCHAR},
</if>
<if test="supplierId != null">
#{supplierId,jdbcType=VARCHAR},
</if>
<if test="productSn != null">
#{productSn,jdbcType=VARCHAR},
</if>
<if test="barcode != null">
#{barcode,jdbcType=VARCHAR},
</if>
<if test="price != null">
#{price,jdbcType=DECIMAL},
</if>
<if test="purchasePrice != null">
#{purchasePrice,jdbcType=DECIMAL},
</if>
<if test="wholesalePrice != null">
#{wholesalePrice,jdbcType=DECIMAL},
</if>
<if test="productPicture != null">
#{productPicture,jdbcType=VARCHAR},
</if>
<if test="productVideo != null">
#{productVideo,jdbcType=VARCHAR},
</if>
<if test="productIntro != null">
#{productIntro,jdbcType=VARCHAR},
</if>
<if test="salesWeek != null">
#{salesWeek,jdbcType=VARCHAR},
</if>
<if test="printBarcode != null">
#{printBarcode,jdbcType=VARCHAR},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
@ -215,8 +332,53 @@
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productSpecs != null">
product_specs = #{record.productSpecs,jdbcType=VARCHAR},
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.unit != null">
unit = #{record.unit,jdbcType=VARCHAR},
</if>
<if test="record.shopId != null">
shop_id = #{record.shopId,jdbcType=VARCHAR},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.attributeList != null">
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
</if>
<if test="record.supplierId != null">
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
</if>
<if test="record.productSn != null">
product_sn = #{record.productSn,jdbcType=VARCHAR},
</if>
<if test="record.barcode != null">
barcode = #{record.barcode,jdbcType=VARCHAR},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
<if test="record.purchasePrice != null">
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
</if>
<if test="record.wholesalePrice != null">
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
</if>
<if test="record.productPicture != null">
product_picture = #{record.productPicture,jdbcType=VARCHAR},
</if>
<if test="record.productVideo != null">
product_video = #{record.productVideo,jdbcType=VARCHAR},
</if>
<if test="record.productIntro != null">
product_intro = #{record.productIntro,jdbcType=VARCHAR},
</if>
<if test="record.salesWeek != null">
sales_week = #{record.salesWeek,jdbcType=VARCHAR},
</if>
<if test="record.printBarcode != null">
print_barcode = #{record.printBarcode,jdbcType=VARCHAR},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
@ -236,7 +398,22 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
purchase_id = #{record.purchaseId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_specs = #{record.productSpecs,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
unit = #{record.unit,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
category_id = #{record.categoryId,jdbcType=BIGINT},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
barcode = #{record.barcode,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
product_picture = #{record.productPicture,jdbcType=VARCHAR},
product_video = #{record.productVideo,jdbcType=VARCHAR},
product_intro = #{record.productIntro,jdbcType=VARCHAR},
sales_week = #{record.salesWeek,jdbcType=VARCHAR},
print_barcode = #{record.printBarcode,jdbcType=VARCHAR},
product_count = #{record.productCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -266,8 +443,53 @@
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productSpecs != null">
product_specs = #{productSpecs,jdbcType=VARCHAR},
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="unit != null">
unit = #{unit,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="attributeList != null">
attribute_list = #{attributeList,jdbcType=VARCHAR},
</if>
<if test="supplierId != null">
supplier_id = #{supplierId,jdbcType=VARCHAR},
</if>
<if test="productSn != null">
product_sn = #{productSn,jdbcType=VARCHAR},
</if>
<if test="barcode != null">
barcode = #{barcode,jdbcType=VARCHAR},
</if>
<if test="price != null">
price = #{price,jdbcType=DECIMAL},
</if>
<if test="purchasePrice != null">
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
</if>
<if test="wholesalePrice != null">
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
</if>
<if test="productPicture != null">
product_picture = #{productPicture,jdbcType=VARCHAR},
</if>
<if test="productVideo != null">
product_video = #{productVideo,jdbcType=VARCHAR},
</if>
<if test="productIntro != null">
product_intro = #{productIntro,jdbcType=VARCHAR},
</if>
<if test="salesWeek != null">
sales_week = #{salesWeek,jdbcType=VARCHAR},
</if>
<if test="printBarcode != null">
print_barcode = #{printBarcode,jdbcType=VARCHAR},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
@ -284,7 +506,22 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
purchase_id = #{purchaseId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT},
product_specs = #{productSpecs,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=BIGINT},
attribute_list = #{attributeList,jdbcType=VARCHAR},
supplier_id = #{supplierId,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
barcode = #{barcode,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
product_picture = #{productPicture,jdbcType=VARCHAR},
product_video = #{productVideo,jdbcType=VARCHAR},
product_intro = #{productIntro,jdbcType=VARCHAR},
sales_week = #{salesWeek,jdbcType=VARCHAR},
print_barcode = #{printBarcode,jdbcType=VARCHAR},
product_count = #{productCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>

401
hiver-modules/hiver-mall/src/main/resources/mapper/SaleDetailMapper.xml

@ -0,0 +1,401 @@
<?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="cc.hiver.mall.dao.mapper.SaleDetailMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.SaleDetail">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="sale_id" jdbcType="BIGINT" property="saleId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="unit" jdbcType="VARCHAR" property="unit" />
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="attribute_list" jdbcType="VARCHAR" property="attributeList" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="purchase_price" jdbcType="DECIMAL" property="purchasePrice" />
<result column="wholesale_price" jdbcType="DECIMAL" property="wholesalePrice" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, create_by, create_time, del_flag, update_by, update_time, sale_id, product_id,
product_name, unit, shop_id, category_id, attribute_list, price, purchase_price,
wholesale_price, product_count
</sql>
<select id="selectByExample" parameterType="cc.hiver.mall.entity.SaleDetailExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_sale_detail
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sale_detail
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_sale_detail
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.SaleDetailExample">
delete from t_sale_detail
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="cc.hiver.mall.entity.SaleDetail">
insert into t_sale_detail (id, create_by, create_time,
del_flag, update_by, update_time,
sale_id, product_id, product_name,
unit, shop_id, category_id,
attribute_list, price, purchase_price,
wholesale_price, product_count)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{saleId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=BIGINT},
#{attributeList,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{purchasePrice,jdbcType=DECIMAL},
#{wholesalePrice,jdbcType=DECIMAL}, #{productCount,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.SaleDetail">
insert into t_sale_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="delFlag != null">
del_flag,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="saleId != null">
sale_id,
</if>
<if test="productId != null">
product_id,
</if>
<if test="productName != null">
product_name,
</if>
<if test="unit != null">
unit,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="categoryId != null">
category_id,
</if>
<if test="attributeList != null">
attribute_list,
</if>
<if test="price != null">
price,
</if>
<if test="purchasePrice != null">
purchase_price,
</if>
<if test="wholesalePrice != null">
wholesale_price,
</if>
<if test="productCount != null">
product_count,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saleId != null">
#{saleId,jdbcType=BIGINT},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="unit != null">
#{unit,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="attributeList != null">
#{attributeList,jdbcType=VARCHAR},
</if>
<if test="price != null">
#{price,jdbcType=DECIMAL},
</if>
<if test="purchasePrice != null">
#{purchasePrice,jdbcType=DECIMAL},
</if>
<if test="wholesalePrice != null">
#{wholesalePrice,jdbcType=DECIMAL},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="cc.hiver.mall.entity.SaleDetailExample" resultType="java.lang.Long">
select count(*) from t_sale_detail
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_sale_detail
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.delFlag != null">
del_flag = #{record.delFlag,jdbcType=INTEGER},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.saleId != null">
sale_id = #{record.saleId,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.unit != null">
unit = #{record.unit,jdbcType=VARCHAR},
</if>
<if test="record.shopId != null">
shop_id = #{record.shopId,jdbcType=VARCHAR},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.attributeList != null">
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
<if test="record.purchasePrice != null">
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
</if>
<if test="record.wholesalePrice != null">
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_sale_detail
set id = #{record.id,jdbcType=BIGINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
sale_id = #{record.saleId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_name = #{record.productName,jdbcType=VARCHAR},
unit = #{record.unit,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
category_id = #{record.categoryId,jdbcType=BIGINT},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{record.wholesalePrice,jdbcType=DECIMAL},
product_count = #{record.productCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.entity.SaleDetail">
update t_sale_detail
<set>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saleId != null">
sale_id = #{saleId,jdbcType=BIGINT},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="unit != null">
unit = #{unit,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="attributeList != null">
attribute_list = #{attributeList,jdbcType=VARCHAR},
</if>
<if test="price != null">
price = #{price,jdbcType=DECIMAL},
</if>
<if test="purchasePrice != null">
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
</if>
<if test="wholesalePrice != null">
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.SaleDetail">
update t_sale_detail
set create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
sale_id = #{saleId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT},
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=BIGINT},
attribute_list = #{attributeList,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
product_count = #{productCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

465
hiver-modules/hiver-mall/src/main/resources/mapper/SaleMapper.xml

@ -0,0 +1,465 @@
<?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="cc.hiver.mall.dao.mapper.SaleMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.Sale">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
<result column="total_amount" jdbcType="DECIMAL" property="totalAmount" />
<result column="discount" jdbcType="DECIMAL" property="discount" />
<result column="discount_amount" jdbcType="DECIMAL" property="discountAmount" />
<result column="real_amount" jdbcType="DECIMAL" property="realAmount" />
<result column="already_earn" jdbcType="DECIMAL" property="alreadyEarn" />
<result column="no_earn" jdbcType="DECIMAL" property="noEarn" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="transport_type" jdbcType="VARCHAR" property="transportType" />
<result column="share_address" jdbcType="VARCHAR" property="shareAddress" />
<result column="receive_address" jdbcType="VARCHAR" property="receiveAddress" />
<result column="province" jdbcType="VARCHAR" property="province" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="area" jdbcType="VARCHAR" property="area" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, create_by, create_time, del_flag, update_by, update_time, user_id, shop_id, total_amount,
discount, discount_amount, real_amount, already_earn, no_earn, status, transport_type,
share_address, receive_address, province, city, area
</sql>
<select id="selectByExample" parameterType="cc.hiver.mall.entity.SaleExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_sale
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sale
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_sale
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.SaleExample">
delete from t_sale
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="cc.hiver.mall.entity.Sale">
insert into t_sale (id, create_by, create_time,
del_flag, update_by, update_time,
user_id, shop_id, total_amount,
discount, discount_amount, real_amount,
already_earn, no_earn, status,
transport_type, share_address, receive_address,
province, city, area
)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{userId,jdbcType=BIGINT}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
#{discount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, #{realAmount,jdbcType=DECIMAL},
#{alreadyEarn,jdbcType=DECIMAL}, #{noEarn,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR},
#{transportType,jdbcType=VARCHAR}, #{shareAddress,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR},
#{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Sale">
insert into t_sale
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="delFlag != null">
del_flag,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="userId != null">
user_id,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="totalAmount != null">
total_amount,
</if>
<if test="discount != null">
discount,
</if>
<if test="discountAmount != null">
discount_amount,
</if>
<if test="realAmount != null">
real_amount,
</if>
<if test="alreadyEarn != null">
already_earn,
</if>
<if test="noEarn != null">
no_earn,
</if>
<if test="status != null">
status,
</if>
<if test="transportType != null">
transport_type,
</if>
<if test="shareAddress != null">
share_address,
</if>
<if test="receiveAddress != null">
receive_address,
</if>
<if test="province != null">
province,
</if>
<if test="city != null">
city,
</if>
<if test="area != null">
area,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
</if>
<if test="totalAmount != null">
#{totalAmount,jdbcType=DECIMAL},
</if>
<if test="discount != null">
#{discount,jdbcType=DECIMAL},
</if>
<if test="discountAmount != null">
#{discountAmount,jdbcType=DECIMAL},
</if>
<if test="realAmount != null">
#{realAmount,jdbcType=DECIMAL},
</if>
<if test="alreadyEarn != null">
#{alreadyEarn,jdbcType=DECIMAL},
</if>
<if test="noEarn != null">
#{noEarn,jdbcType=DECIMAL},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="transportType != null">
#{transportType,jdbcType=VARCHAR},
</if>
<if test="shareAddress != null">
#{shareAddress,jdbcType=VARCHAR},
</if>
<if test="receiveAddress != null">
#{receiveAddress,jdbcType=VARCHAR},
</if>
<if test="province != null">
#{province,jdbcType=VARCHAR},
</if>
<if test="city != null">
#{city,jdbcType=VARCHAR},
</if>
<if test="area != null">
#{area,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="cc.hiver.mall.entity.SaleExample" resultType="java.lang.Long">
select count(*) from t_sale
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_sale
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.delFlag != null">
del_flag = #{record.delFlag,jdbcType=INTEGER},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if test="record.shopId != null">
shop_id = #{record.shopId,jdbcType=VARCHAR},
</if>
<if test="record.totalAmount != null">
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
</if>
<if test="record.discount != null">
discount = #{record.discount,jdbcType=DECIMAL},
</if>
<if test="record.discountAmount != null">
discount_amount = #{record.discountAmount,jdbcType=DECIMAL},
</if>
<if test="record.realAmount != null">
real_amount = #{record.realAmount,jdbcType=DECIMAL},
</if>
<if test="record.alreadyEarn != null">
already_earn = #{record.alreadyEarn,jdbcType=DECIMAL},
</if>
<if test="record.noEarn != null">
no_earn = #{record.noEarn,jdbcType=DECIMAL},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.transportType != null">
transport_type = #{record.transportType,jdbcType=VARCHAR},
</if>
<if test="record.shareAddress != null">
share_address = #{record.shareAddress,jdbcType=VARCHAR},
</if>
<if test="record.receiveAddress != null">
receive_address = #{record.receiveAddress,jdbcType=VARCHAR},
</if>
<if test="record.province != null">
province = #{record.province,jdbcType=VARCHAR},
</if>
<if test="record.city != null">
city = #{record.city,jdbcType=VARCHAR},
</if>
<if test="record.area != null">
area = #{record.area,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_sale
set id = #{record.id,jdbcType=BIGINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
user_id = #{record.userId,jdbcType=BIGINT},
shop_id = #{record.shopId,jdbcType=VARCHAR},
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
discount = #{record.discount,jdbcType=DECIMAL},
discount_amount = #{record.discountAmount,jdbcType=DECIMAL},
real_amount = #{record.realAmount,jdbcType=DECIMAL},
already_earn = #{record.alreadyEarn,jdbcType=DECIMAL},
no_earn = #{record.noEarn,jdbcType=DECIMAL},
status = #{record.status,jdbcType=VARCHAR},
transport_type = #{record.transportType,jdbcType=VARCHAR},
share_address = #{record.shareAddress,jdbcType=VARCHAR},
receive_address = #{record.receiveAddress,jdbcType=VARCHAR},
province = #{record.province,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
area = #{record.area,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.entity.Sale">
update t_sale
<set>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="totalAmount != null">
total_amount = #{totalAmount,jdbcType=DECIMAL},
</if>
<if test="discount != null">
discount = #{discount,jdbcType=DECIMAL},
</if>
<if test="discountAmount != null">
discount_amount = #{discountAmount,jdbcType=DECIMAL},
</if>
<if test="realAmount != null">
real_amount = #{realAmount,jdbcType=DECIMAL},
</if>
<if test="alreadyEarn != null">
already_earn = #{alreadyEarn,jdbcType=DECIMAL},
</if>
<if test="noEarn != null">
no_earn = #{noEarn,jdbcType=DECIMAL},
</if>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
<if test="transportType != null">
transport_type = #{transportType,jdbcType=VARCHAR},
</if>
<if test="shareAddress != null">
share_address = #{shareAddress,jdbcType=VARCHAR},
</if>
<if test="receiveAddress != null">
receive_address = #{receiveAddress,jdbcType=VARCHAR},
</if>
<if test="province != null">
province = #{province,jdbcType=VARCHAR},
</if>
<if test="city != null">
city = #{city,jdbcType=VARCHAR},
</if>
<if test="area != null">
area = #{area,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Sale">
update t_sale
set create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
user_id = #{userId,jdbcType=BIGINT},
shop_id = #{shopId,jdbcType=VARCHAR},
total_amount = #{totalAmount,jdbcType=DECIMAL},
discount = #{discount,jdbcType=DECIMAL},
discount_amount = #{discountAmount,jdbcType=DECIMAL},
real_amount = #{realAmount,jdbcType=DECIMAL},
already_earn = #{alreadyEarn,jdbcType=DECIMAL},
no_earn = #{noEarn,jdbcType=DECIMAL},
status = #{status,jdbcType=VARCHAR},
transport_type = #{transportType,jdbcType=VARCHAR},
share_address = #{shareAddress,jdbcType=VARCHAR},
receive_address = #{receiveAddress,jdbcType=VARCHAR},
province = #{province,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
area = #{area,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
Loading…
Cancel
Save