trick9191 hace 7 años
padre
commit
d3422cc3ec

+ 6 - 9
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/weixin/applets/AppletsService.java

@ -117,7 +117,7 @@ public class AppletsService extends BaseService {
        return list.get(0);
    }
    public Boolean setPatientStep(String patient,Integer step){
    public Boolean setPatientStep(String patient,Integer step) throws Exception{
        String sql = "SELECT " +
                " s.id, " +
                " 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;
    }