Commit e452e93b0f07105cbd25294a739b22b8dea8390d

Authored by 房远帅
1 parent 422a48fd

采购-报价管理:分配人员消息提醒

... ... @@ -23,6 +23,7 @@ import com.lframework.starter.web.inner.service.system.SysDeptService;
23 23 import com.lframework.starter.web.inner.service.system.SysRoleService;
24 24 import com.lframework.starter.web.inner.service.system.SysUserDeptService;
25 25 import com.lframework.starter.web.inner.service.system.SysUserService;
  26 +import com.lframework.xingyun.sc.handlers.MessageHandler;
26 27 import com.lframework.xingyun.sc.procurement.entity.SupplierQuotationDeal;
27 28 import com.lframework.xingyun.sc.procurement.entity.SupplierQuotationProject;
28 29 import com.lframework.xingyun.sc.procurement.entity.SupplierQuotationProjectQuote;
... ... @@ -75,6 +76,8 @@ public class SupplierQuotationDealServiceImpl
75 76 private SysUserService sysUserService;
76 77 @Resource
77 78 private SysRoleService sysRoleService;
  79 + @Resource
  80 + private MessageHandler messageHandler;
78 81
79 82 @Transactional(rollbackFor = Exception.class)
80 83 @Override
... ... @@ -158,6 +161,12 @@ public class SupplierQuotationDealServiceImpl
158 161 .eq(SupplierQuotationDeal::getId, data.getId());
159 162 getBaseMapper().update(updateWrapper);
160 163
  164 + //消息提醒
  165 + List<String> userIdList = new ArrayList<>();
  166 + userIdList.add(principal.getId());
  167 + messageHandler.sendMsg(userIdList, "供应商报价分配提醒", "您在项目" + data.getProductName()
  168 + + "中被分配为供应商" + data.getSupplierName() + "的负责人,请尽快为此供应商发起业务员报价!", data.getId(), null);
  169 +
161 170 OpLogUtil.setExtra(vo);
162 171 }
163 172
... ...