|
@ -117,7 +117,7 @@ public class AppletsService extends BaseService {
|
|
return list.get(0);
|
|
return list.get(0);
|
|
}
|
|
}
|
|
|
|
|
|
public Boolean setPatientStep(String patient,Integer step){
|
|
|
|
|
|
public Boolean setPatientStep(String patient,Integer step) throws Exception{
|
|
String sql = "SELECT " +
|
|
String sql = "SELECT " +
|
|
" s.id, " +
|
|
" s.id, " +
|
|
" s.patientcode " +
|
|
" s.patientcode " +
|
|
@ -142,14 +142,11 @@ public class AppletsService extends BaseService {
|
|
}
|
|
}
|
|
|
|
|
|
//上传步数记录
|
|
//上传步数记录
|
|
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());
|
|
|
|
}
|
|
|
|
|
|
com.alibaba.fastjson.JSONObject json = new com.alibaba.fastjson.JSONObject();
|
|
|
|
json.put("patientId",patient);
|
|
|
|
json.put("taskCode","ACTIVITY_STEP");
|
|
|
|
taskService.createActiveRecord(json);
|
|
|
|
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|