| | |
| | | public <T extends Comparable<T>> void check(String key, T value, String serialNumber, Map<String, YwThreshold> thresholds, WorkOrder workOrder, CompareType compareType, String errorType); |
| | | |
| | | |
| | | void addBatch (WorkOrderWhite workOrderWhite); |
| | | Result addBatch (WorkOrderWhite workOrderWhite); |
| | | |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void addBatch(WorkOrderWhite workOrderWhite) { |
| | | public Result addBatch(WorkOrderWhite workOrderWhite) { |
| | | List<String> errorTypeListAdd = workOrderWhite.getErrorTypeList(); |
| | | List<WorkOrderWhite> whites = workOrderWhiteMapper.selectList(); |
| | | for (WorkOrderWhite white : whites) { |
| | |
| | | workOrderWhiteMapper.deleteAll(); |
| | | workOrderWhiteMapper.insertBatch(whites); |
| | | } |
| | | return Result.ok(); |
| | | } |
| | | |
| | | private <T extends Comparable<T>> T parseThreshold(String thresholdStr, Class<?> type) { |