Browse Source

修改bigint为字符串类型

Signed-off-by: fengb <fengbin1989@aliyun.com>
cangku
fengb 3 years ago
parent
commit
ff28425eec
  1. 7
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductAttributeController.java
  2. 7
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductAttributeValueController.java
  3. 11
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductCategoryController.java
  4. 6
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductController.java
  5. 8
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/PurchaseController.java
  6. 10
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/StockController.java
  7. 31
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/CustomerMapper.java
  8. 5
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductAttributeMapper.java
  9. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductAttributeValueMapper.java
  10. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductCategoryMapper.java
  11. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductMapper.java
  12. 7
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/PurchaseDetailMapper.java
  13. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/PurchaseMapper.java
  14. 5
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/SaleDetailMapper.java
  15. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/SaleMapper.java
  16. 4
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/StockLogMapper.java
  17. 6
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/StockMapper.java
  18. 175
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Customer.java
  19. 1080
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/CustomerExample.java
  20. 18
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Product.java
  21. 20
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttribute.java
  22. 60
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttributeExample.java
  23. 20
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttributeValue.java
  24. 60
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttributeValueExample.java
  25. 18
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductCategory.java
  26. 60
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductCategoryExample.java
  27. 60
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductExample.java
  28. 14
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Purchase.java
  29. 32
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseDetail.java
  30. 120
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseDetailExample.java
  31. 30
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseExample.java
  32. 16
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Sale.java
  33. 28
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleDetail.java
  34. 120
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleDetailExample.java
  35. 60
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/SaleExample.java
  36. 24
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Stock.java
  37. 90
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/StockExample.java
  38. 18
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/StockLog.java
  39. 60
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/StockLogExample.java
  40. 2
      hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/serviceimpl/mybatis/StockServiceImpl.java
  41. 338
      hiver-modules/hiver-mall/src/main/resources/mapper/CustomerMapper.xml
  42. 36
      hiver-modules/hiver-mall/src/main/resources/mapper/ProductAttributeMapper.xml
  43. 36
      hiver-modules/hiver-mall/src/main/resources/mapper/ProductAttributeValueMapper.xml
  44. 36
      hiver-modules/hiver-mall/src/main/resources/mapper/ProductCategoryMapper.xml
  45. 36
      hiver-modules/hiver-mall/src/main/resources/mapper/ProductMapper.xml
  46. 62
      hiver-modules/hiver-mall/src/main/resources/mapper/PurchaseDetailMapper.xml
  47. 22
      hiver-modules/hiver-mall/src/main/resources/mapper/PurchaseMapper.xml
  48. 62
      hiver-modules/hiver-mall/src/main/resources/mapper/SaleDetailMapper.xml
  49. 36
      hiver-modules/hiver-mall/src/main/resources/mapper/SaleMapper.xml
  50. 36
      hiver-modules/hiver-mall/src/main/resources/mapper/StockLogMapper.xml
  51. 50
      hiver-modules/hiver-mall/src/main/resources/mapper/StockMapper.xml

7
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductAttributeController.java

