bug: 搜索中心字段排序问题
This commit is contained in:
@@ -140,12 +140,18 @@ public class SendBussMQService {
|
||||
saveMap.put("put_time_data","0" + putTimeStr);
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
saveMap.put("put_time_data",-1000000000000000000L);
|
||||
saveMap.put("put_time_data",-1000000000L);
|
||||
}
|
||||
}else{
|
||||
saveMap.put("put_time_data",-1000000000000000000L);
|
||||
saveMap.put("put_time_data",-1000000000L);
|
||||
}
|
||||
saveMap.put("warehousingTime",sdf.format(infoEO.getCreationTime())); // 入库时间
|
||||
if (infoEO.getCreationTime().getTime() > 12) {
|
||||
saveMap.put("warehousingTimeStamp",infoEO.getCreationTime().getTime()); // 入库时间戳
|
||||
}else {
|
||||
saveMap.put("warehousingTimeStamp", "0" + infoEO.getCreationTime().getTime()); // 入库时间戳
|
||||
}
|
||||
|
||||
|
||||
//查询字典表,形成Hash映射提升速度
|
||||
List<DicTypeEO> dicInfo = dicTypeEODao.getDicInfo("dic_id","dic_type_code", "dic_type_name","show_index");
|
||||
|
||||
@@ -210,6 +210,11 @@ public class SendStandMQService {
|
||||
saveMap.put("CHJL",infoEO.getCHJL());
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
saveMap.put("warehousingTime",sdf.format(infoEO.getCreationTime())); // 入库时间
|
||||
if (infoEO.getCreationTime().getTime() > 12) {
|
||||
saveMap.put("warehousingTimeStamp",infoEO.getCreationTime().getTime()); // 入库时间戳
|
||||
}else {
|
||||
saveMap.put("warehousingTimeStamp", "0" + infoEO.getCreationTime().getTime()); // 入库时间戳
|
||||
}
|
||||
|
||||
String fieldInfo = InitStandAttrUtil.queryField;
|
||||
List<String> fieldInfoList = Arrays.asList(fieldInfo .split(",")).stream().map(s -> (s.trim())).collect(Collectors.toList());
|
||||
@@ -231,6 +236,20 @@ public class SendStandMQService {
|
||||
if(fieldValue.contains("null")){
|
||||
fieldValue = fieldValue.replace("null","");
|
||||
}
|
||||
if ("SSRQ".equals(field)) {
|
||||
if (infoMap.get(field) != null && StringUtils.isNotBlank(infoMap.get(field).toString())) {
|
||||
try {
|
||||
Date parse = sdf.parse(infoMap.get(field).toString());
|
||||
fieldValue = String.valueOf(parse.getTime());
|
||||
// ES中的排序问题,时间戳需要补0
|
||||
if (fieldValue.length() <= 12) {
|
||||
fieldValue = "0" + fieldValue;
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
fieldValue = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
saveMap.put(field+"Name",fieldValue);
|
||||
}catch (Exception e){
|
||||
|
||||
Reference in New Issue
Block a user