This commit is contained in:
linfso 2024-12-10 09:19:36 +08:00
parent f2902be494
commit 2de561fb26
2 changed files with 18 additions and 6 deletions

View File

@ -2334,17 +2334,18 @@ public class EmisBaseService {
/**
* 发送消息给用户
* @param empCode
* @param empCode,多个使用逗号隔开
* @param title
* @param msg
* @param clickPath
*/
public void sendNoticeToEmpUser(String empCode,String title,String msg,String clickPath){
Long userId=null;
if(!StringUtils.isEmpty(empCode)){
SysUser empUser=getEmisStaffByCode(empCode);
userId=empUser.getUserId();
sysNoticeService.addNoticeToUser(title,msg,clickPath,userId);
String [] empCodeArr=empCode.split(",");
for(int i=0;i<empCodeArr.length;i++) {
SysUser empUser = getEmisStaffByCode(empCode);
sysNoticeService.addNoticeToUser(title, msg, clickPath, empUser.getUserId());
}
}
}

View File

@ -93,7 +93,12 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
@Override
public int insertEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply)
{
return emisWaybillAjustApplyMapper.insertEmisWaybillAjustApply(emisWaybillAjustApply);
emisWaybillAjustApplyMapper.insertEmisWaybillAjustApply(emisWaybillAjustApply);
String title="费用调整审核,请及时审批,单号【"+emisWaybillAjustApply.getBillCode()+"】";
sendNoticeToEmpUser("padmin,88888042,88888047,88888034,88888059,88888083", title, "", "d24/orderManagement/UserOrderList");
return 1;
}
/**
@ -240,6 +245,9 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
// sysNoticeService.addNoticeToUser(title,title,"d24/orderManagement/UserOrderList",userId);
// }
String title="费用调整已审批通过,单号【"+emisWaybillAjustApply.getBillCode()+"】";
sendNoticeToEmpUser(emisWaybillAjustApply.getApplyManCode(), title, "", "d24/orderManagement/UserOrderList");
// 审核通过
return emisWaybillAjustApplyMapper.auditCenterPass(emisWaybillAjustApply);
@ -261,6 +269,9 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
emisWaybillAjustApply.setCenterConfirmNote(inputObj.getCenterConfirmNote());
emisWaybillAjustApply.setCenterConfirmManCode(getCurrentUser().getEmpCode());
String title="费用调整审批拒绝,单号【"+emisWaybillAjustApply.getBillCode()+"】";
sendNoticeToEmpUser(emisWaybillAjustApply.getApplyManCode(), title, "", "d24/orderManagement/UserOrderList");
return emisWaybillAjustApplyMapper.auditCenterNoPass(emisWaybillAjustApply);
}