|
@@ -336,6 +336,11 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase>
|
|
|
p.setProductSpec(vo.getSpec());
|
|
|
p.setProductCustomCode(vo.getCustomCode());
|
|
|
p.setProductDefinition(vo.getDefinition());
|
|
|
+ //赋值产品部门id
|
|
|
+ JSONObject victoriatouristJson = JSONObject.parseObject(vo.getVictoriatouristJson());
|
|
|
+ if (ObjectUtils.isNotEmpty(victoriatouristJson)) {
|
|
|
+ p.setProductDeptId(victoriatouristJson.getLong("deptId"));
|
|
|
+ }
|
|
|
//赋值次品数量
|
|
|
List<Stock> stockList = stockMap.get(p.getBussinessId());
|
|
|
if (ObjectUtils.isNotEmpty(stockList)) {
|