Przeglądaj źródła

(大屏)新建重要指标的读取功能:增加2个显示字段。

zhuoning 3 lat temu
rodzic
commit
477111c821

+ 4 - 2
huimv-farm-produce/src/main/java/com/huimv/produce/produce/service/impl/ImportantDynamicServiceImpl.java

@@ -70,6 +70,8 @@ public class ImportantDynamicServiceImpl implements IImportantDynamicService {
             List dataList = new ArrayList();
             List dataList = new ArrayList();
             JSONObject newJo = new JSONObject();
             JSONObject newJo = new JSONObject();
             outJa.add(newJo);
             outJa.add(newJo);
+            newJo.put("title",titleJo.getString("title"));
+            newJo.put("subtitle",titleJo.getString("subtitle"));
             for (ProdImportantIndicatorEntity importantEntity : importantList) {
             for (ProdImportantIndicatorEntity importantEntity : importantList) {
                 if (titleJo.getString("type").trim().equalsIgnoreCase(importantEntity.getStockType())) {
                 if (titleJo.getString("type").trim().equalsIgnoreCase(importantEntity.getStockType())) {
                     if (importantEntity.getYear() == Integer.parseInt(year) && importantEntity.getMonth() == Integer.parseInt(month)) {
                     if (importantEntity.getYear() == Integer.parseInt(year) && importantEntity.getMonth() == Integer.parseInt(month)) {
@@ -98,9 +100,9 @@ public class ImportantDynamicServiceImpl implements IImportantDynamicService {
         JSONArray titleJa = new JSONArray();
         JSONArray titleJa = new JSONArray();
         JSONObject psyJo = new JSONObject();
         JSONObject psyJo = new JSONObject();
         titleJa.add(psyJo);
         titleJa.add(psyJo);
-        psyJo.put("name", "PSY");
+        psyJo.put("title", "PSY");
         psyJo.put("type", "psy");
         psyJo.put("type", "psy");
-        psyJo.put("comment", "");
+        psyJo.put("subtitle", "衡量母猪群繁殖性能力指标,一头母猪一年提供的成活仔猪数");
         return titleJa;
         return titleJa;
     }
     }