| | |
| | | private void doImportData(AssetImportLogDetailDto assetImportLogDetailDto) { |
| | | JSONObject data = JSONObject.parseObject(assetImportLogDetailDto.getContent()); |
| | | PropertyWhiteListFlowDto whites = BeanConvertUtil.covertBean(data, PropertyWhiteListFlowDto.class); |
| | | int count = importPropertyWhiteListfFlowServiceSMOImpl.countPropertyWhiteListFlowFilter(whites); |
| | | if (count > 0) { |
| | | throw new IllegalArgumentException("重复的导入内容"); |
| | | } |
| | | int flag = importPropertyWhiteListfFlowServiceSMOImpl.savePropertyWhiteListFlow(whites); |
| | | if (flag < 1) { |
| | | throw new IllegalArgumentException("导入失败"); |