Commit 12535da2 authored by 赵啸非's avatar 赵啸非

添加消息发送系统

parent 9469328b
...@@ -44,6 +44,9 @@ public class WaitPersonInfo { ...@@ -44,6 +44,9 @@ public class WaitPersonInfo {
@JSONField(name = "id") @JSONField(name = "id")
private Long waitId; private Long waitId;
@JSONField(name = "siteid")
private Long siteId;
@JSONField(name = "idcardData_PhotoFileName") @JSONField(name = "idcardData_PhotoFileName")
private String idcardDataPhotoFileName; private String idcardDataPhotoFileName;
......
...@@ -126,25 +126,26 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService { ...@@ -126,25 +126,26 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
} }
if (!ObjectUtils.isEmpty(waitPersonInfos)) { if (!ObjectUtils.isEmpty(waitPersonInfos)) {
// log.info("waitPersonInfos:{}", JSON.toJSONString(waitPersonInfos)); log.info("waitPersonInfos:{}", JSON.toJSONString(waitPersonInfos));
List<DoworkRecordsEntity> recordsEntityList = waitPersonInfos.stream().map(item -> { List<DoworkRecordsEntity> recordsEntityList = waitPersonInfos.stream().map(item -> {
DoworkRecordsEntity careRecordsEntity = new DoworkRecordsEntity(); DoworkRecordsEntity doworkRecordsEntity = new DoworkRecordsEntity();
careRecordsEntity.initAttrValue(); doworkRecordsEntity.initAttrValue();
careRecordsEntity.setName(item.getIdcardName()); doworkRecordsEntity.setName(item.getIdcardName());
careRecordsEntity.setContact(item.getPhone()); doworkRecordsEntity.setSiteId(item.getSiteId());
careRecordsEntity.setIdCard(item.getIdcardIDCardNo()); doworkRecordsEntity.setContact(item.getPhone());
careRecordsEntity.setBussinessId(item.getBusinessId()); doworkRecordsEntity.setIdCard(item.getIdcardIDCardNo());
careRecordsEntity.setBussinessName(item.getBusinessName()); doworkRecordsEntity.setBussinessId(item.getBusinessId());
careRecordsEntity.setService(item.getBusinessName()); doworkRecordsEntity.setBussinessName(item.getBusinessName());
careRecordsEntity.setQueueNo(item.getFlowNum()); doworkRecordsEntity.setService(item.getBusinessName());
careRecordsEntity.setTakeTime(item.getTakeTime() == null ? new Date() : item.getTakeTime()); doworkRecordsEntity.setQueueNo(item.getFlowNum());
careRecordsEntity.setPersonId(DataUtil.converStr2Long(item.getPeopleId(), 0)); doworkRecordsEntity.setTakeTime(item.getTakeTime() == null ? new Date() : item.getTakeTime());
careRecordsEntity.setWaitId(item.getWaitId()); doworkRecordsEntity.setPersonId(DataUtil.converStr2Long(item.getPeopleId(), 0));
careRecordsEntity.setProcessStatus(ProcessStatusEnum.排队中.getValue()); doworkRecordsEntity.setWaitId(item.getWaitId());
careRecordsEntity.setCreateTime(new Date()); doworkRecordsEntity.setProcessStatus(ProcessStatusEnum.排队中.getValue());
careRecordsEntity.setCreateUserName("system"); doworkRecordsEntity.setCreateTime(new Date());
careRecordsEntity.setCreateUserId(1L); doworkRecordsEntity.setCreateUserName("system");
return careRecordsEntity; doworkRecordsEntity.setCreateUserId(1L);
return doworkRecordsEntity;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
if (!ObjectUtils.isEmpty(recordsEntityList)) { if (!ObjectUtils.isEmpty(recordsEntityList)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment