|
@ -5,6 +5,7 @@ import com.yihu.wlyy.entity.patient.PatientAimSports;
|
|
|
import com.yihu.wlyy.repository.patient.PatientAimSportsDao;
|
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
|
import com.yihu.wlyy.service.BaseService;
|
|
|
import com.yihu.wlyy.service.app.health.bank.TaskService;
|
|
|
import com.yihu.wlyy.util.SecretUtils;
|
|
|
import com.yihu.wlyy.util.http.HttpResponse;
|
|
|
import com.yihu.wlyy.util.http.HttpUtils;
|
|
@ -41,6 +42,8 @@ public class AppletsService extends BaseService {
|
|
|
private PatientDao patientDao;
|
|
|
@Autowired
|
|
|
private PatientAimSportsDao patientAimSportsDao;
|
|
|
@Autowired
|
|
|
private TaskService taskService;
|
|
|
|
|
|
public Map<String, Object> checkApplets(String code) throws Exception {
|
|
|
HttpUtils httpUtils = new HttpUtils();
|
|
@ -138,6 +141,15 @@ public class AppletsService extends BaseService {
|
|
|
patientAimSportsDao.save(patientAimSports);
|
|
|
}
|
|
|
|
|
|
//上传步数记录
|
|
|
try{
|
|
|
com.alibaba.fastjson.JSONObject json = new com.alibaba.fastjson.JSONObject();
|
|
|
json.put("patientId",patient);
|
|
|
json.put("taskCode","ACTIVITY_STEP");
|
|
|
taskService.createActiveRecord(json);
|
|
|
}catch (Exception e){
|
|
|
logger.info(e.toString());
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
|