更新es,更新文档拆分
This commit is contained in:
+2
-2
@@ -237,8 +237,8 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
|
|||||||
ss.append(" ");
|
ss.append(" ");
|
||||||
}
|
}
|
||||||
String str = ss.toString();
|
String str = ss.toString();
|
||||||
select.append(" LENGTH(standard_name) - LENGTH(REPLACE(standard_name, '").append(searchContent[i])
|
select.append(" ABS(LENGTH(standard_name) - LENGTH(REPLACE(standard_name, '").append(searchContent[i])
|
||||||
.append("',").append(" '").append(str).append("')) ");
|
.append("',").append(" '").append(str).append("'))) ");
|
||||||
if(i != searchContent.length - 1){
|
if(i != searchContent.length - 1){
|
||||||
regexp.append("|");
|
regexp.append("|");
|
||||||
select.append("+");
|
select.append("+");
|
||||||
|
|||||||
@@ -112,4 +112,10 @@ public class LawsHomeNormalSearchVO implements Serializable {
|
|||||||
* 入库时间
|
* 入库时间
|
||||||
*/
|
*/
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private String sortIndex;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -2634,12 +2634,12 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
String cellValue = null;
|
String cellValue = null;
|
||||||
String stringCellValue = cell.getStringCellValue();
|
|
||||||
if (!(CellType.NUMERIC == cell.getCellType() && HSSFDateUtil.isCellDateFormatted(cell))) {
|
if (!(CellType.NUMERIC == cell.getCellType() && HSSFDateUtil.isCellDateFormatted(cell))) {
|
||||||
//设置单元格类型
|
//设置单元格类型
|
||||||
if (y == 0){
|
if (y == 0){
|
||||||
// 条文号精度丢失问题
|
// 条文号精度丢失问题
|
||||||
try {
|
try {
|
||||||
|
String stringCellValue = cell.getStringCellValue();
|
||||||
if (StringUtils.isNotBlank(stringCellValue)){
|
if (StringUtils.isNotBlank(stringCellValue)){
|
||||||
double numericCellValue = cell.getNumericCellValue();
|
double numericCellValue = cell.getNumericCellValue();
|
||||||
BigDecimal bigDecimal = BigDecimal.valueOf(numericCellValue);
|
BigDecimal bigDecimal = BigDecimal.valueOf(numericCellValue);
|
||||||
@@ -2669,6 +2669,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
|||||||
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
cellValue = df.format(d);
|
cellValue = df.format(d);
|
||||||
}else {
|
}else {
|
||||||
|
String stringCellValue = cell.getStringCellValue();
|
||||||
cellValue = stringCellValue;
|
cellValue = stringCellValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user