|
@ -1892,6 +1892,8 @@ public class SignWebService extends BaseService {
|
|
Patient patient = patientService.findByCode(renew.getPatient());
|
|
Patient patient = patientService.findByCode(renew.getPatient());
|
|
if (patient != null && StringUtils.isNotBlank(patient.getOpenid())) {
|
|
if (patient != null && StringUtils.isNotBlank(patient.getOpenid())) {
|
|
|
|
|
|
|
|
data.put("agent","0");
|
|
|
|
|
|
if ("0".equals(state)) {
|
|
if ("0".equals(state)) {
|
|
if (StringUtils.isNotEmpty(refuseReason)){
|
|
if (StringUtils.isNotEmpty(refuseReason)){
|
|
data.put("content", refuseReason);
|
|
data.put("content", refuseReason);
|
|
@ -1903,6 +1905,7 @@ public class SignWebService extends BaseService {
|
|
first = first.replace("key1",(renew.getName()==null?"":renew.getName())).replace("br","\n");
|
|
first = first.replace("key1",(renew.getName()==null?"":renew.getName())).replace("br","\n");
|
|
String remark = templateConfig.getRemark();
|
|
String remark = templateConfig.getRemark();
|
|
|
|
|
|
|
|
|
|
data.put("first", first);
|
|
data.put("first", first);
|
|
data.put("remark", remark);
|
|
data.put("remark", remark);
|
|
/*data.put("first", renew.getName() + ",您好!\n" +
|
|
/*data.put("first", renew.getName() + ",您好!\n" +
|
|
@ -1915,7 +1918,6 @@ public class SignWebService extends BaseService {
|
|
first = first.replace("key1",(renew.getName()==null?"":renew.getName())).replace("br","\n");
|
|
first = first.replace("key1",(renew.getName()==null?"":renew.getName())).replace("br","\n");
|
|
String remark = templateConfig.getRemark();
|
|
String remark = templateConfig.getRemark();
|
|
String keyword4 = templateConfig.getKeyword4();
|
|
String keyword4 = templateConfig.getKeyword4();
|
|
|
|
|
|
data.put("first", first);
|
|
data.put("first", first);
|
|
data.put("remark", remark);
|
|
data.put("remark", remark);
|
|
data.put("content", keyword4);
|
|
data.put("content", keyword4);
|
|
@ -1929,6 +1931,9 @@ public class SignWebService extends BaseService {
|
|
}else {
|
|
}else {
|
|
//发送代理人
|
|
//发送代理人
|
|
JSONArray jsonArray = weiXinOpenIdUtils.getAgentOpenId(patient.getCode(), patient.getOpenid());
|
|
JSONArray jsonArray = weiXinOpenIdUtils.getAgentOpenId(patient.getCode(), patient.getOpenid());
|
|
|
|
|
|
|
|
data.put("agent","1");
|
|
|
|
|
|
if (jsonArray != null && jsonArray.length() > 0) {
|
|
if (jsonArray != null && jsonArray.length() > 0) {
|
|
for (int i = 0; i < jsonArray.length(); i++) {
|
|
for (int i = 0; i < jsonArray.length(); i++) {
|
|
JSONObject j = jsonArray.getJSONObject(i);
|
|
JSONObject j = jsonArray.getJSONObject(i);
|