进项票和销项票与业务日期相同

product
bawei 1 year ago
parent 8a9f9ef569
commit 8c108feba3

@ -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 {

@ -197,7 +197,8 @@ public class InvoicesController {
for (PoundlistEntity poundlistEntity: poundlistEntityList) { for (PoundlistEntity poundlistEntity: poundlistEntityList) {
poundlistEntity.setPurchaseStatus("1"); poundlistEntity.setPurchaseStatus("1");
poundlistEntity.setIsInvoicing("1"); poundlistEntity.setIsInvoicing("1");
poundlistEntity.setInputDate(new Date()); // poundlistEntity.setInputDate(new Date());
poundlistEntity.setInputDate(invoicesCrForm.getBusinessDate());
} }
poundlistService.updateBatchById(poundlistEntityList); poundlistService.updateBatchById(poundlistEntityList);
}else { }else {

Loading…
Cancel
Save