|
|
@@ -57,20 +57,20 @@ public class PtlAgreementDeptServiceImpl extends ServiceImpl<PtlAgreementDeptMap
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void agreementIsAuthorized(String deptId, String agreementId) {
|
|
|
+ public void agreementIsAuthorized(List<String> deptList, String agreementId) {
|
|
|
//add by hxl 2024-10-25 注释掉从 协议调度授权部门的协议逻辑 ==================begin==================
|
|
|
boolean flag = sysSwitchConfigService.xysqDisplaySwitches();
|
|
|
if(flag){
|
|
|
//新逻辑从协议组授权获取
|
|
|
- if(StringUtils.isNotBlank(deptId)){
|
|
|
- List<String> ids =ptlAgreementGroupLinkDeptMapper.getAgreementByDeptId(agreementId, deptId);
|
|
|
+ if(!deptList.isEmpty()){
|
|
|
+ List<String> ids =ptlAgreementGroupLinkDeptMapper.getAgreementByDeptId(agreementId, deptList);
|
|
|
if (ids.isEmpty()) {
|
|
|
throw new SystemException("协议或调度协议未授权,请联系团队长授权");
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
//原先逻辑
|
|
|
- List<PtlAgreementDept> list = list(byAgreementId(agreementId).eq(PtlAgreementDept::getDeptId, deptId));
|
|
|
+ List<PtlAgreementDept> list = list(byAgreementId(agreementId).eq(PtlAgreementDept::getDeptId, deptList.get(0)));
|
|
|
//==================================================================== end==================
|
|
|
if (list.isEmpty()) {
|
|
|
throw new SystemException("请联系团队长授权");
|