更新es,更新文档拆分

This commit is contained in:
梁琦涛
2024-08-29 19:09:25 +08:00
parent 3e54575d04
commit c8dec7bd82
3 changed files with 10 additions and 3 deletions
@@ -237,8 +237,8 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
ss.append(" ");
}
String str = ss.toString();
select.append(" LENGTH(standard_name) - LENGTH(REPLACE(standard_name, '").append(searchContent[i])
.append("',").append(" '").append(str).append("')) ");
select.append(" ABS(LENGTH(standard_name) - LENGTH(REPLACE(standard_name, '").append(searchContent[i])
.append("',").append(" '").append(str).append("'))) ");
if(i != searchContent.length - 1){
regexp.append("|");
select.append("+");
@@ -112,4 +112,10 @@ public class LawsHomeNormalSearchVO implements Serializable {
* 入库时间
*/
private Date createTime;
/**
* 排序
*/
private String sortIndex;
}
@@ -2634,12 +2634,12 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
continue;
}
String cellValue = null;
String stringCellValue = cell.getStringCellValue();
if (!(CellType.NUMERIC == cell.getCellType() && HSSFDateUtil.isCellDateFormatted(cell))) {
//设置单元格类型
if (y == 0){
// 条文号精度丢失问题
try {
String stringCellValue = cell.getStringCellValue();
if (StringUtils.isNotBlank(stringCellValue)){
double numericCellValue = cell.getNumericCellValue();
BigDecimal bigDecimal = BigDecimal.valueOf(numericCellValue);
@@ -2669,6 +2669,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
cellValue = df.format(d);
}else {
String stringCellValue = cell.getStringCellValue();
cellValue = stringCellValue;
}
}