记得上下班打卡 | git大法好,push需谨慎

Commit f5425622 authored by 胡佳晨's avatar 胡佳晨

修改权限

parent 05b05292
......@@ -203,7 +203,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
if (!mongoMerchantUtils.judgeIsPermission(step2Param.getPerformancesId(), step2Param.getMerchantId(), new String[]{
MerchantAuthorizationConst.PerformancePermission.EDIT.getId(),
})) {
if(vo.getMerchantId()!=step2Param.getMerchantId()){
if(!vo.getMerchantId().equals(step2Param.getMerchantId())){
return ResponseDto.failure(ErrorMapping.get(29999));
}
}
......@@ -443,14 +443,16 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
@Override
public ResponseDto<PerformanceStep2Param> getStep2(String performancesId) {
String merchantId = CurrentUtil.getCurrentUid();
PerformancePartnerVo data = mongoMerchantUtils.getPerformancePartnerVo(performancesId);
if (data == null) {
return ResponseDto.failure(ErrorMapping.get(20104));
}
if (!mongoMerchantUtils.judgeIsPermission(performancesId,merchantId, new String[]{
MerchantAuthorizationConst.PerformancePermission.EDIT.getId(),
})) {
if(!data.getMerchantId().equals(merchantId)){
return ResponseDto.failure(ErrorMapping.get(29999));
}
PerformancePartnerVo data = mongoMerchantUtils.getPerformancePartnerVo(performancesId);
if (data == null) {
return ResponseDto.failure(ErrorMapping.get(20104));
}
List<KylinTicketTimesPartnerVo> kylinTicketTimesPartnerVos = ticketTimesPartnerService.getTimesMongoList(performancesId);
List<TicketTimesTicketCreatePartnerVo> ticketTimesTicketCreatePartnerVoList = ObjectUtil.getTicketTimesTicketCreatePartnerVoList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment