| | |
| | | return R.ok(this.baseMapper.queryAllByList(comPbCheckUnit)); |
| | | } |
| | | |
| | | /** |
| | | * 批量导入报道单位 |
| | | * @param list 导入数据 |
| | | * @param communityId 社区id |
| | | * @param userId 用户id |
| | | * @return 导入结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R importCheckUnit(List<ComPbCheckUnitExcelVO> list, Long communityId, Long userId){ |
| | |
| | | ComPbCheckUnitErrorExcelVO checkUnitError = new ComPbCheckUnitErrorExcelVO(); |
| | | BeanUtils.copyProperties(checkUnit,checkUnitError); |
| | | checkUnitError.setError("该单位已存在,不可重复导入"); |
| | | mistakes.add(checkUnitError); |
| | | }else{ |
| | | comPbCheckUnit = new ComPbCheckUnit(); |
| | | BeanUtils.copyProperties(checkUnit,comPbCheckUnit); |