|
@ -270,7 +270,7 @@ public class CreditLogService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String response = null;
|
|
String response = null;
|
|
String url =getBaseUrl() + "findAccount";
|
|
|
|
|
|
String url ="http://localhost:10051/svr-health-bank/" + "findAccount";
|
|
object.put("patientIds",patientIds.toArray());
|
|
object.put("patientIds",patientIds.toArray());
|
|
Map<String,String> params = new HashMap<>();
|
|
Map<String,String> params = new HashMap<>();
|
|
params.put("account",object.toJSONString());
|
|
params.put("account",object.toJSONString());
|
|
@ -303,11 +303,12 @@ public class CreditLogService {
|
|
* @param size
|
|
* @param size
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public JSONObject selectByActivityRanking1(String activityId,Integer page,Integer size){
|
|
|
|
|
|
public JSONObject selectByActivityRanking1(String activityId,String patientId,Integer page,Integer size){
|
|
String response = null;
|
|
String response = null;
|
|
String url =getBaseUrl() + "selectByActivityRanking1";
|
|
|
|
|
|
String url ="http://localhost:10051/svr-health-bank/" + "selectByActivityRanking1";
|
|
Map<String,String> params = new HashMap<>();
|
|
Map<String,String> params = new HashMap<>();
|
|
params.put("activityId",activityId);
|
|
params.put("activityId",activityId);
|
|
|
|
params.put("patientId",patientId);
|
|
params.put("page",page.toString());
|
|
params.put("page",page.toString());
|
|
params.put("size",size.toString());
|
|
params.put("size",size.toString());
|
|
JSONObject object1 = null;
|
|
JSONObject object1 = null;
|
|
@ -317,8 +318,8 @@ public class CreditLogService {
|
|
JSONArray array = object1.getJSONArray("detailModelList");
|
|
JSONArray array = object1.getJSONArray("detailModelList");
|
|
for (int i = 0;array != null && i<array.size();i++){
|
|
for (int i = 0;array != null && i<array.size();i++){
|
|
JSONObject object2 = array.getJSONObject(i);
|
|
JSONObject object2 = array.getJSONObject(i);
|
|
String patientId = object2.getString("patientId");
|
|
|
|
Patient patient = patientDao.findByCode(patientId);
|
|
|
|
|
|
String patientId1 = object2.getString("patientId");
|
|
|
|
Patient patient = patientDao.findByCode(patientId1);
|
|
object2.put("patient",patient);
|
|
object2.put("patient",patient);
|
|
}
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
@ -565,7 +566,7 @@ public class CreditLogService {
|
|
object.put("idCard",patient.getIdcard());
|
|
object.put("idCard",patient.getIdcard());
|
|
object.put("openId",patient.getOpenid());
|
|
object.put("openId",patient.getOpenid());
|
|
object.put("unionId",patient.getUnionid());
|
|
object.put("unionId",patient.getUnionid());
|
|
String url =getBaseUrl() + "addStepIntegrate";
|
|
|
|
|
|
String url ="http://localhost:10051/svr-health-bank/" + "addStepIntegrate";
|
|
Map<String,String> params = new HashMap<>();
|
|
Map<String,String> params = new HashMap<>();
|
|
params.put("creditsDetail",object.toJSONString());
|
|
params.put("creditsDetail",object.toJSONString());
|
|
try {
|
|
try {
|