|
|
@ -185,10 +185,15 @@ public class ArinvoicesController {
|
|
|
|
queryWrapper.lambda().select(Salesorder_item0Entity::getPoundlistId);
|
|
|
|
queryWrapper.lambda().select(Salesorder_item0Entity::getPoundlistId);
|
|
|
|
List<String> poundlistIdList = salesorder_item0Service.listObjs(queryWrapper).stream().map(o -> (String) o).collect(Collectors.toList());
|
|
|
|
List<String> poundlistIdList = salesorder_item0Service.listObjs(queryWrapper).stream().map(o -> (String) o).collect(Collectors.toList());
|
|
|
|
List<PoundlistEntity> poundlistEntityList = poundlistService.queryPoundListByIds(poundlistIdList);
|
|
|
|
List<PoundlistEntity> poundlistEntityList = poundlistService.queryPoundListByIds(poundlistIdList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date date1 = new Date(arinvoicesCrForm.getBusinessDate());
|
|
|
|
|
|
|
|
|
|
|
|
for (PoundlistEntity poundlistEntity: poundlistEntityList) {
|
|
|
|
for (PoundlistEntity poundlistEntity: poundlistEntityList) {
|
|
|
|
poundlistEntity.setSalesStatus("2");//修改磅单状态
|
|
|
|
poundlistEntity.setSalesStatus("2");//修改磅单状态
|
|
|
|
poundlistEntity.setIsExpense("1");//修改销项票状态
|
|
|
|
poundlistEntity.setIsExpense("1");//修改销项票状态
|
|
|
|
poundlistEntity.setOutputDate(new Date());//修改销项票日期
|
|
|
|
|
|
|
|
|
|
|
|
// poundlistEntity.setOutputDate(new Date());//修改销项票日期
|
|
|
|
|
|
|
|
poundlistEntity.setOutputDate(date1);//修改销项票日期
|
|
|
|
}
|
|
|
|
}
|
|
|
|
poundlistService.updateBatchById(poundlistEntityList);
|
|
|
|
poundlistService.updateBatchById(poundlistEntityList);
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|