|
|
@ -1279,16 +1279,13 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
List<String> uuidList = Arrays.asList(uuidArray); |
|
|
|
List<String> uuidList = Arrays.asList(uuidArray); |
|
|
|
|
|
|
|
|
|
|
|
//查询库中是否包含对应数据
|
|
|
|
//查询库中是否包含对应数据
|
|
|
|
QueryWrapper<BaseTDxRecordInvoice> queryWrap = new QueryWrapper<>(); |
|
|
|
|
|
|
|
queryWrap.in("uuid",uuidList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DynamicContextHolder.push("business"+ DbConstant.BUSINESS_READ); |
|
|
|
DynamicContextHolder.push("business"+ DbConstant.BUSINESS_READ); |
|
|
|
List<BaseTDxRecordInvoice> list = baseIRzTDxRecordInvoiceService.list(queryWrap); |
|
|
|
List<String> list = baseIRzTDxRecordInvoiceService.findSuspendStatus(uuidList); |
|
|
|
if (list == null || list.isEmpty()){ |
|
|
|
if (list == null || list.isEmpty()){ |
|
|
|
return ResponseEntity.ok(R.error("没有可操作的数据")); |
|
|
|
return ResponseEntity.ok(R.error("没有可操作的数据")); |
|
|
|
} |
|
|
|
} |
|
|
|
List<String> suspendTypes = list.stream().map(BaseTDxRecordInvoice::getSuspendStatus).collect(Collectors.toList()); |
|
|
|
|
|
|
|
if (suspendTypes.contains("1")&& (suspendTypes.contains("0")||suspendTypes.contains(null) || suspendTypes.contains(""))){ |
|
|
|
if (list.contains("1")&& (list.contains("0")||list.contains(null) || list.contains(""))){ |
|
|
|
return ResponseEntity.ok(R.error("同时存在暂挂状态为是和否的数据,请重新选择!")); |
|
|
|
return ResponseEntity.ok(R.error("同时存在暂挂状态为是和否的数据,请重新选择!")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|