|
@@ -1505,7 +1505,7 @@ public class SyPreAssembledPackingListServiceImpl extends ServiceImpl<SyPreAssem
|
|
|
*/
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public synchronized RespUpdateVO saveSrmBill(SyPreAssembledPackingList syPreAssembledPackingList) {
|
|
|
+ public RespUpdateVO saveSrmBill(SyPreAssembledPackingList syPreAssembledPackingList) {
|
|
|
RespUpdateVO respUpdateVO = new RespUpdateVO();
|
|
|
respUpdateVO.setSuccess(false);
|
|
|
respUpdateVO.setExtraInfo("");
|
|
@@ -1524,6 +1524,9 @@ public class SyPreAssembledPackingListServiceImpl extends ServiceImpl<SyPreAssem
|
|
|
syPreAssembledPackingList.setSyOrderDataId(syShippingDetails.getSyOrderDataId());
|
|
|
}
|
|
|
}
|
|
|
+ SyShippingDetailsItem syItem=syShippingDetailsItemMapper.selectById(items.get(0).getSizeTables().get(0).getItemId());
|
|
|
+ syPreAssembledPackingList.setElementsId(syItem.getElementsId());
|
|
|
+ syPreAssembledPackingList.setIsTc(syItem.getIsTc());
|
|
|
syPreAssembledPackingListMapper.insert(syPreAssembledPackingList);//往主表添加数据
|
|
|
if(syPreAssembledPackingList.getSyPreAssembledPackingListItemList()!=null){
|
|
|
//BigDecimal box=add(syPreAssembledPackingList.getSyPreAssembledPackingListItemList(),syPreAssembledPackingList.getId());
|
|
@@ -1560,11 +1563,10 @@ public class SyPreAssembledPackingListServiceImpl extends ServiceImpl<SyPreAssem
|
|
|
item1.setSort(size.getNum());//获取序号
|
|
|
item1.setId(oConvertUtils.id());//获取到随机id
|
|
|
//获取发育明细数据
|
|
|
- SyShippingDetailsItem syItem=syShippingDetailsItemMapper.selectById(item1.getSyDeclarationElementsItemId());
|
|
|
+ syItem=syShippingDetailsItemMapper.selectById(item1.getSyDeclarationElementsItemId());
|
|
|
syItem.setIsReference(1);//修改成被参照
|
|
|
syShippingDetailsItemMapper.updateById(syItem);
|
|
|
- syPreAssembledPackingList.setElementsId(syItem.getElementsId());
|
|
|
- syPreAssembledPackingList.setIsTc(syItem.getIsTc());
|
|
|
+
|
|
|
item1.setPackId(syItem.getPackId());
|
|
|
item1.setOmpoIdItem(syItem.getOmpoIdItem());//获取委外/采购订单子表Id
|
|
|
item1.setOmpoId(syItem.getOmpoId());//获取委外/采购订单主表Id
|
|
@@ -1600,7 +1602,7 @@ public class SyPreAssembledPackingListServiceImpl extends ServiceImpl<SyPreAssem
|
|
|
for (String key : maps.keySet()){
|
|
|
//updateQuantity(maps.get(key),key);
|
|
|
}
|
|
|
- syPreAssembledPackingListMapper.updateById(syPreAssembledPackingList);
|
|
|
+ //syPreAssembledPackingListMapper.updateById(syPreAssembledPackingList);
|
|
|
respUpdateVO.setMessage(syPreAssembledPackingList.getId());
|
|
|
respUpdateVO.setSuccess(true);
|
|
|
}else{
|