|
@ -240,11 +240,12 @@ public class AppealService extends BaseService {
|
|
if (appeal.getIdentity() == 2) {
|
|
if (appeal.getIdentity() == 2) {
|
|
String creater = appeal.getCreater();
|
|
String creater = appeal.getCreater();
|
|
SimpleDateFormat formatDate = new SimpleDateFormat("yyyy年MM月dd日 HH:mm");
|
|
SimpleDateFormat formatDate = new SimpleDateFormat("yyyy年MM月dd日 HH:mm");
|
|
String newDate = formatDate.format(new Date());
|
|
|
|
|
|
Date createTime = appeal.getCreateTime();
|
|
|
|
String newDate = formatDate.format(createTime);
|
|
String title = "新增系统消息";
|
|
String title = "新增系统消息";
|
|
String content = "您在" + newDate + "提交的意见反馈已处理,您可点此查看处理结果";
|
|
|
|
|
|
String content = "您在" + newDate + "提交的账号申诉已处理,您可点此查看处理结果";
|
|
Message message = new Message();
|
|
Message message = new Message();
|
|
message.setType(10);
|
|
|
|
|
|
message.setType(11);
|
|
message.setCode(UUID.randomUUID().toString());
|
|
message.setCode(UUID.randomUUID().toString());
|
|
message.setCzrq(new Date());
|
|
message.setCzrq(new Date());
|
|
message.setCreateTime(new Date());
|
|
message.setCreateTime(new Date());
|
|
@ -254,14 +255,16 @@ public class AppealService extends BaseService {
|
|
message.setSender("system");//设置发送的用户
|
|
message.setSender("system");//设置发送的用户
|
|
message.setTitle(title);
|
|
message.setTitle(title);
|
|
message.setReadonly(1);//是否只读消息
|
|
message.setReadonly(1);//是否只读消息
|
|
|
|
message.setRelationCode(id.toString());
|
|
|
|
|
|
//wlyy给医生发送系统消息
|
|
//wlyy给医生发送系统消息
|
|
Doctor doctor = doctorDao.findByCode(creater);
|
|
Doctor doctor = doctorDao.findByCode(creater);
|
|
String doctorOpenID = doctor.getOpenid();
|
|
String doctorOpenID = doctor.getOpenid();
|
|
String url = wlyyService + "/patient/feedback/sendMessage";
|
|
|
|
|
|
String url = wlyyService + "/doctor/feedback/sendMessage";
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
params.add(new BasicNameValuePair("receiver", creater));
|
|
params.add(new BasicNameValuePair("receiver", creater));
|
|
params.add(new BasicNameValuePair("title", title));
|
|
params.add(new BasicNameValuePair("title", title));
|
|
|
|
params.add(new BasicNameValuePair("type", "11"));
|
|
params.add(new BasicNameValuePair("content", content));
|
|
params.add(new BasicNameValuePair("content", content));
|
|
|
|
|
|
HttpClientUtil.post(url, params, "UTF-8");
|
|
HttpClientUtil.post(url, params, "UTF-8");
|