|  |  |  | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.OBJECT_EMP.getCode(), "未查询到转库单类型信息【"+wTransfer.getType()+"】"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | sendOutNotice(companyUser.getId(),wTransfer.getId(),wTransfer.getCode(),notices_type_transfer,Constants.getNoticeUrl(loginUserInfo.getCompany(),Constants.DINGDING_NOTICE_URL.out)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //记录操作记录 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void sendOutNotice(Integer userId ,Integer billId , String billCode ,Constants.Notices_Type_Transfer notices_type_transfer,String url){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //发送通知 | 
|---|
|  |  |  | Notices notices = new Notices(); | 
|---|
|  |  |  | notices.setCompanyUserId(userId); | 
|---|
|  |  |  | 
|---|
|  |  |  | notices.setContent("【"+billCode+"】"+ notices_type_transfer.getContent().replace("{optType}","出库")); | 
|---|
|  |  |  | notices.setTitle(notices_type_transfer.getTitle()); | 
|---|
|  |  |  | notices.setObjId(billId); | 
|---|
|  |  |  | notices.setUrl(url.replace("{id}",billId.toString())); | 
|---|
|  |  |  | if(!Objects.isNull(url)){ | 
|---|
|  |  |  | notices.setUrl(url.replace("{id}",billId.toString())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | noticesExtService.sendNotice(notices); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void sendOutNotice(LoginUserInfo user,Integer userId ,Integer billId , String billCode ,Constants.Notices_Type_Transfer notices_type_transfer,String url){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //发送通知 | 
|---|
|  |  |  | Notices notices = new Notices(); | 
|---|
|  |  |  | notices.setCompanyUserId(userId); | 
|---|
|  |  |  | 
|---|
|  |  |  | notices.setContent("【"+billCode+"】"+ notices_type_transfer.getContent().replace("{optType}","出库")); | 
|---|
|  |  |  | notices.setTitle(notices_type_transfer.getTitle()); | 
|---|
|  |  |  | notices.setObjId(billId); | 
|---|
|  |  |  | notices.setUrl(url.replace("{id}",billId.toString())); | 
|---|
|  |  |  | if(!Objects.isNull(url)){ | 
|---|
|  |  |  | notices.setUrl(url.replace("{id}",billId.toString())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | noticesExtService.sendNoticeNologin(notices,user); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void sendInNotice(Integer userId ,Integer billId , String billCode ,Constants.Notices_Type_Transfer notices_type_transfer,String url){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //发送通知 | 
|---|
|  |  |  | Notices notices = new Notices(); | 
|---|
|  |  |  | notices.setCompanyUserId(userId); | 
|---|
|  |  |  | 
|---|
|  |  |  | notices.setContent("【"+billCode+"】"+ notices_type_transfer.getContent().replace("{optType}","入库")); | 
|---|
|  |  |  | notices.setTitle(notices_type_transfer.getTitle()); | 
|---|
|  |  |  | notices.setObjId(billId); | 
|---|
|  |  |  | notices.setUrl(url.replace("{id}",billId.toString())); | 
|---|
|  |  |  | if(!Objects.isNull(url)){ | 
|---|
|  |  |  | notices.setUrl(url.replace("{id}",billId.toString())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | noticesExtService.sendNotice(notices); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|