|
@@ -16,6 +16,7 @@ import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.github.pagehelper.Page;
|
|
|
import com.zhongzheng.common.core.domain.entity.SysUser;
|
|
|
+import com.zhongzheng.common.core.domain.entity.TopSysUser;
|
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.type.EncryptHandler;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
@@ -118,6 +119,15 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
|
|
|
@Autowired
|
|
|
private IClassGradeUserService classGradeUserService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ITopInformRemindRelevanceService topInformRemindRelevanceService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ITopInformRemindService topInformRemindService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ITopInformSysUserService topInformSysUserService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IInformRemindRelevanceService informRemindRelevanceService;
|
|
|
|
|
@@ -1639,18 +1649,18 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
|
|
|
@Override
|
|
|
public void informRemindOrderCheck(String result) {
|
|
|
//订单审核结果通知
|
|
|
- List<InformRemindRelevance> remindRelevances = informRemindRelevanceService.list(new LambdaQueryWrapper<InformRemindRelevance>().eq(InformRemindRelevance::getType, 2));
|
|
|
+ List<TopInformRemindRelevance> remindRelevances = topInformRemindRelevanceService.list(new LambdaQueryWrapper<TopInformRemindRelevance>().eq(TopInformRemindRelevance::getType, 2));
|
|
|
if (CollectionUtils.isEmpty(remindRelevances)){
|
|
|
return;
|
|
|
}
|
|
|
- InformRemindVo informRemindVo = informRemindService.queryByName("订单审核结果通知");
|
|
|
- for (InformRemindRelevance remindVo : remindRelevances) {
|
|
|
- SysUser sysUser = sysUserService.getById(remindVo.getRelevanceId());
|
|
|
+ InformRemindVo informRemindVo = topInformRemindService.queryByName("订单审核结果通知");
|
|
|
+ for (TopInformRemindRelevance remindVo : remindRelevances) {
|
|
|
+ TopSysUser sysUser = topSysUserService.getById(remindVo.getRelevanceId());
|
|
|
if (ObjectUtil.isNull(sysUser)) {
|
|
|
continue;
|
|
|
}
|
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
|
- InformSysUserAddBo informUserAddBo = new InformSysUserAddBo();
|
|
|
+ TopInformSysUserAddBo informUserAddBo = new TopInformSysUserAddBo();
|
|
|
informUserAddBo.setUserId(sysUser.getUserId());
|
|
|
informUserAddBo.setSendStatus(1);
|
|
|
informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
@@ -1660,7 +1670,7 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
|
|
|
informUserAddBo.setSystemStatus(1);
|
|
|
informUserAddBo.setRemind("订单审核结果通知");
|
|
|
informUserAddBo.setText(String.format("订单审核结果通知:%s", result));
|
|
|
- informSysUserService.insertByAddBo(informUserAddBo);
|
|
|
+ topInformSysUserService.insertByAddBo(informUserAddBo);
|
|
|
}
|
|
|
if (informRemindVo.getNoteStatus().equals(1) && StringUtils.isNotBlank(sysUser.getPhonenumber())) {
|
|
|
//短信提醒
|
|
@@ -2184,7 +2194,7 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
|
|
|
topOldOrderCheckLogService.updateById(check);
|
|
|
}
|
|
|
//消息通知
|
|
|
- informRemindOrderCheck(String.format("【%s】订单已通过【%s】审核",bo.getOrderSn(),bo.getCheckRoleName()));
|
|
|
+ informRemindOrderCheck(String.format("【%s】订单已通过【%s】审核",bo.getOrderSn(),bo.getLoginName()));
|
|
|
}
|
|
|
TopOldOrder oldOrder = baseMapper.getOrderBySn(bo.getOrderSn());
|
|
|
if (oldOrder.getOrderFrom() != 1){
|