|  | @@ -739,37 +739,29 @@ public class ExcelTabController extends BladeController {
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              IPage<TextdictInfoVO> result = textdictInfoService.analysisHtmlDefault(wbsTreePrivate.getPKeyId() + "");
 | 
	
		
			
				|  |  |              if (result != null && result.getRecords() != null && !result.getRecords().isEmpty()) {
 | 
	
		
			
				|  |  | -                result.getRecords().forEach(config -> {
 | 
	
		
			
				|  |  | -                    if (config.getId() == null || config.getId() <= 0) {
 | 
	
		
			
				|  |  | -                        defaultConfigs.add(config);
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                });
 | 
	
		
			
				|  |  | +                defaultConfigs.addAll(result.getRecords());
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 将原配置信息写入到新的html中,先通过colKey匹配,再通过colName匹配。如果匹配不上,则保存到数据库。后续手动配置、修改
 | 
	
		
			
				|  |  |          defaultConfigs.removeIf(config -> {
 | 
	
		
			
				|  |  |              String colKey = config.getColKey();
 | 
	
		
			
				|  |  |              Element element = null;
 | 
	
		
			
				|  |  | +            String colName = config.getColName();
 | 
	
		
			
				|  |  |              if (colKey != null && !colKey.isEmpty()) {
 | 
	
		
			
				|  |  |                  element = doc.select("[keyname='" + config.getColKey() + "']").first();
 | 
	
		
			
				|  |  | -                if (element == null && colKey.contains("__")) {
 | 
	
		
			
				|  |  | -                    element = doc.select("[keyname*='" + colKey.split("__")[0] + "']").first();
 | 
	
		
			
				|  |  | -                    String point = colKey.split("__")[1];
 | 
	
		
			
				|  |  | -                    if (element == null && point.contains("_")) {
 | 
	
		
			
				|  |  | -                        String[] split = point.split("_");
 | 
	
		
			
				|  |  | -                        element = doc.select("[trindex='" + split[0] + "'],[tdindex='" + split[1] + "']").first();
 | 
	
		
			
				|  |  | +                if (element != null && colName != null) {
 | 
	
		
			
				|  |  | +                    String placeholder = element.attr("placeholder");
 | 
	
		
			
				|  |  | +                    if (!StringCNUtils.compareStringIgnoreSpaceAndSymbols(placeholder, colName)) {
 | 
	
		
			
				|  |  | +                        element = null;
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            if (element == null) {
 | 
	
		
			
				|  |  | -                element = doc.select("[placeholder='" + config.getColName() + "']").first();
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  |              if (element != null) {
 | 
	
		
			
				|  |  |                  element.removeAttr("defText");
 | 
	
		
			
				|  |  |                  element.attr("defText", config.getSigRoleName());
 | 
	
		
			
				|  |  |                  return true;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            return false;
 | 
	
		
			
				|  |  | +            return config.getId() != null && config.getId() > 0;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          if (!defaultConfigs.isEmpty()) {
 | 
	
		
			
				|  |  |              List<TextdictInfo> saves = new ArrayList<>();
 |