|
|
@@ -595,7 +595,14 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
map.setUserAdvice(param.getUserAdvice());
|
|
|
if (collection.getStatus() == 1) {
|
|
|
//用户第一次确认添加医生消息
|
|
|
- DoctorMsg msg = getDoctorMsg(collection);
|
|
|
+ DoctorMsg msg = new DoctorMsg();
|
|
|
+ String name = collection.getUserName() != null ? collection.getUserName() : "-";
|
|
|
+ //没套餐包的添加医生信息采集建议消息
|
|
|
+ msg.setTitle("用户采集信息建议");
|
|
|
+ msg.setType(3);
|
|
|
+ msg.setContent("患者:" + name + "的信息采集,前往建议");
|
|
|
+ msg.setDoctorId(collection.getDoctorId());
|
|
|
+ msg.setCreateTime(DateUtils.getNowDate());
|
|
|
//插入医生消息
|
|
|
doctorMsgMapper.insertDoctorMsg(msg);
|
|
|
//第一次确认
|
|
|
@@ -629,25 +636,6 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
return R.error("用户确认失败");
|
|
|
}
|
|
|
|
|
|
- private static @NotNull DoctorMsg getDoctorMsg(FsUserInformationCollection collection) {
|
|
|
- DoctorMsg msg = new DoctorMsg();
|
|
|
- String name = collection.getUserName() != null ? collection.getUserName() : "-";
|
|
|
- if (collection.getIsPackage() == 0) {
|
|
|
- //没套餐包的添加医生信息采集建议消息
|
|
|
- msg.setTitle("用户采集信息建议");
|
|
|
- msg.setType(3);
|
|
|
- msg.setContent("患者:" + name + "的信息采集,前往建议");
|
|
|
- msg.setDoctorId(collection.getDoctorId());
|
|
|
- msg.setCreateTime(DateUtils.getNowDate());
|
|
|
- } else if (collection.getIsPackage() == 1) {
|
|
|
- msg.setTitle("用户信息采集开方");
|
|
|
- msg.setType(1);
|
|
|
- msg.setContent("患者:" + name + "的信息采集,前往开方");
|
|
|
- msg.setDoctorId(collection.getDoctorId());
|
|
|
- msg.setCreateTime(DateUtils.getNowDate());
|
|
|
- }
|
|
|
- return msg;
|
|
|
- }
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|