规格问题
This commit is contained in:
parent
660acc64ee
commit
0fcc7efb8e
|
|
@ -1400,9 +1400,9 @@ public class OrderController extends BaseController {
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
||||||
if(three != null){
|
if(three != null){
|
||||||
goods.setGoodsName("【" + three.getGoodsCategoryName()
|
goods.setGoodsName(three.getGoodsCategoryName()
|
||||||
+ "-" + two.getGoodsCategoryName()
|
+ "-" + two.getGoodsCategoryName()
|
||||||
+ "-" + one.getGoodsCategoryName() + "】");
|
+ "-" + one.getGoodsCategoryName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1525,9 +1525,9 @@ public class OrderController extends BaseController {
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
||||||
if(three != null){
|
if(three != null){
|
||||||
goods.setGoodsName("【" + three.getGoodsCategoryName()
|
goods.setGoodsName(three.getGoodsCategoryName()
|
||||||
+ "-" + two.getGoodsCategoryName()
|
+ "-" + two.getGoodsCategoryName()
|
||||||
+ "-" + one.getGoodsCategoryName() + "】");
|
+ "-" + one.getGoodsCategoryName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -544,7 +544,28 @@ public class OrderDetailController extends BaseController {
|
||||||
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
||||||
|
|
||||||
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
||||||
|
// 填充商品三级类目
|
||||||
|
if(goods.getDeptGoodsCategoryId() != null){
|
||||||
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
||||||
|
if(deptGoodsCategory == null){
|
||||||
|
deptGoodsCategory = new DeptGoodsCategory();
|
||||||
|
deptGoodsCategory.setGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
||||||
|
}
|
||||||
|
if(deptGoodsCategory != null){
|
||||||
|
GoodsCategory one = goodsCategoryService.selectById(deptGoodsCategory.getGoodsCategoryId());
|
||||||
|
if(one != null && one.getParentCategoryId() != null){
|
||||||
|
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
||||||
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
|
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
||||||
|
if(three != null){
|
||||||
|
goods.setGoodsName(three.getGoodsCategoryName()
|
||||||
|
+ "-" + two.getGoodsCategoryName()
|
||||||
|
+ "-" + one.getGoodsCategoryName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// 财务信息
|
// 财务信息
|
||||||
FinancialDetail financialDetail = financialDetailService.selectByOrderDetailId(detail.getId());
|
FinancialDetail financialDetail = financialDetailService.selectByOrderDetailId(detail.getId());
|
||||||
BigDecimal detailPayMoney = financialDetail.getPayMoney();
|
BigDecimal detailPayMoney = financialDetail.getPayMoney();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue