|
@ -805,6 +805,11 @@ public class DataQualityHomeService extends BaseJpaService {
|
|
|
*/
|
|
|
public Map<String, Object> getHealthyTrend(String flag, String dateField, String month) throws Exception {
|
|
|
TreeMap<String, Object> map = new TreeMap<>();
|
|
|
//先设置值,防止某几个月份没值,前端直接不展示
|
|
|
for(int i=6;i>0;i--){
|
|
|
String data = DateUtil.formatDate(DateUtil.addMonth(-i, DateUtil.formatCharDateYMD(month+"-01")), "yyyy-MM");
|
|
|
map.put(data,0L);
|
|
|
}
|
|
|
TransportClient transportClient = elasticSearchPool.getClient();
|
|
|
String start = "";
|
|
|
String end = "";
|