md
This commit is contained in:
parent
f2902be494
commit
2de561fb26
@ -2334,17 +2334,18 @@ public class EmisBaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 发送消息给用户
|
* 发送消息给用户
|
||||||
* @param empCode
|
* @param empCode,多个使用逗号隔开
|
||||||
* @param title
|
* @param title
|
||||||
* @param msg
|
* @param msg
|
||||||
* @param clickPath
|
* @param clickPath
|
||||||
*/
|
*/
|
||||||
public void sendNoticeToEmpUser(String empCode,String title,String msg,String clickPath){
|
public void sendNoticeToEmpUser(String empCode,String title,String msg,String clickPath){
|
||||||
Long userId=null;
|
|
||||||
if(!StringUtils.isEmpty(empCode)){
|
if(!StringUtils.isEmpty(empCode)){
|
||||||
SysUser empUser=getEmisStaffByCode(empCode);
|
String [] empCodeArr=empCode.split(",");
|
||||||
userId=empUser.getUserId();
|
for(int i=0;i<empCodeArr.length;i++) {
|
||||||
sysNoticeService.addNoticeToUser(title,msg,clickPath,userId);
|
SysUser empUser = getEmisStaffByCode(empCode);
|
||||||
|
sysNoticeService.addNoticeToUser(title, msg, clickPath, empUser.getUserId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -93,7 +93,12 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
|
|||||||
@Override
|
@Override
|
||||||
public int insertEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply)
|
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);
|
// sysNoticeService.addNoticeToUser(title,title,"d24/orderManagement/UserOrderList",userId);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
String title="费用调整已审批通过,单号【"+emisWaybillAjustApply.getBillCode()+"】";
|
||||||
|
sendNoticeToEmpUser(emisWaybillAjustApply.getApplyManCode(), title, "", "d24/orderManagement/UserOrderList");
|
||||||
|
|
||||||
// 审核通过
|
// 审核通过
|
||||||
return emisWaybillAjustApplyMapper.auditCenterPass(emisWaybillAjustApply);
|
return emisWaybillAjustApplyMapper.auditCenterPass(emisWaybillAjustApply);
|
||||||
|
|
||||||
@ -261,6 +269,9 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
|
|||||||
emisWaybillAjustApply.setCenterConfirmNote(inputObj.getCenterConfirmNote());
|
emisWaybillAjustApply.setCenterConfirmNote(inputObj.getCenterConfirmNote());
|
||||||
emisWaybillAjustApply.setCenterConfirmManCode(getCurrentUser().getEmpCode());
|
emisWaybillAjustApply.setCenterConfirmManCode(getCurrentUser().getEmpCode());
|
||||||
|
|
||||||
|
String title="费用调整审批拒绝,单号【"+emisWaybillAjustApply.getBillCode()+"】";
|
||||||
|
sendNoticeToEmpUser(emisWaybillAjustApply.getApplyManCode(), title, "", "d24/orderManagement/UserOrderList");
|
||||||
|
|
||||||
return emisWaybillAjustApplyMapper.auditCenterNoPass(emisWaybillAjustApply);
|
return emisWaybillAjustApplyMapper.auditCenterNoPass(emisWaybillAjustApply);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user