修改销售订单
This commit is contained in:
@@ -41,9 +41,14 @@
|
||||
sku.sid as goodsSkuSid,
|
||||
sku.goodsSkuCode,
|
||||
sku.title as goodsSkuTitle,
|
||||
s.goodsUnitName as unit
|
||||
s.goodsUnitName as unit,
|
||||
e.salesPrice as price,
|
||||
e.picUrl,
|
||||
e.costPrice,
|
||||
e.standardPurchasePrice
|
||||
from goods_spu s
|
||||
left join goods_sku sku on a.sid = sku.goodsSpuSid
|
||||
left join goods_sku_extend e on sku.sid = e.goodsSkuSid
|
||||
<where>
|
||||
${ew.sqlSegment}
|
||||
</where>
|
||||
|
||||
@@ -496,9 +496,26 @@ public class GoodsSpuService extends MybatisBaseService<GoodsSpuMapper, GoodsSpu
|
||||
if (StringUtils.isNotBlank(query.getCreateOrgSid())) {
|
||||
qw.like("s.createOrgSid", query.getCreateOrgSid());
|
||||
}
|
||||
if (StringUtils.isNotBlank(query.getGoodsSkuCode())) {
|
||||
qw.like("sku.goodsSkuCode", query.getGoodsSkuCode());
|
||||
}
|
||||
qw.ne("s.isDelete","1");
|
||||
IPage<GoodsSpu> page = PagerUtil.queryToPage(pq);
|
||||
IPage<SalesGoodsVo> pagging = baseMapper.getGoodsForSales(page, qw);
|
||||
List<SalesGoodsVo> records = pagging.getRecords();
|
||||
if (!records.isEmpty()) {
|
||||
for (SalesGoodsVo record : records) {
|
||||
if (StringUtils.isNotBlank(record.getPicUrl())) {
|
||||
List<String> picList = new ArrayList<>();
|
||||
String picUrl = record.getPicUrl();
|
||||
String[] split = picUrl.split(",");
|
||||
for (String s : split) {
|
||||
picList.add(fileUploadComponent.getUrlPrefix() + s);
|
||||
}
|
||||
record.setPic(picList);
|
||||
}
|
||||
}
|
||||
}
|
||||
PagerVo<SalesGoodsVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
return rb.success().setData(p);
|
||||
}
|
||||
|
||||
@@ -12,4 +12,7 @@ import lombok.Data;
|
||||
public class SalesGoodsQuery implements Query {
|
||||
private String goodsName;
|
||||
private String createOrgSid;
|
||||
|
||||
private String goodsSkuCode;
|
||||
private String goodsSkuOwnSpec;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@ package com.yxt.goods.biz.goodsspu;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Fan
|
||||
* @description
|
||||
@@ -59,4 +62,24 @@ public class SalesGoodsVo implements Vo {
|
||||
* 重量(kg)
|
||||
*/
|
||||
private String weight;
|
||||
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
private List<String> pic = new ArrayList<>();
|
||||
|
||||
private String picUrl;
|
||||
|
||||
/**
|
||||
* 成本均价
|
||||
*/
|
||||
private String costPrice;
|
||||
/**
|
||||
* 参考进价
|
||||
*/
|
||||
private String standardPurchasePrice;
|
||||
/**
|
||||
* 实际可用库存
|
||||
*/
|
||||
private String inventoryCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user