|
@ -42,7 +42,7 @@ public class JMService {
|
|
|
private String FIND_MY_VACCIN="findMyVaccin";
|
|
|
private String FIND_CHILDREN = "findChildren";
|
|
|
private String FIND_DEPT="findDept";//获取接种门诊
|
|
|
private String FIND_WZYM_BY_MYKH="findWzymBymykh";
|
|
|
private String FIND_WZYM_BY_MYKH="findYzymBymykh";
|
|
|
|
|
|
private String redis_key ="imm:imm_token_key";
|
|
|
|
|
@ -449,11 +449,16 @@ public class JMService {
|
|
|
* @return
|
|
|
*/
|
|
|
public String getToken() throws Exception {
|
|
|
String result = "";
|
|
|
Map<String,String> params = new HashMap<>();
|
|
|
params.put("act", GET_TOKEN);
|
|
|
params.put("accId", accId);
|
|
|
return ylzImmGetSecond("getToken","计免预约-获取口令",params);
|
|
|
String token = redisTemplate.opsForValue().get(redis_key);
|
|
|
if (StringUtils.isEmpty(token)){
|
|
|
Map<String,String> params = new HashMap<>();
|
|
|
params.put("act", GET_TOKEN);
|
|
|
params.put("accId", accId);
|
|
|
return ylzImmGetSecond("getToken","计免预约-获取口令",params);
|
|
|
}else {
|
|
|
return token;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
@ -493,7 +498,7 @@ public class JMService {
|
|
|
params.put("act", FIND_MY_VACCIN);
|
|
|
params.put("accId", accId);
|
|
|
|
|
|
params.put("token", getTokenCheck());
|
|
|
params.put("token_ylz", getTokenCheck());
|
|
|
params.put("deptNum",deptNum);
|
|
|
params.put("etmykh", etmykh);
|
|
|
//params.put("etmykh", "0052182708");
|
|
@ -511,7 +516,7 @@ public class JMService {
|
|
|
Map<String,String> params = new HashMap<>();
|
|
|
params.put("act", FIND_DEPT);
|
|
|
params.put("accId", accId);
|
|
|
params.put("token", getTokenCheck());
|
|
|
params.put("token_ylz", getTokenCheck());
|
|
|
params.put("etmykh", etmykh);
|
|
|
//params.put("etmykh", "0052182708");
|
|
|
return ylzImmGetSecond(FIND_DEPT,"计免预约-获取接种门诊",params);
|
|
@ -528,7 +533,7 @@ public class JMService {
|
|
|
Map<String,String> params = new HashMap<>();
|
|
|
params.put("act", FIND_WZYM_BY_MYKH);
|
|
|
params.put("accId", accId);
|
|
|
params.put("token", getTokenCheck());
|
|
|
params.put("token_ylz", getTokenCheck());
|
|
|
params.put("etmykh", etmykh);
|
|
|
//params.put("etmykh", "0052182708");
|
|
|
/*params.put("act", "findWzymBymykh");
|