goods
This commit is contained in:
@@ -36,15 +36,20 @@
|
||||
</select>
|
||||
|
||||
<select id="getSelectList" resultType="com.yxt.goods.biz.goodssku.SkuSelectList">
|
||||
select sku.sid goodsSkuSid,
|
||||
spu.sid as goodsSpuSid,
|
||||
spu.goodsName goodsSpuName,
|
||||
sku.goodsSkuCode,
|
||||
sku.title as goodsSkuTitle,
|
||||
spu.goodsUnitSid,
|
||||
spu.goodsUnitName
|
||||
select
|
||||
sku.sid goodsSkuSid,
|
||||
spu.sid AS goodsSpuSid,
|
||||
spu.goodsName goodsSpuName,
|
||||
sku.goodsSkuCode,
|
||||
sku.title AS goodsSkuTitle,
|
||||
spu.goodsUnitSid,
|
||||
spu.goodsUnitName,
|
||||
ex.costPrice,
|
||||
spu.shelfLife,
|
||||
sku.own_spec as ownSpec
|
||||
from goods_sku sku
|
||||
left join goods_spu spu on spu.sid = sku.goodsSpuSid
|
||||
LEFT JOIN goods_sku_extend ex ON ex.goodsSkuSid = sku.sid
|
||||
<where>
|
||||
${ew.sqlSegment}
|
||||
</where>
|
||||
|
||||
@@ -12,4 +12,6 @@ import lombok.Data;
|
||||
public class GoodsSkuSelectQuery implements Query {
|
||||
|
||||
private String goodsSkuCode;
|
||||
private String goodsSpuName;
|
||||
private String createOrgSid;
|
||||
}
|
||||
|
||||
@@ -208,7 +208,12 @@ public class GoodsSkuService extends MybatisBaseService<GoodsSkuMapper, GoodsSku
|
||||
if (StringUtils.isNotBlank(query.getGoodsSkuCode())) {
|
||||
qw.like("sku.goodsSkuCode", query.getGoodsSkuCode());
|
||||
}
|
||||
if (StringUtils.isNotBlank(query.getGoodsSpuName())) {
|
||||
qw.like("spu.goodsName", query.getGoodsSpuName());
|
||||
}
|
||||
qw.eq("spu.createOrgSid",query.getCreateOrgSid());
|
||||
}
|
||||
|
||||
IPage<GoodsSku> page = PagerUtil.queryToPage(pagerQuery);
|
||||
IPage<SkuSelectList> pagging = baseMapper.getSelectList(page, qw);
|
||||
PagerVo<SkuSelectList> p = PagerUtil.pageToVo(pagging, null);
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.yxt.goods.biz.goodssku;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
@@ -15,13 +17,27 @@ public class SkuSelectList {
|
||||
private String goodsSpuName;
|
||||
//商品sid
|
||||
private String goodsSkuSid;
|
||||
//
|
||||
private String goodsSkuTitle;
|
||||
//商品编码
|
||||
private String goodsSkuCode;
|
||||
//条码
|
||||
private String barCode;
|
||||
//规格/型号
|
||||
private String goodsSkuTitle;
|
||||
private String ownSpec;
|
||||
|
||||
//计量单位
|
||||
private String goodsUnitSid;
|
||||
private String goodsUnitName;
|
||||
private String goodsUnitSid;//
|
||||
private String goodsUnitName;//单位
|
||||
private BigDecimal costPrice=new BigDecimal(0);//单价
|
||||
private BigDecimal totalPrice=new BigDecimal(0);//总金额
|
||||
private String remarks;//备注
|
||||
private Integer count=0;//数量
|
||||
private String serialNumber;//序列号
|
||||
private String batch;//批次
|
||||
private String warehouseRackSid;//
|
||||
private String warehouseRackName;//库位
|
||||
private String shelfLife;//保质期 天数
|
||||
//仓库名称
|
||||
//货位
|
||||
//单位成本(进货价)
|
||||
|
||||
Reference in New Issue
Block a user