@ -24,12 +24,13 @@ import java.util.List;
@RequestMapping(value = "/hiver/app/productAttribute/")
@Transactional
public class ProductAttributeController {
@Autowired
private ProductAttributeService productAttributeService;
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(value = "新增货品属性")
public Result addSpu(ProductAttribute productAttribute) {
public Result save(ProductAttribute productAttribute) {
boolean result = productAttributeService.save(productAttribute);
if(result) {
return ResultUtil.success("添加成功");
@ -40,7 +41,7 @@ public class ProductAttributeController {
@RequestMapping(value = "/edit", method = RequestMethod.POST)
@ApiOperation(value = "根据id修改货品属性")
public Result updateSpuById(ProductAttribute productAttribute) {
public Result edit(ProductAttribute productAttribute) {
boolean result = productAttributeService.updateById(productAttribute);
if(result) {
return ResultUtil.success("修改成功");
@ -49,7 +50,7 @@ public class ProductAttributeController {
}
}
@RequestMapping(value = "/delByIds", method = RequestMethod.POST)
@RequestMapping(value = "/delById", method = RequestMethod.POST)
@ApiOperation(value = "根据id删除货品属性")
public Result delete(ProductAttribute productAttribute) {
boolean result = productAttributeService.removeById(productAttribute);

7
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductAttributeValueController.java

@ -22,12 +22,13 @@ import java.util.List;
@RequestMapping(value = "/hiver/app/productAttributeValue/")
@Transactional
public class ProductAttributeValueController {
@Autowired
private ProductAttributeValueService productAttributeValueService;
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(value = "新增货品属性值")
public Result addSpu(ProductAttributeValue productAttributeValue) {
public Result save(ProductAttributeValue productAttributeValue) {
boolean result = productAttributeValueService.save(productAttributeValue);
if(result) {
return ResultUtil.success("添加成功");
@ -38,7 +39,7 @@ public class ProductAttributeValueController {
@RequestMapping(value = "/edit", method = RequestMethod.POST)
@ApiOperation(value = "根据id修改货品属性值")
public Result updateSpuById(ProductAttributeValue productAttributeValue) {
public Result edit(ProductAttributeValue productAttributeValue) {
boolean result = productAttributeValueService.updateById(productAttributeValue);
if(result) {
return ResultUtil.success("修改成功");
@ -47,7 +48,7 @@ public class ProductAttributeValueController {
}
}
@RequestMapping(value = "/delByIds", method = RequestMethod.POST)
@RequestMapping(value = "/delById", method = RequestMethod.POST)
@ApiOperation(value = "根据id删除货品属性值")
public Result delete(ProductAttributeValue productAttributeValue) {
boolean result = productAttributeValueService.removeById(productAttributeValue);

11
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductCategoryController.java

@ -24,14 +24,15 @@ import java.util.List;
@RequestMapping(value = "/hiver/app/productCategory/")
@Transactional
public class ProductCategoryController {
@Autowired
private ProductCategoryService productCategoryService;
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(value = "新增货品类别")
public Result addSpu(ProductCategory productCategory) {
public Result save(ProductCategory productCategory) {
boolean result = productCategoryService.save(productCategory);
if(result) {
if (result) {
return ResultUtil.success("添加成功");
} else {
return ResultUtil.error("添加失败");
@ -42,18 +43,18 @@ public class ProductCategoryController {
@ApiOperation(value = "根据id修改货品类别")
public Result updateSpuById(ProductCategory productCategory) {
boolean result = productCategoryService.updateById(productCategory);
if(result) {
if (result) {
return ResultUtil.success("修改成功");
} else {
return ResultUtil.error("修改失败");
}
}
@RequestMapping(value = "/delByIds", method = RequestMethod.POST)
@RequestMapping(value = "/delById", method = RequestMethod.POST)
@ApiOperation(value = "根据id删除货品类别")
public Result delete(ProductCategory productCategory) {
boolean result = productCategoryService.removeById(productCategory);
if(result) {
if (result) {
return ResultUtil.success("删除成功");
} else {
return ResultUtil.error("删除失败");

6
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ProductController.java

@ -35,7 +35,7 @@ public class ProductController {
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(value = "新增货品")
public Result addSpu(Product product) {
public Result save(Product product) {
boolean result = productService.save(product);
if(result) {
return ResultUtil.success("添加成功");
@ -46,7 +46,7 @@ public class ProductController {
@RequestMapping(value = "/edit", method = RequestMethod.POST)
@ApiOperation(value = "根据货品id修改货品")
public Result updateSpuById(Product product) {
public Result edit(Product product) {
boolean result = productService.updateById(product);
if(result) {
return ResultUtil.success("修改成功");
@ -55,7 +55,7 @@ public class ProductController {
}
}
@RequestMapping(value = "/delByIds", method = RequestMethod.POST)
@RequestMapping(value = "/delById", method = RequestMethod.POST)
@ApiOperation(value = "根据id删除货品")
public Result delete(Product product) {
boolean result = productService.removeById(product);

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

@ -1,6 +1,5 @@
package cc.hiver.mall.controller;
import cc.hiver.core.common.utils.ObjectUtil;
import cc.hiver.core.common.utils.ResultUtil;
import cc.hiver.core.common.utils.StringUtils;
import cc.hiver.core.common.vo.Result;
@ -9,7 +8,6 @@ import cc.hiver.mall.entity.PurchaseDetail;
import cc.hiver.mall.pojo.vo.PurchaseVo;
import cc.hiver.mall.service.mybatis.PurchaseDetailService;
import cc.hiver.mall.service.mybatis.PurchaseService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -38,7 +36,7 @@ public class PurchaseController {
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(value = "新增采购单")
public Result addSpu(PurchaseVo purchaseVo) {
public Result save(PurchaseVo purchaseVo) {
Purchase purchase = purchaseVo.getPurchase();
List<PurchaseDetail> purchaseDetails = purchaseVo.getPurchaseDetails();
boolean result = purchaseService.save(purchase);
@ -52,7 +50,7 @@ public class PurchaseController {
@RequestMapping(value = "/edit", method = RequestMethod.POST)
@ApiOperation(value = "根据id修改货品属性")
public Result updateSpuById(PurchaseVo purchaseVo) {
public Result edit(PurchaseVo purchaseVo) {
Purchase purchase = purchaseVo.getPurchase();
List<PurchaseDetail> purchaseDetails = purchaseVo.getPurchaseDetails();
boolean result = purchaseService.updateById(purchase);
@ -67,7 +65,7 @@ public class PurchaseController {
return ResultUtil.error("修改失败");
}
@RequestMapping(value = "/delByIds", method = RequestMethod.POST)
@RequestMapping(value = "/delById", method = RequestMethod.POST)
@ApiOperation(value = "根据id删除采购单")
public Result delete(Purchase purchase) {
boolean result = purchaseService.removeById(purchase);

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

@ -1,30 +1,20 @@
package cc.hiver.mall.controller;
import cc.hiver.core.common.utils.ResultUtil;
import cc.hiver.core.common.utils.StringUtils;
import cc.hiver.core.common.vo.Result;
import cc.hiver.mall.entity.Purchase;
import cc.hiver.mall.entity.PurchaseDetail;
import cc.hiver.mall.entity.Stock;
import cc.hiver.mall.pojo.vo.PurchaseVo;
import cc.hiver.mall.pojo.vo.StockVo;
import cc.hiver.mall.service.mybatis.PurchaseDetailService;
import cc.hiver.mall.service.mybatis.PurchaseService;
import cc.hiver.mall.service.mybatis.StockLogService;
import cc.hiver.mall.service.mybatis.StockService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Slf4j
@RestController
@Api(tags = "库存接口")

31
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/CustomerMapper.java

@ -0,0 +1,31 @@
package cc.hiver.mall.dao.mapper;
import cc.hiver.mall.entity.Customer;
import cc.hiver.mall.entity.CustomerExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface CustomerMapper {
long countByExample(CustomerExample example);
int deleteByExample(CustomerExample example);
int deleteByPrimaryKey(String id);
int insert(Customer record);
int insertSelective(Customer record);
List<Customer> selectByExample(CustomerExample example);
Customer selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example);
int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example);
int updateByPrimaryKeySelective(Customer record);
int updateByPrimaryKey(Customer record);
}

5
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductAttributeMapper.java

@ -1,6 +1,5 @@
package cc.hiver.mall.dao.mapper;
import cc.hiver.mall.entity.GoodsAttribute;
import cc.hiver.mall.entity.ProductAttribute;
import cc.hiver.mall.entity.ProductAttributeExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,7 +13,7 @@ public interface ProductAttributeMapper extends BaseMapper<ProductAttribute> {
int deleteByExample(ProductAttributeExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(ProductAttribute record);
@ -22,7 +21,7 @@ public interface ProductAttributeMapper extends BaseMapper<ProductAttribute> {
List<ProductAttribute> selectByExample(ProductAttributeExample example);
ProductAttribute selectByPrimaryKey(Long id);
ProductAttribute selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") ProductAttribute record, @Param("example") ProductAttributeExample example);

4
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductAttributeValueMapper.java

@ -13,7 +13,7 @@ public interface ProductAttributeValueMapper extends BaseMapper<ProductAttribute
int deleteByExample(ProductAttributeValueExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(ProductAttributeValue record);
@ -21,7 +21,7 @@ public interface ProductAttributeValueMapper extends BaseMapper<ProductAttribute
List<ProductAttributeValue> selectByExample(ProductAttributeValueExample example);
ProductAttributeValue selectByPrimaryKey(Long id);
ProductAttributeValue selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") ProductAttributeValue record, @Param("example") ProductAttributeValueExample example);

4
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductCategoryMapper.java

@ -13,7 +13,7 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
int deleteByExample(ProductCategoryExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(ProductCategory record);
@ -21,7 +21,7 @@ public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
List<ProductCategory> selectByExample(ProductCategoryExample example);
ProductCategory selectByPrimaryKey(Long id);
ProductCategory selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") ProductCategory record, @Param("example") ProductCategoryExample example);

4
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/ProductMapper.java

@ -13,7 +13,7 @@ public interface ProductMapper extends BaseMapper<Product> {
int deleteByExample(ProductExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(Product record);
@ -21,7 +21,7 @@ public interface ProductMapper extends BaseMapper<Product> {
List<Product> selectByExample(ProductExample example);
Product selectByPrimaryKey(Long id);
Product selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example);

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

@ -4,15 +4,16 @@ 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);
int deleteByExample(PurchaseDetailExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(PurchaseDetail record);
@ -20,7 +21,7 @@ public interface PurchaseDetailMapper extends BaseMapper<PurchaseDetail> {
List<PurchaseDetail> selectByExample(PurchaseDetailExample example);
PurchaseDetail selectByPrimaryKey(Long id);
PurchaseDetail selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") PurchaseDetail record, @Param("example") PurchaseDetailExample example);

4
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/PurchaseMapper.java

@ -13,7 +13,7 @@ public interface PurchaseMapper extends BaseMapper<Purchase> {
int deleteByExample(PurchaseExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(Purchase record);
@ -21,7 +21,7 @@ public interface PurchaseMapper extends BaseMapper<Purchase> {
List<Purchase> selectByExample(PurchaseExample example);
Purchase selectByPrimaryKey(Long id);
Purchase selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") Purchase record, @Param("example") PurchaseExample example);

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

@ -1,6 +1,5 @@
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;
@ -14,7 +13,7 @@ public interface SaleDetailMapper extends BaseMapper<SaleDetail> {
int deleteByExample(SaleDetailExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(SaleDetail record);
@ -22,7 +21,7 @@ public interface SaleDetailMapper extends BaseMapper<SaleDetail> {
List<SaleDetail> selectByExample(SaleDetailExample example);
SaleDetail selectByPrimaryKey(Long id);
SaleDetail selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") SaleDetail record, @Param("example") SaleDetailExample example);

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

@ -13,7 +13,7 @@ public interface SaleMapper extends BaseMapper<Sale> {
int deleteByExample(SaleExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(Sale record);
@ -21,7 +21,7 @@ public interface SaleMapper extends BaseMapper<Sale> {
List<Sale> selectByExample(SaleExample example);
Sale selectByPrimaryKey(Long id);
Sale selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") Sale record, @Param("example") SaleExample example);

4
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/StockLogMapper.java

@ -13,7 +13,7 @@ public interface StockLogMapper extends BaseMapper<StockLog> {
int deleteByExample(StockLogExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(StockLog record);
@ -21,7 +21,7 @@ public interface StockLogMapper extends BaseMapper<StockLog> {
List<StockLog> selectByExample(StockLogExample example);
StockLog selectByPrimaryKey(Long id);
StockLog selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") StockLog record, @Param("example") StockLogExample example);

6
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/dao/mapper/StockMapper.java

@ -1,11 +1,13 @@
package cc.hiver.mall.dao.mapper;
import cc.hiver.mall.entity.Goods;
import cc.hiver.mall.entity.Stock;
import cc.hiver.mall.entity.StockExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;
@Repository
public interface StockMapper extends BaseMapper<Stock> {
@ -13,7 +15,7 @@ public interface StockMapper extends BaseMapper<Stock> {
int deleteByExample(StockExample example);
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(String id);
int insert(Stock record);
@ -21,7 +23,7 @@ public interface StockMapper extends BaseMapper<Stock> {
List<Stock> selectByExample(StockExample example);
Stock selectByPrimaryKey(Long id);
Stock selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") Stock record, @Param("example") StockExample example);

175
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Customer.java

@ -0,0 +1,175 @@
package cc.hiver.mall.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "客户表")
@TableName(value = "t_customer", autoResultMap = true)
public class Customer implements Serializable {
private String id;
private String createBy;
private Date createTime;
private Integer delFlag;
private String updateBy;
private Date updateTime;
@ApiModelProperty(value = "姓名")
private String name;
@ApiModelProperty(value = "手机号")
private String phone;
@ApiModelProperty(value = "地址")
private String address;
@ApiModelProperty(value = "密码")
private String password;
@ApiModelProperty(value = "省")
private String province;
@ApiModelProperty(value = "市")
private String city;
@ApiModelProperty(value = "县区")
private String area;
private static final long serialVersionUID = 1L;
public String getId() {
return id;
}
public void setId(String 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 String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
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(", name=").append(name);
sb.append(", phone=").append(phone);
sb.append(", address=").append(address);
sb.append(", password=").append(password);
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();
}
}

1080
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/CustomerExample.java

File diff suppressed because it is too large

18
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Product.java

@ -1,18 +1,18 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "货品表")
@Table(name = "t_product")
@ApiModel(value = "商品表")
@TableName(value = "t_product", autoResultMap = true)
public class Product implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -34,7 +34,7 @@ public class Product implements Serializable {
private String shopId;
@ApiModelProperty(value = "商品分类")
private Long categoryId;
private String categoryId;
@ApiModelProperty(value = "商品属性列表")
private String attributeList;
@ -74,11 +74,11 @@ public class Product implements Serializable {
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -146,11 +146,11 @@ public class Product implements Serializable {
this.shopId = shopId;
}
public Long getCategoryId() {
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}

20
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttribute.java

@ -1,17 +1,17 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "货品属性")
@Table(name = "t_product_attribute ")
@TableName(value = "t_product_attribute ", autoResultMap = true)
@ApiModel(value = "商品属性")
@TableName(value = "t_product_attribute", autoResultMap = true)
public class ProductAttribute implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -24,18 +24,18 @@ public class ProductAttribute implements Serializable {
private Date updateTime;
@ApiModelProperty(value = "商品类别ID")
private Long categoryId;
private String categoryId;
@ApiModelProperty(value = "属性名称")
private String attributeName;
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -79,11 +79,11 @@ public class ProductAttribute implements Serializable {
this.updateTime = updateTime;
}
public Long getCategoryId() {
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}

60
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttributeExample.java

@ -115,52 +115,62 @@ public class ProductAttributeExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -495,52 +505,62 @@ public class ProductAttributeExample {
return (Criteria) this;
}
public Criteria andCategoryIdEqualTo(Long value) {
public Criteria andCategoryIdEqualTo(String value) {
addCriterion("category_id =", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotEqualTo(Long value) {
public Criteria andCategoryIdNotEqualTo(String value) {
addCriterion("category_id <>", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThan(Long value) {
public Criteria andCategoryIdGreaterThan(String value) {
addCriterion("category_id >", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) {
public Criteria andCategoryIdGreaterThanOrEqualTo(String value) {
addCriterion("category_id >=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThan(Long value) {
public Criteria andCategoryIdLessThan(String value) {
addCriterion("category_id <", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThanOrEqualTo(Long value) {
public Criteria andCategoryIdLessThanOrEqualTo(String value) {
addCriterion("category_id <=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<Long> values) {
public Criteria andCategoryIdLike(String value) {
addCriterion("category_id like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotLike(String value) {
addCriterion("category_id not like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<String> values) {
addCriterion("category_id in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotIn(List<Long> values) {
public Criteria andCategoryIdNotIn(List<String> values) {
addCriterion("category_id not in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdBetween(Long value1, Long value2) {
public Criteria andCategoryIdBetween(String value1, String value2) {
addCriterion("category_id between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotBetween(Long value1, Long value2) {
public Criteria andCategoryIdNotBetween(String value1, String value2) {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}

20
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttributeValue.java

@ -1,17 +1,17 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "货品规格表")
@Table(name = "t_product_attribute_value ")
@TableName(value = "t_product_attribute_value ", autoResultMap = true)
@ApiModel(value = "商品属性值表")
@TableName(value = "t_product_attribute_value", autoResultMap = true)
public class ProductAttributeValue implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -24,18 +24,18 @@ public class ProductAttributeValue implements Serializable {
private Date updateTime;
@ApiModelProperty(value = "商品属性ID")
private Long attributeId;
private String attributeId;
@ApiModelProperty(value = "属性值")
private String value;
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -79,11 +79,11 @@ public class ProductAttributeValue implements Serializable {
this.updateTime = updateTime;
}
public Long getAttributeId() {
public String getAttributeId() {
return attributeId;
}
public void setAttributeId(Long attributeId) {
public void setAttributeId(String attributeId) {
this.attributeId = attributeId;
}

60
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductAttributeValueExample.java

@ -115,52 +115,62 @@ public class ProductAttributeValueExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -495,52 +505,62 @@ public class ProductAttributeValueExample {
return (Criteria) this;
}
public Criteria andAttributeIdEqualTo(Long value) {
public Criteria andAttributeIdEqualTo(String value) {
addCriterion("attribute_id =", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdNotEqualTo(Long value) {
public Criteria andAttributeIdNotEqualTo(String value) {
addCriterion("attribute_id <>", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdGreaterThan(Long value) {
public Criteria andAttributeIdGreaterThan(String value) {
addCriterion("attribute_id >", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdGreaterThanOrEqualTo(Long value) {
public Criteria andAttributeIdGreaterThanOrEqualTo(String value) {
addCriterion("attribute_id >=", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdLessThan(Long value) {
public Criteria andAttributeIdLessThan(String value) {
addCriterion("attribute_id <", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdLessThanOrEqualTo(Long value) {
public Criteria andAttributeIdLessThanOrEqualTo(String value) {
addCriterion("attribute_id <=", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdIn(List<Long> values) {
public Criteria andAttributeIdLike(String value) {
addCriterion("attribute_id like", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdNotLike(String value) {
addCriterion("attribute_id not like", value, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdIn(List<String> values) {
addCriterion("attribute_id in", values, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdNotIn(List<Long> values) {
public Criteria andAttributeIdNotIn(List<String> values) {
addCriterion("attribute_id not in", values, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdBetween(Long value1, Long value2) {
public Criteria andAttributeIdBetween(String value1, String value2) {
addCriterion("attribute_id between", value1, value2, "attributeId");
return (Criteria) this;
}
public Criteria andAttributeIdNotBetween(Long value1, Long value2) {
public Criteria andAttributeIdNotBetween(String value1, String value2) {
addCriterion("attribute_id not between", value1, value2, "attributeId");
return (Criteria) this;
}

18
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductCategory.java

@ -1,17 +1,17 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "货品分类表")
@Table(name = "t_product_category")
@ApiModel(value = "商品类别表")
@TableName(value = "t_product_category", autoResultMap = true)
public class ProductCategory implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -27,15 +27,15 @@ public class ProductCategory implements Serializable {
private String categoryName;
@ApiModelProperty(value = "父id")
private Long parentId;
private String parentId;
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -87,11 +87,11 @@ public class ProductCategory implements Serializable {
this.categoryName = categoryName;
}
public Long getParentId() {
public String getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
public void setParentId(String parentId) {
this.parentId = parentId;
}

60
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductCategoryExample.java

@ -115,52 +115,62 @@ public class ProductCategoryExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -565,52 +575,62 @@ public class ProductCategoryExample {
return (Criteria) this;
}
public Criteria andParentIdEqualTo(Long value) {
public Criteria andParentIdEqualTo(String value) {
addCriterion("parent_id =", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotEqualTo(Long value) {
public Criteria andParentIdNotEqualTo(String value) {
addCriterion("parent_id <>", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThan(Long value) {
public Criteria andParentIdGreaterThan(String value) {
addCriterion("parent_id >", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThanOrEqualTo(Long value) {
public Criteria andParentIdGreaterThanOrEqualTo(String value) {
addCriterion("parent_id >=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThan(Long value) {
public Criteria andParentIdLessThan(String value) {
addCriterion("parent_id <", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThanOrEqualTo(Long value) {
public Criteria andParentIdLessThanOrEqualTo(String value) {
addCriterion("parent_id <=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdIn(List<Long> values) {
public Criteria andParentIdLike(String value) {
addCriterion("parent_id like", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotLike(String value) {
addCriterion("parent_id not like", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdIn(List<String> values) {
addCriterion("parent_id in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotIn(List<Long> values) {
public Criteria andParentIdNotIn(List<String> values) {
addCriterion("parent_id not in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdBetween(Long value1, Long value2) {
public Criteria andParentIdBetween(String value1, String value2) {
addCriterion("parent_id between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotBetween(Long value1, Long value2) {
public Criteria andParentIdNotBetween(String value1, String value2) {
addCriterion("parent_id not between", value1, value2, "parentId");
return (Criteria) this;
}

60
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/ProductExample.java

@ -116,52 +116,62 @@ public class ProductExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -706,52 +716,62 @@ public class ProductExample {
return (Criteria) this;
}
public Criteria andCategoryIdEqualTo(Long value) {
public Criteria andCategoryIdEqualTo(String value) {
addCriterion("category_id =", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotEqualTo(Long value) {
public Criteria andCategoryIdNotEqualTo(String value) {
addCriterion("category_id <>", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThan(Long value) {
public Criteria andCategoryIdGreaterThan(String value) {
addCriterion("category_id >", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) {
public Criteria andCategoryIdGreaterThanOrEqualTo(String value) {
addCriterion("category_id >=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThan(Long value) {
public Criteria andCategoryIdLessThan(String value) {
addCriterion("category_id <", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThanOrEqualTo(Long value) {
public Criteria andCategoryIdLessThanOrEqualTo(String value) {
addCriterion("category_id <=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<Long> values) {
public Criteria andCategoryIdLike(String value) {
addCriterion("category_id like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotLike(String value) {
addCriterion("category_id not like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<String> values) {
addCriterion("category_id in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotIn(List<Long> values) {
public Criteria andCategoryIdNotIn(List<String> values) {
addCriterion("category_id not in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdBetween(Long value1, Long value2) {
public Criteria andCategoryIdBetween(String value1, String value2) {
addCriterion("category_id between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotBetween(Long value1, Long value2) {
public Criteria andCategoryIdNotBetween(String value1, String value2) {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}

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

@ -1,18 +1,18 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "采购入库单主表")
@Table(name = "t_purchase ")
@TableName(value = "t_purchase ", autoResultMap = true)
@ApiModel(value = "采购单主表")
@TableName(value = "t_purchase", autoResultMap = true)
public class Purchase implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -44,11 +44,11 @@ public class Purchase implements Serializable {
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}

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

@ -1,18 +1,18 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "采购入库单明细表")
@Table(name = "t_purchase_detail ")
@TableName(value = "t_purchase_detail ", autoResultMap = true)
@ApiModel(value = "采购单明细表")
@TableName(value = "t_purchase_detail", autoResultMap = true)
public class PurchaseDetail implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -25,10 +25,10 @@ public class PurchaseDetail implements Serializable {
private Date updateTime;
@ApiModelProperty(value = "采购单ID")
private Long purchaseId;
private String purchaseId;
@ApiModelProperty(value = "商品ID")
private Long productId;
private String productId;
@ApiModelProperty(value = "商品名称")
private String productName;
@ -40,7 +40,7 @@ public class PurchaseDetail implements Serializable {
private String shopId;
@ApiModelProperty(value = "商品分类")
private Long categoryId;
private String categoryId;
@ApiModelProperty(value = "商品属性列表")
private String attributeList;
@ -83,11 +83,11 @@ public class PurchaseDetail implements Serializable {
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -131,19 +131,19 @@ public class PurchaseDetail implements Serializable {
this.updateTime = updateTime;
}
public Long getPurchaseId() {
public String getPurchaseId() {
return purchaseId;
}
public void setPurchaseId(Long purchaseId) {
public void setPurchaseId(String purchaseId) {
this.purchaseId = purchaseId;
}
public Long getProductId() {
public String getProductId() {
return productId;
}
public void setProductId(Long productId) {
public void setProductId(String productId) {
this.productId = productId;
}
@ -171,11 +171,11 @@ public class PurchaseDetail implements Serializable {
this.shopId = shopId;
}
public Long getCategoryId() {
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}

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

@ -116,52 +116,62 @@ public class PurchaseDetailExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -496,52 +506,62 @@ public class PurchaseDetailExample {
return (Criteria) this;
}
public Criteria andPurchaseIdEqualTo(Long value) {
public Criteria andPurchaseIdEqualTo(String value) {
addCriterion("purchase_id =", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotEqualTo(Long value) {
public Criteria andPurchaseIdNotEqualTo(String value) {
addCriterion("purchase_id <>", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdGreaterThan(Long value) {
public Criteria andPurchaseIdGreaterThan(String value) {
addCriterion("purchase_id >", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdGreaterThanOrEqualTo(Long value) {
public Criteria andPurchaseIdGreaterThanOrEqualTo(String value) {
addCriterion("purchase_id >=", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdLessThan(Long value) {
public Criteria andPurchaseIdLessThan(String value) {
addCriterion("purchase_id <", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdLessThanOrEqualTo(Long value) {
public Criteria andPurchaseIdLessThanOrEqualTo(String value) {
addCriterion("purchase_id <=", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdIn(List<Long> values) {
public Criteria andPurchaseIdLike(String value) {
addCriterion("purchase_id like", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotLike(String value) {
addCriterion("purchase_id not like", value, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdIn(List<String> values) {
addCriterion("purchase_id in", values, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotIn(List<Long> values) {
public Criteria andPurchaseIdNotIn(List<String> values) {
addCriterion("purchase_id not in", values, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdBetween(Long value1, Long value2) {
public Criteria andPurchaseIdBetween(String value1, String value2) {
addCriterion("purchase_id between", value1, value2, "purchaseId");
return (Criteria) this;
}
public Criteria andPurchaseIdNotBetween(Long value1, Long value2) {
public Criteria andPurchaseIdNotBetween(String value1, String value2) {
addCriterion("purchase_id not between", value1, value2, "purchaseId");
return (Criteria) this;
}
@ -556,52 +576,62 @@ public class PurchaseDetailExample {
return (Criteria) this;
}
public Criteria andProductIdEqualTo(Long value) {
public Criteria andProductIdEqualTo(String value) {
addCriterion("product_id =", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotEqualTo(Long value) {
public Criteria andProductIdNotEqualTo(String value) {
addCriterion("product_id <>", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThan(Long value) {
public Criteria andProductIdGreaterThan(String value) {
addCriterion("product_id >", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThanOrEqualTo(Long value) {
public Criteria andProductIdGreaterThanOrEqualTo(String value) {
addCriterion("product_id >=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThan(Long value) {
public Criteria andProductIdLessThan(String value) {
addCriterion("product_id <", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThanOrEqualTo(Long value) {
public Criteria andProductIdLessThanOrEqualTo(String value) {
addCriterion("product_id <=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<Long> values) {
public Criteria andProductIdLike(String value) {
addCriterion("product_id like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotLike(String value) {
addCriterion("product_id not like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<String> values) {
addCriterion("product_id in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotIn(List<Long> values) {
public Criteria andProductIdNotIn(List<String> values) {
addCriterion("product_id not in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdBetween(Long value1, Long value2) {
public Criteria andProductIdBetween(String value1, String value2) {
addCriterion("product_id between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotBetween(Long value1, Long value2) {
public Criteria andProductIdNotBetween(String value1, String value2) {
addCriterion("product_id not between", value1, value2, "productId");
return (Criteria) this;
}
@ -826,52 +856,62 @@ public class PurchaseDetailExample {
return (Criteria) this;
}
public Criteria andCategoryIdEqualTo(Long value) {
public Criteria andCategoryIdEqualTo(String value) {
addCriterion("category_id =", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotEqualTo(Long value) {
public Criteria andCategoryIdNotEqualTo(String value) {
addCriterion("category_id <>", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThan(Long value) {
public Criteria andCategoryIdGreaterThan(String value) {
addCriterion("category_id >", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) {
public Criteria andCategoryIdGreaterThanOrEqualTo(String value) {
addCriterion("category_id >=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThan(Long value) {
public Criteria andCategoryIdLessThan(String value) {
addCriterion("category_id <", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThanOrEqualTo(Long value) {
public Criteria andCategoryIdLessThanOrEqualTo(String value) {
addCriterion("category_id <=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<Long> values) {
public Criteria andCategoryIdLike(String value) {
addCriterion("category_id like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotLike(String value) {
addCriterion("category_id not like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<String> values) {
addCriterion("category_id in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotIn(List<Long> values) {
public Criteria andCategoryIdNotIn(List<String> values) {
addCriterion("category_id not in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdBetween(Long value1, Long value2) {
public Criteria andCategoryIdBetween(String value1, String value2) {
addCriterion("category_id between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotBetween(Long value1, Long value2) {
public Criteria andCategoryIdNotBetween(String value1, String value2) {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}

30
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/PurchaseExample.java

@ -116,52 +116,62 @@ public class PurchaseExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}

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

@ -1,18 +1,18 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "销售单主表")
@Table(name = "t_sale")
@TableName(value = "t_sale", autoResultMap = true)
public class Sale implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -25,7 +25,7 @@ public class Sale implements Serializable {
private Date updateTime;
@ApiModelProperty(value = "客户ID")
private Long userId;
private String userId;
@ApiModelProperty(value = "店铺ID")
private String shopId;
@ -74,11 +74,11 @@ public class Sale implements Serializable {
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -122,11 +122,11 @@ public class Sale implements Serializable {
this.updateTime = updateTime;
}
public Long getUserId() {
public String getUserId() {
return userId;
}
public void setUserId(Long userId) {
public void setUserId(String userId) {
this.userId = userId;
}

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

@ -1,18 +1,18 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "销售单明细表")
@Table(name = "t_sale_detail")
@TableName(value = "t_sale_detail", autoResultMap = true)
public class SaleDetail implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -25,10 +25,10 @@ public class SaleDetail implements Serializable {
private Date updateTime;
@ApiModelProperty(value = "销售单ID")
private Long saleId;
private String saleId;
@ApiModelProperty(value = "商品ID")
private Long productId;
private String productId;
@ApiModelProperty(value = "商品名称")
private String productName;
@ -40,7 +40,7 @@ public class SaleDetail implements Serializable {
private String shopId;
@ApiModelProperty(value = "商品分类")
private Long categoryId;
private String categoryId;
@ApiModelProperty(value = "商品属性列表")
private String attributeList;
@ -59,11 +59,11 @@ public class SaleDetail implements Serializable {
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -107,19 +107,19 @@ public class SaleDetail implements Serializable {
this.updateTime = updateTime;
}
public Long getSaleId() {
public String getSaleId() {
return saleId;
}
public void setSaleId(Long saleId) {
public void setSaleId(String saleId) {
this.saleId = saleId;
}
public Long getProductId() {
public String getProductId() {
return productId;
}
public void setProductId(Long productId) {
public void setProductId(String productId) {
this.productId = productId;
}
@ -147,11 +147,11 @@ public class SaleDetail implements Serializable {
this.shopId = shopId;
}
public Long getCategoryId() {
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}

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

@ -116,52 +116,62 @@ public class SaleDetailExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -496,52 +506,62 @@ public class SaleDetailExample {
return (Criteria) this;
}
public Criteria andSaleIdEqualTo(Long value) {
public Criteria andSaleIdEqualTo(String value) {
addCriterion("sale_id =", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdNotEqualTo(Long value) {
public Criteria andSaleIdNotEqualTo(String value) {
addCriterion("sale_id <>", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdGreaterThan(Long value) {
public Criteria andSaleIdGreaterThan(String value) {
addCriterion("sale_id >", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdGreaterThanOrEqualTo(Long value) {
public Criteria andSaleIdGreaterThanOrEqualTo(String value) {
addCriterion("sale_id >=", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdLessThan(Long value) {
public Criteria andSaleIdLessThan(String value) {
addCriterion("sale_id <", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdLessThanOrEqualTo(Long value) {
public Criteria andSaleIdLessThanOrEqualTo(String value) {
addCriterion("sale_id <=", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdIn(List<Long> values) {
public Criteria andSaleIdLike(String value) {
addCriterion("sale_id like", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdNotLike(String value) {
addCriterion("sale_id not like", value, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdIn(List<String> values) {
addCriterion("sale_id in", values, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdNotIn(List<Long> values) {
public Criteria andSaleIdNotIn(List<String> values) {
addCriterion("sale_id not in", values, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdBetween(Long value1, Long value2) {
public Criteria andSaleIdBetween(String value1, String value2) {
addCriterion("sale_id between", value1, value2, "saleId");
return (Criteria) this;
}
public Criteria andSaleIdNotBetween(Long value1, Long value2) {
public Criteria andSaleIdNotBetween(String value1, String value2) {
addCriterion("sale_id not between", value1, value2, "saleId");
return (Criteria) this;
}
@ -556,52 +576,62 @@ public class SaleDetailExample {
return (Criteria) this;
}
public Criteria andProductIdEqualTo(Long value) {
public Criteria andProductIdEqualTo(String value) {
addCriterion("product_id =", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotEqualTo(Long value) {
public Criteria andProductIdNotEqualTo(String value) {
addCriterion("product_id <>", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThan(Long value) {
public Criteria andProductIdGreaterThan(String value) {
addCriterion("product_id >", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThanOrEqualTo(Long value) {
public Criteria andProductIdGreaterThanOrEqualTo(String value) {
addCriterion("product_id >=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThan(Long value) {
public Criteria andProductIdLessThan(String value) {
addCriterion("product_id <", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThanOrEqualTo(Long value) {
public Criteria andProductIdLessThanOrEqualTo(String value) {
addCriterion("product_id <=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<Long> values) {
public Criteria andProductIdLike(String value) {
addCriterion("product_id like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotLike(String value) {
addCriterion("product_id not like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<String> values) {
addCriterion("product_id in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotIn(List<Long> values) {
public Criteria andProductIdNotIn(List<String> values) {
addCriterion("product_id not in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdBetween(Long value1, Long value2) {
public Criteria andProductIdBetween(String value1, String value2) {
addCriterion("product_id between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotBetween(Long value1, Long value2) {
public Criteria andProductIdNotBetween(String value1, String value2) {
addCriterion("product_id not between", value1, value2, "productId");
return (Criteria) this;
}
@ -826,52 +856,62 @@ public class SaleDetailExample {
return (Criteria) this;
}
public Criteria andCategoryIdEqualTo(Long value) {
public Criteria andCategoryIdEqualTo(String value) {
addCriterion("category_id =", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotEqualTo(Long value) {
public Criteria andCategoryIdNotEqualTo(String value) {
addCriterion("category_id <>", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThan(Long value) {
public Criteria andCategoryIdGreaterThan(String value) {
addCriterion("category_id >", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) {
public Criteria andCategoryIdGreaterThanOrEqualTo(String value) {
addCriterion("category_id >=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThan(Long value) {
public Criteria andCategoryIdLessThan(String value) {
addCriterion("category_id <", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThanOrEqualTo(Long value) {
public Criteria andCategoryIdLessThanOrEqualTo(String value) {
addCriterion("category_id <=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<Long> values) {
public Criteria andCategoryIdLike(String value) {
addCriterion("category_id like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotLike(String value) {
addCriterion("category_id not like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<String> values) {
addCriterion("category_id in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotIn(List<Long> values) {
public Criteria andCategoryIdNotIn(List<String> values) {
addCriterion("category_id not in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdBetween(Long value1, Long value2) {
public Criteria andCategoryIdBetween(String value1, String value2) {
addCriterion("category_id between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotBetween(Long value1, Long value2) {
public Criteria andCategoryIdNotBetween(String value1, String value2) {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}

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

@ -116,52 +116,62 @@ public class SaleExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -496,52 +506,62 @@ public class SaleExample {
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
public Criteria andUserIdEqualTo(String value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
public Criteria andUserIdNotEqualTo(String value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
public Criteria andUserIdGreaterThan(String value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
public Criteria andUserIdLessThan(String value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
public Criteria andUserIdLessThanOrEqualTo(String value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
public Criteria andUserIdLike(String value) {
addCriterion("user_id like", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotLike(String value) {
addCriterion("user_id not like", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<String> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
public Criteria andUserIdNotIn(List<String> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
public Criteria andUserIdBetween(String value1, String value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
public Criteria andUserIdNotBetween(String value1, String value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}

24
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/Stock.java

@ -1,18 +1,18 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "商品实时库存表")
@Table(name = "t_stock")
@ApiModel(value = "商品库存表")
@TableName(value = "t_stock", autoResultMap = true)
public class Stock implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -25,7 +25,7 @@ public class Stock implements Serializable {
private Date updateTime;
@ApiModelProperty(value = "商品id")
private Long productId;
private String productId;
@ApiModelProperty(value = "商品名称")
private String productName;
@ -37,7 +37,7 @@ public class Stock implements Serializable {
private String shopId;
@ApiModelProperty(value = "商品分类")
private Long categoryId;
private String categoryId;
@ApiModelProperty(value = "商品属性列表")
private String attributeList;
@ -80,11 +80,11 @@ public class Stock implements Serializable {
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -128,11 +128,11 @@ public class Stock implements Serializable {
this.updateTime = updateTime;
}
public Long getProductId() {
public String getProductId() {
return productId;
}
public void setProductId(Long productId) {
public void setProductId(String productId) {
this.productId = productId;
}
@ -160,11 +160,11 @@ public class Stock implements Serializable {
this.shopId = shopId;
}
public Long getCategoryId() {
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}

90
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/StockExample.java

@ -116,52 +116,62 @@ public class StockExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -496,52 +506,62 @@ public class StockExample {
return (Criteria) this;
}
public Criteria andProductIdEqualTo(Long value) {
public Criteria andProductIdEqualTo(String value) {
addCriterion("product_id =", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotEqualTo(Long value) {
public Criteria andProductIdNotEqualTo(String value) {
addCriterion("product_id <>", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThan(Long value) {
public Criteria andProductIdGreaterThan(String value) {
addCriterion("product_id >", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThanOrEqualTo(Long value) {
public Criteria andProductIdGreaterThanOrEqualTo(String value) {
addCriterion("product_id >=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThan(Long value) {
public Criteria andProductIdLessThan(String value) {
addCriterion("product_id <", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThanOrEqualTo(Long value) {
public Criteria andProductIdLessThanOrEqualTo(String value) {
addCriterion("product_id <=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<Long> values) {
public Criteria andProductIdLike(String value) {
addCriterion("product_id like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotLike(String value) {
addCriterion("product_id not like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<String> values) {
addCriterion("product_id in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotIn(List<Long> values) {
public Criteria andProductIdNotIn(List<String> values) {
addCriterion("product_id not in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdBetween(Long value1, Long value2) {
public Criteria andProductIdBetween(String value1, String value2) {
addCriterion("product_id between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotBetween(Long value1, Long value2) {
public Criteria andProductIdNotBetween(String value1, String value2) {
addCriterion("product_id not between", value1, value2, "productId");
return (Criteria) this;
}
@ -766,52 +786,62 @@ public class StockExample {
return (Criteria) this;
}
public Criteria andCategoryIdEqualTo(Long value) {
public Criteria andCategoryIdEqualTo(String value) {
addCriterion("category_id =", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotEqualTo(Long value) {
public Criteria andCategoryIdNotEqualTo(String value) {
addCriterion("category_id <>", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThan(Long value) {
public Criteria andCategoryIdGreaterThan(String value) {
addCriterion("category_id >", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) {
public Criteria andCategoryIdGreaterThanOrEqualTo(String value) {
addCriterion("category_id >=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThan(Long value) {
public Criteria andCategoryIdLessThan(String value) {
addCriterion("category_id <", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdLessThanOrEqualTo(Long value) {
public Criteria andCategoryIdLessThanOrEqualTo(String value) {
addCriterion("category_id <=", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<Long> values) {
public Criteria andCategoryIdLike(String value) {
addCriterion("category_id like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotLike(String value) {
addCriterion("category_id not like", value, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdIn(List<String> values) {
addCriterion("category_id in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotIn(List<Long> values) {
public Criteria andCategoryIdNotIn(List<String> values) {
addCriterion("category_id not in", values, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdBetween(Long value1, Long value2) {
public Criteria andCategoryIdBetween(String value1, String value2) {
addCriterion("category_id between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andCategoryIdNotBetween(Long value1, Long value2) {
public Criteria andCategoryIdNotBetween(String value1, String value2) {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}

18
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/StockLog.java

@ -1,18 +1,18 @@
package cc.hiver.mall.entity;
import cc.hiver.core.common.utils.SnowFlakeUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@ApiModel(value = "商品库存履历表")
@Table(name = "t_stock_log")
@ApiModel(value = "库存履历")
@TableName(value = "t_stock_log", autoResultMap = true)
public class StockLog implements Serializable {
private Long id;
private String id = SnowFlakeUtil.nextId().toString();
private String createBy;
@ -25,7 +25,7 @@ public class StockLog implements Serializable {
private Date updateTime;
@ApiModelProperty(value = "商品ID")
private Long productId;
private String productId;
@ApiModelProperty(value = "商品规格")
private String productSpecs;
@ -53,11 +53,11 @@ public class StockLog implements Serializable {
private static final long serialVersionUID = 1L;
public Long getId() {
public String getId() {
return id;
}
public void setId(Long id) {
public void setId(String id) {
this.id = id;
}
@ -101,11 +101,11 @@ public class StockLog implements Serializable {
this.updateTime = updateTime;
}
public Long getProductId() {
public String getProductId() {
return productId;
}
public void setProductId(Long productId) {
public void setProductId(String productId) {
this.productId = productId;
}

60
hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/entity/StockLogExample.java

@ -116,52 +116,62 @@ public class StockLogExample {
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
@ -496,52 +506,62 @@ public class StockLogExample {
return (Criteria) this;
}
public Criteria andProductIdEqualTo(Long value) {
public Criteria andProductIdEqualTo(String value) {
addCriterion("product_id =", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotEqualTo(Long value) {
public Criteria andProductIdNotEqualTo(String value) {
addCriterion("product_id <>", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThan(Long value) {
public Criteria andProductIdGreaterThan(String value) {
addCriterion("product_id >", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThanOrEqualTo(Long value) {
public Criteria andProductIdGreaterThanOrEqualTo(String value) {
addCriterion("product_id >=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThan(Long value) {
public Criteria andProductIdLessThan(String value) {
addCriterion("product_id <", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThanOrEqualTo(Long value) {
public Criteria andProductIdLessThanOrEqualTo(String value) {
addCriterion("product_id <=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<Long> values) {
public Criteria andProductIdLike(String value) {
addCriterion("product_id like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotLike(String value) {
addCriterion("product_id not like", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<String> values) {
addCriterion("product_id in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotIn(List<Long> values) {
public Criteria andProductIdNotIn(List<String> values) {
addCriterion("product_id not in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdBetween(Long value1, Long value2) {
public Criteria andProductIdBetween(String value1, String value2) {
addCriterion("product_id between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotBetween(Long value1, Long value2) {
public Criteria andProductIdNotBetween(String value1, String value2) {
addCriterion("product_id not between", value1, value2, "productId");
return (Criteria) this;
}

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

@ -42,7 +42,7 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
Purchase purchase = purchaseVo.getPurchase();
List<PurchaseDetail> purchaseDetailList = purchaseVo.getPurchaseDetails();
for (PurchaseDetail purchaseDetail:purchaseDetailList){
Long productId = purchaseDetail.getProductId();
String productId = purchaseDetail.getProductId();
String attributeList = purchaseDetail.getAttributeList();
QueryWrapper<Stock> stockQueryWrapper = new QueryWrapper<>();
stockQueryWrapper.eq("product_id",productId);

338
hiver-modules/hiver-mall/src/main/resources/mapper/CustomerMapper.xml

@ -0,0 +1,338 @@
<?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.CustomerMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.Customer">
<id column="id" jdbcType="VARCHAR" 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="name" jdbcType="VARCHAR" property="name" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="password" jdbcType="VARCHAR" property="password" />
<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, name, phone, address,
password, province, city, area
</sql>
<select id="selectByExample" parameterType="cc.hiver.mall.entity.CustomerExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_customer
<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.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_customer
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_customer
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.CustomerExample">
delete from t_customer
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="cc.hiver.mall.entity.Customer">
insert into t_customer (id, create_by, create_time,
del_flag, update_by, update_time,
name, phone, address,
password, province, city,
area)
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR},
#{area,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Customer">
insert into t_customer
<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="name != null">
name,
</if>
<if test="phone != null">
phone,
</if>
<if test="address != null">
address,
</if>
<if test="password != null">
password,
</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=VARCHAR},
</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="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,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.CustomerExample" resultType="java.lang.Long">
select count(*) from t_customer
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_customer
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</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.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.address != null">
address = #{record.address,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
password = #{record.password,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_customer
set id = #{record.id,jdbcType=VARCHAR},
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},
name = #{record.name,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
password = #{record.password,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.Customer">
update t_customer
<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="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="password != null">
password = #{password,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=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Customer">
update t_customer
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},
name = #{name,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
province = #{province,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
area = #{area,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

36
hiver-modules/hiver-mall/src/main/resources/mapper/ProductAttributeMapper.xml

@ -2,13 +2,13 @@
<!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.ProductAttributeMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.ProductAttribute">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="category_id" jdbcType="VARCHAR" property="categoryId" />
<result column="attribute_name" jdbcType="VARCHAR" property="attributeName" />
</resultMap>
<sql id="Example_Where_Clause">
@ -86,15 +86,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_product_attribute
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_product_attribute
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.ProductAttributeExample">
delete from t_product_attribute
@ -106,9 +106,9 @@
insert into t_product_attribute (id, create_by, create_time,
del_flag, update_by, update_time,
category_id, attribute_name)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{categoryId,jdbcType=BIGINT}, #{attributeName,jdbcType=VARCHAR})
#{categoryId,jdbcType=VARCHAR}, #{attributeName,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.ProductAttribute">
insert into t_product_attribute
@ -140,7 +140,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -158,7 +158,7 @@
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
#{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeName != null">
#{attributeName,jdbcType=VARCHAR},
@ -175,7 +175,7 @@
update t_product_attribute
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -193,7 +193,7 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=VARCHAR},
</if>
<if test="record.attributeName != null">
attribute_name = #{record.attributeName,jdbcType=VARCHAR},
@ -205,13 +205,13 @@
</update>
<update id="updateByExample" parameterType="map">
update t_product_attribute
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
category_id = #{record.categoryId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=VARCHAR},
attribute_name = #{record.attributeName,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -236,13 +236,13 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeName != null">
attribute_name = #{attributeName,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.ProductAttribute">
update t_product_attribute
@ -251,8 +251,8 @@
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
attribute_name = #{attributeName,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

36
hiver-modules/hiver-mall/src/main/resources/mapper/ProductAttributeValueMapper.xml

@ -2,13 +2,13 @@
<!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.ProductAttributeValueMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.ProductAttributeValue">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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="attribute_id" jdbcType="BIGINT" property="attributeId" />
<result column="attribute_id" jdbcType="VARCHAR" property="attributeId" />
<result column="value" jdbcType="VARCHAR" property="value" />
</resultMap>
<sql id="Example_Where_Clause">
@ -86,15 +86,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_product_attribute_value
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_product_attribute_value
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.ProductAttributeValueExample">
delete from t_product_attribute_value
@ -106,9 +106,9 @@
insert into t_product_attribute_value (id, create_by, create_time,
del_flag, update_by, update_time,
attribute_id, value)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{attributeId,jdbcType=BIGINT}, #{value,jdbcType=VARCHAR})
#{attributeId,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.ProductAttributeValue">
insert into t_product_attribute_value
@ -140,7 +140,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -158,7 +158,7 @@
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="attributeId != null">
#{attributeId,jdbcType=BIGINT},
#{attributeId,jdbcType=VARCHAR},
</if>
<if test="value != null">
#{value,jdbcType=VARCHAR},
@ -175,7 +175,7 @@
update t_product_attribute_value
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -193,7 +193,7 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.attributeId != null">
attribute_id = #{record.attributeId,jdbcType=BIGINT},
attribute_id = #{record.attributeId,jdbcType=VARCHAR},
</if>
<if test="record.value != null">
value = #{record.value,jdbcType=VARCHAR},
@ -205,13 +205,13 @@
</update>
<update id="updateByExample" parameterType="map">
update t_product_attribute_value
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
attribute_id = #{record.attributeId,jdbcType=BIGINT},
attribute_id = #{record.attributeId,jdbcType=VARCHAR},
value = #{record.value,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -236,13 +236,13 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="attributeId != null">
attribute_id = #{attributeId,jdbcType=BIGINT},
attribute_id = #{attributeId,jdbcType=VARCHAR},
</if>
<if test="value != null">
value = #{value,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.ProductAttributeValue">
update t_product_attribute_value
@ -251,8 +251,8 @@
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
attribute_id = #{attributeId,jdbcType=BIGINT},
attribute_id = #{attributeId,jdbcType=VARCHAR},
value = #{value,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

36
hiver-modules/hiver-mall/src/main/resources/mapper/ProductCategoryMapper.xml

@ -2,14 +2,14 @@
<!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.ProductCategoryMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.ProductCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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="category_name" jdbcType="VARCHAR" property="categoryName" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="parent_id" jdbcType="VARCHAR" property="parentId" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -86,15 +86,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_product_category
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_product_category
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.ProductCategoryExample">
delete from t_product_category
@ -106,9 +106,9 @@
insert into t_product_category (id, create_by, create_time,
del_flag, update_by, update_time,
category_name, parent_id)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{categoryName,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT})
#{categoryName,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.ProductCategory">
insert into t_product_category
@ -140,7 +140,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -161,7 +161,7 @@
#{categoryName,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
#{parentId,jdbcType=BIGINT},
#{parentId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
@ -175,7 +175,7 @@
update t_product_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -196,7 +196,7 @@
category_name = #{record.categoryName,jdbcType=VARCHAR},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
@ -205,14 +205,14 @@
</update>
<update id="updateByExample" parameterType="map">
update t_product_category
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
category_name = #{record.categoryName,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=BIGINT}
parent_id = #{record.parentId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -239,10 +239,10 @@
category_name = #{categoryName,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=BIGINT},
parent_id = #{parentId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.ProductCategory">
update t_product_category
@ -252,7 +252,7 @@
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
category_name = #{categoryName,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
parent_id = #{parentId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

36
hiver-modules/hiver-mall/src/main/resources/mapper/ProductMapper.xml

@ -2,7 +2,7 @@
<!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.ProductMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.Product">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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" />
@ -11,7 +11,7 @@
<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="category_id" jdbcType="VARCHAR" 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" />
@ -102,15 +102,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_product
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_product
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.ProductExample">
delete from t_product
@ -127,10 +127,10 @@
purchase_price, wholesale_price, product_picture,
product_video, product_intro, sales_week,
print_barcode)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR},
#{categoryId,jdbcType=BIGINT}, #{attributeList,jdbcType=VARCHAR}, #{supplierId,jdbcType=VARCHAR},
#{categoryId,jdbcType=VARCHAR}, #{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},
@ -208,7 +208,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -235,7 +235,7 @@
#{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
#{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
#{attributeList,jdbcType=VARCHAR},
@ -285,7 +285,7 @@
update t_product
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -312,7 +312,7 @@
shop_id = #{record.shopId,jdbcType=VARCHAR},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=VARCHAR},
</if>
<if test="record.attributeList != null">
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
@ -357,7 +357,7 @@
</update>
<update id="updateByExample" parameterType="map">
update t_product
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
@ -366,7 +366,7 @@
product_name = #{record.productName,jdbcType=VARCHAR},
unit = #{record.unit,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
category_id = #{record.categoryId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=VARCHAR},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
@ -411,7 +411,7 @@
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
attribute_list = #{attributeList,jdbcType=VARCHAR},
@ -450,7 +450,7 @@
print_barcode = #{printBarcode,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Product">
update t_product
@ -462,7 +462,7 @@
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
attribute_list = #{attributeList,jdbcType=VARCHAR},
supplier_id = #{supplierId,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
@ -475,6 +475,6 @@
product_intro = #{productIntro,jdbcType=VARCHAR},
sales_week = #{salesWeek,jdbcType=VARCHAR},
print_barcode = #{printBarcode,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

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

@ -2,18 +2,18 @@
<!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.PurchaseDetailMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.PurchaseDetail">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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="purchase_id" jdbcType="BIGINT" property="purchaseId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="purchase_id" jdbcType="VARCHAR" property="purchaseId" />
<result column="product_id" jdbcType="VARCHAR" 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="category_id" jdbcType="VARCHAR" 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" />
@ -106,15 +106,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_purchase_detail
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_purchase_detail
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.PurchaseDetailExample">
delete from t_purchase_detail
@ -132,10 +132,10 @@
wholesale_price, product_picture, product_video,
product_intro, sales_week, print_barcode,
product_count)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{purchaseId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=BIGINT},
#{purchaseId,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR},
#{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},
@ -223,7 +223,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -241,10 +241,10 @@
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="purchaseId != null">
#{purchaseId,jdbcType=BIGINT},
#{purchaseId,jdbcType=VARCHAR},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
#{productId,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
@ -256,7 +256,7 @@
#{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
#{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
#{attributeList,jdbcType=VARCHAR},
@ -309,7 +309,7 @@
update t_purchase_detail
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -327,10 +327,10 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.purchaseId != null">
purchase_id = #{record.purchaseId,jdbcType=BIGINT},
purchase_id = #{record.purchaseId,jdbcType=VARCHAR},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
@ -342,7 +342,7 @@
shop_id = #{record.shopId,jdbcType=VARCHAR},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=VARCHAR},
</if>
<if test="record.attributeList != null">
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
@ -390,18 +390,18 @@
</update>
<update id="updateByExample" parameterType="map">
update t_purchase_detail
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
purchase_id = #{record.purchaseId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
purchase_id = #{record.purchaseId,jdbcType=VARCHAR},
product_id = #{record.productId,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},
category_id = #{record.categoryId,jdbcType=VARCHAR},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
@ -438,10 +438,10 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="purchaseId != null">
purchase_id = #{purchaseId,jdbcType=BIGINT},
purchase_id = #{purchaseId,jdbcType=VARCHAR},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
@ -453,7 +453,7 @@
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
attribute_list = #{attributeList,jdbcType=VARCHAR},
@ -495,7 +495,7 @@
product_count = #{productCount,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.PurchaseDetail">
update t_purchase_detail
@ -504,12 +504,12 @@
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
purchase_id = #{purchaseId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT},
purchase_id = #{purchaseId,jdbcType=VARCHAR},
product_id = #{productId,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
attribute_list = #{attributeList,jdbcType=VARCHAR},
supplier_id = #{supplierId,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
@ -523,6 +523,6 @@
sales_week = #{salesWeek,jdbcType=VARCHAR},
print_barcode = #{printBarcode,jdbcType=VARCHAR},
product_count = #{productCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

22
hiver-modules/hiver-mall/src/main/resources/mapper/PurchaseMapper.xml

@ -2,7 +2,7 @@
<!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.PurchaseMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.Purchase">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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" />
@ -91,15 +91,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_purchase
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_purchase
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.PurchaseExample">
delete from t_purchase
@ -113,7 +113,7 @@
supplier_id, shop_id, total_amount,
should_pay, already_pay, no_pay
)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{supplierId,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
#{shouldPay,jdbcType=DECIMAL}, #{alreadyPay,jdbcType=DECIMAL}, #{noPay,jdbcType=DECIMAL}
@ -161,7 +161,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -208,7 +208,7 @@
update t_purchase
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -250,7 +250,7 @@
</update>
<update id="updateByExample" parameterType="map">
update t_purchase
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
del_flag = #{record.delFlag,jdbcType=INTEGER},
@ -303,7 +303,7 @@
no_pay = #{noPay,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Purchase">
update t_purchase
@ -318,6 +318,6 @@
should_pay = #{shouldPay,jdbcType=DECIMAL},
already_pay = #{alreadyPay,jdbcType=DECIMAL},
no_pay = #{noPay,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

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

@ -2,18 +2,18 @@
<!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" />
<id column="id" jdbcType="VARCHAR" 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="sale_id" jdbcType="VARCHAR" property="saleId" />
<result column="product_id" jdbcType="VARCHAR" 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="category_id" jdbcType="VARCHAR" 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" />
@ -97,15 +97,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sale_detail
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_sale_detail
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.SaleDetailExample">
delete from t_sale_detail
@ -120,10 +120,10 @@
unit, shop_id, category_id,
attribute_list, price, purchase_price,
wholesale_price, product_count)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{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},
#{saleId,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR},
#{attributeList,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{purchasePrice,jdbcType=DECIMAL},
#{wholesalePrice,jdbcType=DECIMAL}, #{productCount,jdbcType=INTEGER})
</insert>
@ -184,7 +184,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -202,10 +202,10 @@
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saleId != null">
#{saleId,jdbcType=BIGINT},
#{saleId,jdbcType=VARCHAR},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
#{productId,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
@ -217,7 +217,7 @@
#{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
#{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
#{attributeList,jdbcType=VARCHAR},
@ -246,7 +246,7 @@
update t_sale_detail
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -264,10 +264,10 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.saleId != null">
sale_id = #{record.saleId,jdbcType=BIGINT},
sale_id = #{record.saleId,jdbcType=VARCHAR},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
@ -279,7 +279,7 @@
shop_id = #{record.shopId,jdbcType=VARCHAR},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=VARCHAR},
</if>
<if test="record.attributeList != null">
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
@ -303,18 +303,18 @@
</update>
<update id="updateByExample" parameterType="map">
update t_sale_detail
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
sale_id = #{record.saleId,jdbcType=VARCHAR},
product_id = #{record.productId,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},
category_id = #{record.categoryId,jdbcType=VARCHAR},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
purchase_price = #{record.purchasePrice,jdbcType=DECIMAL},
@ -343,10 +343,10 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saleId != null">
sale_id = #{saleId,jdbcType=BIGINT},
sale_id = #{saleId,jdbcType=VARCHAR},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
@ -358,7 +358,7 @@
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
attribute_list = #{attributeList,jdbcType=VARCHAR},
@ -376,7 +376,7 @@
product_count = #{productCount,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.SaleDetail">
update t_sale_detail
@ -385,17 +385,17 @@
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},
sale_id = #{saleId,jdbcType=VARCHAR},
product_id = #{productId,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
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}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

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

@ -2,13 +2,13 @@
<!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" />
<id column="id" jdbcType="VARCHAR" 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="user_id" jdbcType="VARCHAR" 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" />
@ -102,15 +102,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sale
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_sale
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.SaleExample">
delete from t_sale
@ -127,9 +127,9 @@
status, transport_type, share_address,
receive_address, province, city,
area)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{userId,jdbcType=BIGINT}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
#{userId,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
#{discount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, #{realAmount,jdbcType=DECIMAL},
#{alreadyEarn,jdbcType=DECIMAL}, #{noEarn,jdbcType=DECIMAL}, #{payStatus,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{transportType,jdbcType=VARCHAR}, #{shareAddress,jdbcType=VARCHAR},
@ -208,7 +208,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -226,7 +226,7 @@
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
#{userId,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
@ -285,7 +285,7 @@
update t_sale
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -303,7 +303,7 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.shopId != null">
shop_id = #{record.shopId,jdbcType=VARCHAR},
@ -357,13 +357,13 @@
</update>
<update id="updateByExample" parameterType="map">
update t_sale
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
user_id = #{record.userId,jdbcType=VARCHAR},
shop_id = #{record.shopId,jdbcType=VARCHAR},
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
discount = #{record.discount,jdbcType=DECIMAL},
@ -402,7 +402,7 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
@ -450,7 +450,7 @@
area = #{area,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Sale">
update t_sale
@ -459,7 +459,7 @@
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
user_id = #{userId,jdbcType=BIGINT},
user_id = #{userId,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
total_amount = #{totalAmount,jdbcType=DECIMAL},
discount = #{discount,jdbcType=DECIMAL},
@ -475,6 +475,6 @@
province = #{province,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
area = #{area,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

36
hiver-modules/hiver-mall/src/main/resources/mapper/StockLogMapper.xml

@ -2,13 +2,13 @@
<!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.StockLogMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.StockLog">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_id" jdbcType="VARCHAR" property="productId" />
<result column="product_specs" jdbcType="VARCHAR" property="productSpecs" />
<result column="stock" jdbcType="INTEGER" property="stock" />
<result column="change_stock" jdbcType="INTEGER" property="changeStock" />
@ -94,15 +94,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_stock_log
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_stock_log
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.StockLogExample">
delete from t_stock_log
@ -117,9 +117,9 @@
change_stock, change_type, price,
purchase_price, wholesale_price, shop_id
)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{productId,jdbcType=BIGINT}, #{productSpecs,jdbcType=VARCHAR}, #{stock,jdbcType=INTEGER},
#{productId,jdbcType=VARCHAR}, #{productSpecs,jdbcType=VARCHAR}, #{stock,jdbcType=INTEGER},
#{changeStock,jdbcType=INTEGER}, #{changeType,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL},
#{purchasePrice,jdbcType=DECIMAL}, #{wholesalePrice,jdbcType=DECIMAL}, #{shopId,jdbcType=VARCHAR}
)
@ -175,7 +175,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -193,7 +193,7 @@
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
#{productId,jdbcType=VARCHAR},
</if>
<if test="productSpecs != null">
#{productSpecs,jdbcType=VARCHAR},
@ -231,7 +231,7 @@
update t_stock_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -249,7 +249,7 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=VARCHAR},
</if>
<if test="record.productSpecs != null">
product_specs = #{record.productSpecs,jdbcType=VARCHAR},
@ -282,13 +282,13 @@
</update>
<update id="updateByExample" parameterType="map">
update t_stock_log
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
product_id = #{record.productId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=VARCHAR},
product_specs = #{record.productSpecs,jdbcType=VARCHAR},
stock = #{record.stock,jdbcType=INTEGER},
change_stock = #{record.changeStock,jdbcType=INTEGER},
@ -320,7 +320,7 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=VARCHAR},
</if>
<if test="productSpecs != null">
product_specs = #{productSpecs,jdbcType=VARCHAR},
@ -347,7 +347,7 @@
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.StockLog">
update t_stock_log
@ -356,7 +356,7 @@
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
product_id = #{productId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=VARCHAR},
product_specs = #{productSpecs,jdbcType=VARCHAR},
stock = #{stock,jdbcType=INTEGER},
change_stock = #{changeStock,jdbcType=INTEGER},
@ -365,6 +365,6 @@
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
wholesale_price = #{wholesalePrice,jdbcType=DECIMAL},
shop_id = #{shopId,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

50
hiver-modules/hiver-mall/src/main/resources/mapper/StockMapper.xml

@ -2,17 +2,17 @@
<!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.StockMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.Stock">
<id column="id" jdbcType="BIGINT" property="id" />
<id column="id" jdbcType="VARCHAR" 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="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_id" jdbcType="VARCHAR" 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="category_id" jdbcType="VARCHAR" 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" />
@ -105,15 +105,15 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_stock
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from t_stock
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.StockExample">
delete from t_stock
@ -131,10 +131,10 @@
product_picture, product_video, product_intro,
sales_week, print_barcode, stock_count
)
values (#{id,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR},
#{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=BIGINT}, #{attributeList,jdbcType=VARCHAR},
#{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR},
#{shopId,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR}, #{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},
@ -219,7 +219,7 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
#{id,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
@ -237,7 +237,7 @@
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
#{productId,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
@ -249,7 +249,7 @@
#{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
#{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
#{attributeList,jdbcType=VARCHAR},
@ -302,7 +302,7 @@
update t_stock
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
@ -320,7 +320,7 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
@ -332,7 +332,7 @@
shop_id = #{record.shopId,jdbcType=VARCHAR},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=VARCHAR},
</if>
<if test="record.attributeList != null">
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
@ -380,17 +380,17 @@
</update>
<update id="updateByExample" parameterType="map">
update t_stock
set id = #{record.id,jdbcType=BIGINT},
set id = #{record.id,jdbcType=VARCHAR},
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},
product_id = #{record.productId,jdbcType=BIGINT},
product_id = #{record.productId,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},
category_id = #{record.categoryId,jdbcType=VARCHAR},
attribute_list = #{record.attributeList,jdbcType=VARCHAR},
supplier_id = #{record.supplierId,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
@ -427,7 +427,7 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
@ -439,7 +439,7 @@
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
</if>
<if test="attributeList != null">
attribute_list = #{attributeList,jdbcType=VARCHAR},
@ -481,7 +481,7 @@
stock_count = #{stockCount,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Stock">
update t_stock
@ -490,11 +490,11 @@
del_flag = #{delFlag,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
product_id = #{productId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
category_id = #{categoryId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=VARCHAR},
attribute_list = #{attributeList,jdbcType=VARCHAR},
supplier_id = #{supplierId,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
@ -508,6 +508,6 @@
sales_week = #{salesWeek,jdbcType=VARCHAR},
print_barcode = #{printBarcode,jdbcType=VARCHAR},
stock_count = #{stockCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>
Loading…
Cancel
Save