| | |
| | | int updateNum = 0; |
| | | int errorNum = 0; |
| | | for (ImportPractitionerExcel placeExcel : data) { |
| | | if (Strings.isBlank(placeExcel.getHouseCode()) || Strings.isBlank(placeExcel.getHouseCode())) { |
| | | if (Strings.isBlank(placeExcel.getHouseCode())) { |
| | | errorNum++; |
| | | continue; |
| | | } |
| | |
| | | StringBuilder builder = new StringBuilder("导入完成!"); |
| | | builder.append("其中本次表格共有 ").append(totalNum).append(" 条数据,") |
| | | .append("成功导入 ").append(importNum).append(" 条数据。"); |
| | | if (updateNum > 0) { |
| | | builder.append("其中有 ").append(updateNum).append(" 条数据已存在。"); |
| | | } |
| | | if (errorNum > 0) { |
| | | builder.append("共有 ").append(errorNum).append(" 条数据由于无企业(店铺)名称信息或无地址编号未导入!"); |
| | | builder.append("共有 ").append(errorNum).append(" 条数据通过地址编号未查询到场所信息未导入!"); |
| | | } |
| | | return builder.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 统计审核从业人员 |
| | | * @param placePractitioner |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer selectPlacePractitionerCount( PlacePractitionerVO placePractitioner) { |
| | | CommonParamSet commonParamSet = new CommonParamSet().invoke(PlacePractitionerVO.class, placePractitioner); |
| | | Integer result = baseMapper.selectPlacePractitionerCount(placePractitioner, commonParamSet.getGridCodeList(), |
| | | commonParamSet.getRegionChildCodesList(), |
| | | commonParamSet.getIsAdministrator()); |
| | | return result; |
| | | } |
| | | } |