|
|
|
@ -728,6 +728,19 @@ public class SaleorderitemController {
|
|
|
|
|
poundlistEntity.setSalesStatus("99");
|
|
|
|
|
}
|
|
|
|
|
poundlistService.updateBatchById(poundlistList);
|
|
|
|
|
SaleorderitemEntity saleorderitemEntity = saleorderitemService.getById(allId);
|
|
|
|
|
if (StringUtils.isNotEmpty(saleorderitemEntity.getSourcePoId())){
|
|
|
|
|
JSONArray array = JSON.parseArray(saleorderitemEntity.getSourcePoId());
|
|
|
|
|
for (Object purchaseId : array) {
|
|
|
|
|
if (StringUtils.isNotEmpty(String.valueOf(purchaseId))) {
|
|
|
|
|
PurchaseorderitemEntity purchaseorderitemEntity = purchaseorderitemService.getInfo(String.valueOf(purchaseId));
|
|
|
|
|
if (ObjectUtils.isNotEmpty(purchaseorderitemEntity)) {
|
|
|
|
|
purchaseorderitemEntity.setIsTransfer("0");
|
|
|
|
|
purchaseorderitemService.updateById(purchaseorderitemEntity);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.delete(allId);
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
@ -1088,7 +1101,6 @@ public class SaleorderitemController {
|
|
|
|
|
public ActionResult delete(@PathVariable("id") String id){
|
|
|
|
|
SaleorderitemEntity entity= saleorderitemService.getInfo(id);
|
|
|
|
|
if(entity!=null){
|
|
|
|
|
saleorderitemService.delete(entity);
|
|
|
|
|
QueryWrapper<Salesorder_item0Entity> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.lambda().eq(Salesorder_item0Entity::getSalesOrderId,entity.getId());
|
|
|
|
|
queryWrapper.lambda().select(Salesorder_item0Entity::getPoundlistId);
|
|
|
|
@ -1098,6 +1110,19 @@ public class SaleorderitemController {
|
|
|
|
|
poundlistEntity.setSalesStatus("99");
|
|
|
|
|
}
|
|
|
|
|
poundlistService.updateBatchById(poundlistList);
|
|
|
|
|
if (StringUtils.isNotEmpty(entity.getSourcePoId())){
|
|
|
|
|
JSONArray array = JSON.parseArray(entity.getSourcePoId());
|
|
|
|
|
for (Object purchaseId : array) {
|
|
|
|
|
if (StringUtils.isNotEmpty(String.valueOf(purchaseId))) {
|
|
|
|
|
PurchaseorderitemEntity purchaseorderitemEntity = purchaseorderitemService.getInfo(String.valueOf(purchaseId));
|
|
|
|
|
if (ObjectUtils.isNotEmpty(purchaseorderitemEntity)) {
|
|
|
|
|
purchaseorderitemEntity.setIsTransfer("0");
|
|
|
|
|
purchaseorderitemService.updateById(purchaseorderitemEntity);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
saleorderitemService.delete(entity);
|
|
|
|
|
QueryWrapper<Salesorder_item0Entity> queryWrapperSalesorder_item0=new QueryWrapper<>();
|
|
|
|
|
queryWrapperSalesorder_item0.lambda().eq(Salesorder_item0Entity::getSalesOrderId,entity.getId());
|
|
|
|
|
salesorder_item0Service.remove(queryWrapperSalesorder_item0);
|
|
|
|
|