Commit 5ef06e9a by leejoker

🎨调整格式

1 parent 3bd1fc6e
...@@ -96,12 +96,9 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS ...@@ -96,12 +96,9 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
// 1 发给客户群 // 1 发给客户群
if (customerMessagePushDto.getPushType().equals(WeConstans.SEND_MESSAGE_GROUP)) { if (customerMessagePushDto.getPushType().equals(WeConstans.SEND_MESSAGE_GROUP)) {
if (customerMessagePushDto.getStaffId() == null || customerMessagePushDto.getStaffId().equals("")) { if (customerMessagePushDto.getStaffId() == null || customerMessagePushDto.getStaffId().equals("")) {
throw new WeComException("请选择人员!"); throw new WeComException("请选择人员!");
} }
//查询群组信息列表
//通过员工id查询群列表 //通过员工id查询群列表
WeGroup weGroup = new WeGroup(); WeGroup weGroup = new WeGroup();
weGroup.setUserIds(customerMessagePushDto.getStaffId()); weGroup.setUserIds(customerMessagePushDto.getStaffId());
...@@ -109,12 +106,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS ...@@ -109,12 +106,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
if (CollectionUtils.isEmpty(groups)) { if (CollectionUtils.isEmpty(groups)) {
throw new WeComException("没有客户群!"); throw new WeComException("没有客户群!");
} }
} }
//保存原始数据信息表 //保存原始数据信息表
long messageOriginalId = weCustomerMessageOriginalService.saveWeCustomerMessageOriginal(customerMessagePushDto); long messageOriginalId = weCustomerMessageOriginalService.saveWeCustomerMessageOriginal(customerMessagePushDto);
long messageId = SnowFlakeUtil.nextId(); long messageId = SnowFlakeUtil.nextId();
//保存映射信息 //保存映射信息
...@@ -131,14 +126,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS ...@@ -131,14 +126,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
if (null == customerMessagePushDto.getSettingTime() || customerMessagePushDto.getSettingTime().equals("")) { if (null == customerMessagePushDto.getSettingTime() || customerMessagePushDto.getSettingTime().equals("")) {
weCustomerMessageService.sendMessgae(customerMessagePushDto, messageId, customers, groups); weCustomerMessageService.sendMessgae(customerMessagePushDto, messageId, customers, groups);
} else { } else {
WeCustomerMessageTimeTask timeTask = new WeCustomerMessageTimeTask(messageId, customerMessagePushDto, customers, groups WeCustomerMessageTimeTask timeTask = new WeCustomerMessageTimeTask(messageId, customerMessagePushDto, customers, groups
, DateUtils.getMillionSceondsBydate(customerMessagePushDto.getSettingTime())); , DateUtils.getMillionSceondsBydate(customerMessagePushDto.getSettingTime()));
customerMessageTimeTaskMapper.saveWeCustomerMessageTimeTask(timeTask); customerMessageTimeTaskMapper.saveWeCustomerMessageTimeTask(timeTask);
} }
} }
@Override @Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!