|
|
|
@ -148,6 +148,8 @@ public class VoucherController {
|
|
|
|
|
List<VoucherDO> list = pageResult.getList();
|
|
|
|
|
for (VoucherDO voucherDO:list
|
|
|
|
|
) {
|
|
|
|
|
//如果未归档才检查完整性
|
|
|
|
|
if(!voucherDO.getFileStatus().equals(AccountingStatusEnum.LOGFILE.getValue())) {
|
|
|
|
|
String remark = " ";
|
|
|
|
|
Long id = voucherDO.getId();
|
|
|
|
|
AttachmentExportReqVO attachmentExportReqVO = new AttachmentExportReqVO();
|
|
|
|
@ -182,15 +184,22 @@ public class VoucherController {
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
if (i != 4) {
|
|
|
|
|
voucherDO.setCherks(0);
|
|
|
|
|
voucherDO.setCherks(Integer.valueOf(AccountingStatusEnum.INCOMPLETE.getValue()));
|
|
|
|
|
} else {
|
|
|
|
|
voucherDO.setCherks(1);
|
|
|
|
|
voucherDO.setCherks(Integer.valueOf(AccountingStatusEnum.COMPLETE.getValue()));
|
|
|
|
|
}
|
|
|
|
|
VoucherUpdateReqVO voucherUpdateReqVO = new VoucherUpdateReqVO();
|
|
|
|
|
voucherUpdateReqVO.setId(id);
|
|
|
|
|
voucherUpdateReqVO.setCherks(voucherDO.getCherks());
|
|
|
|
|
voucherUpdateReqVO.setRemark(remark);
|
|
|
|
|
voucherService.updateVoucher(voucherUpdateReqVO);
|
|
|
|
|
}else {
|
|
|
|
|
VoucherUpdateReqVO voucherUpdateReqVO = new VoucherUpdateReqVO();
|
|
|
|
|
voucherUpdateReqVO.setId(voucherDO.getId());
|
|
|
|
|
voucherUpdateReqVO.setCherks(Integer.valueOf(AccountingStatusEnum.COMPLETE.getValue()));
|
|
|
|
|
voucherUpdateReqVO.setRemark("");
|
|
|
|
|
voucherService.updateVoucher(voucherUpdateReqVO);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|