|
@@ -179,9 +179,11 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
}
|
|
}
|
|
if (StringUtils.isNotNull(wb.get("fWarehouselocid"))) {
|
|
if (StringUtils.isNotNull(wb.get("fWarehouselocid"))) {
|
|
Long fWarehouselocid = Long.valueOf(String.valueOf(wb.get("fWarehouselocid")));
|
|
Long fWarehouselocid = Long.valueOf(String.valueOf(wb.get("fWarehouselocid")));
|
|
- Long fTransferWarehouselocid = Long.valueOf(String.valueOf(wb.get("fTransferWarehouselocid")));
|
|
|
|
|
|
+ if (wb.get("fTransferWarehouselocid") != null) {
|
|
|
|
+ Long fTransferWarehouselocid = Long.valueOf(String.valueOf(wb.get("fTransferWarehouselocid")));
|
|
|
|
+ warehouseAreaId.add(fTransferWarehouselocid);
|
|
|
|
+ }
|
|
warehouseAreaId.add(fWarehouselocid);
|
|
warehouseAreaId.add(fWarehouselocid);
|
|
- warehouseAreaId.add(fTransferWarehouselocid);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
map.put("warehouseBillsItem", mapList);
|
|
map.put("warehouseBillsItem", mapList);
|
|
@@ -749,11 +751,10 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
warehousebillsitems.setfPid(fPid);
|
|
warehousebillsitems.setfPid(fPid);
|
|
List<TWarehousebillsitems> warehousebillsitemsList = tWarehousebillsitemsMapper.selectTWarehousebillsitemsList(warehousebillsitems);
|
|
List<TWarehousebillsitems> warehousebillsitemsList = tWarehousebillsitemsMapper.selectTWarehousebillsitemsList(warehousebillsitems);
|
|
for (TWarehousebillsitems wareItem : warehousebillsitemsList) {
|
|
for (TWarehousebillsitems wareItem : warehousebillsitemsList) {
|
|
- int returnParameter = 0;
|
|
|
|
if ("KCZZ".equals(wareItem.getfBilltype())) {
|
|
if ("KCZZ".equals(wareItem.getfBilltype())) {
|
|
TWhgenleg tWhgenleg = tWhgenlegMapper.selectTWhgenlegById(wareItem.getfSrcid());
|
|
TWhgenleg tWhgenleg = tWhgenlegMapper.selectTWhgenlegById(wareItem.getfSrcid());
|
|
tWhgenleg.setfChargedate(wareItem.getfBillingDeadline());
|
|
tWhgenleg.setfChargedate(wareItem.getfBillingDeadline());
|
|
- returnParameter = tWhgenlegMapper.updateTWhgenleg(tWhgenleg);
|
|
|
|
|
|
+ tWhgenlegMapper.updateTWhgenleg(tWhgenleg);
|
|
} else {
|
|
} else {
|
|
TWarehousebillsitems tWarehousebillsitems = tWarehousebillsitemsMapper.selectTWarehousebillsitemsById(wareItem.getfSrcid());
|
|
TWarehousebillsitems tWarehousebillsitems = tWarehousebillsitemsMapper.selectTWarehousebillsitemsById(wareItem.getfSrcid());
|
|
tWarehousebillsitems.setfAmt(wareItem.getfAmt());
|
|
tWarehousebillsitems.setfAmt(wareItem.getfAmt());
|
|
@@ -762,11 +763,7 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
tWarehousebillsitems.setfChargedate(wareItem.getfBillingDeadline());
|
|
tWarehousebillsitems.setfChargedate(wareItem.getfBillingDeadline());
|
|
tWarehousebillsitems.setfInventoryDays(wareItem.getfInventoryDays());
|
|
tWarehousebillsitems.setfInventoryDays(wareItem.getfInventoryDays());
|
|
tWarehousebillsitems.setfBillingDeadline(wareItem.getfBillingDeadline());
|
|
tWarehousebillsitems.setfBillingDeadline(wareItem.getfBillingDeadline());
|
|
- returnParameter = tWarehousebillsitemsMapper.updateTWarehousebillsitems(tWarehousebillsitems);
|
|
|
|
- }
|
|
|
|
- if (returnParameter <= 0) {
|
|
|
|
- TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
|
- return AjaxResult.error("仓储费计算通过失败,更新明细状态失败,请联系管理员");
|
|
|
|
|
|
+ tWarehousebillsitemsMapper.updateTWarehousebillsitems(tWarehousebillsitems);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
int itemUpdateResult = tWarehousebillsitemsMapper.warehouseItemFollowUpdate(fPid, fettle);
|
|
int itemUpdateResult = tWarehousebillsitemsMapper.warehouseItemFollowUpdate(fPid, fettle);
|