|
@@ -1,11 +1,15 @@
|
|
package com.sky.ioc.service.fitness.impl;
|
|
package com.sky.ioc.service.fitness.impl;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import com.sky.ioc.entity.Indeicator;
|
|
import com.sky.ioc.entity.params.IocDateParam;
|
|
import com.sky.ioc.entity.params.IocDateParam;
|
|
import com.sky.ioc.service.fitness.HealthService;
|
|
import com.sky.ioc.service.fitness.HealthService;
|
|
import com.sky.ioc.tool.FalseData;
|
|
import com.sky.ioc.tool.FalseData;
|
|
import com.sky.ioc.tool.ReturnMsg;
|
|
import com.sky.ioc.tool.ReturnMsg;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* TODO 健康小屋
|
|
* TODO 健康小屋
|
|
* @Description
|
|
* @Description
|
|
@@ -17,7 +21,20 @@ import org.springframework.stereotype.Service;
|
|
public class HealthServiceImpl implements HealthService {
|
|
public class HealthServiceImpl implements HealthService {
|
|
@Override
|
|
@Override
|
|
public ReturnMsg getCoreIndicators(IocDateParam iocDateParam) {
|
|
public ReturnMsg getCoreIndicators(IocDateParam iocDateParam) {
|
|
- return ReturnMsg.ok(FalseData.REPORTFORMSLIST4);
|
|
|
|
|
|
+ Indeicator indeicator = new Indeicator();
|
|
|
|
+ List<JSONObject> objects = indeicator.getList();
|
|
|
|
+ objects.get(0).put("value",100);
|
|
|
|
+ objects.get(0).put("compare",0.4);
|
|
|
|
+
|
|
|
|
+ objects.get(1).put("value",20);
|
|
|
|
+ objects.get(1).put("compare",0.4);
|
|
|
|
+
|
|
|
|
+ objects.get(2).put("value",21);
|
|
|
|
+ objects.get(2).put("compare",-0.4);
|
|
|
|
+ objects.get(3).put("value","高血压");
|
|
|
|
+ indeicator.setWorthAttention("员工腰椎问题持续上升");
|
|
|
|
+ indeicator.setList(objects);
|
|
|
|
+ return ReturnMsg.ok(indeicator);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|