|
|
@ -31,6 +31,7 @@ import com.qs.serve.modules.seeyon.entity.BaseCreateCallbackBo; |
|
|
|
import com.qs.serve.modules.seeyon.entity.BaseCreateProcessBo; |
|
|
|
import com.qs.serve.modules.seeyon.service.SeeYonRequestService; |
|
|
|
import com.qs.serve.modules.seeyon.service.XiaoLuTonService; |
|
|
|
import com.qs.serve.modules.seeyon.service.impl.SeeYonRequestBaseService; |
|
|
|
import com.qs.serve.modules.sys.entity.SysSyncLog; |
|
|
|
import com.qs.serve.modules.sys.entity.SysUser; |
|
|
|
import com.qs.serve.modules.sys.service.SysSyncLogService; |
|
|
@ -107,6 +108,7 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
private final BirCenterRateService centerRateService; |
|
|
|
private final SysSyncLogService sysSyncLogService; |
|
|
|
|
|
|
|
private final SeeYonRequestBaseService seeYonRequestBaseService; |
|
|
|
private final ProjectApisProperties projectApisProperties; |
|
|
|
private final RedisService redisService; |
|
|
|
|
|
|
@ -496,6 +498,7 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
Assert.throwEx("异动的活动,无法操作"); |
|
|
|
} |
|
|
|
TbsCostApply costApply = costApplyService.getById(activity.getCostApplyId()); |
|
|
|
|
|
|
|
if(ReleaseConst.UseFilter){ |
|
|
|
if(!costApply.getChargeState().equals(TbsCostApplyState.State_2_actioning.getCode())){ |
|
|
|
Assert.throwEx("状态不支持释放活动费用"); |
|
|
@ -597,6 +600,15 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
activityPayConditionService.update(payCondition,updLqw); |
|
|
|
//如果为最后的活动,更变费用申请状态
|
|
|
|
costApplyService.flushCostStatus(costApply.getId(),costApply.getContractFlag()!=null&&costApply.getContractFlag().equals(1)); |
|
|
|
// 协议类申请请求OA取消释放拦截
|
|
|
|
if(costApply.getContractFlag().equals(1)){ |
|
|
|
R<String> result = seeYonRequestBaseService.postBase(TbsSeeYonConst.API_CONTRACT_RELEASE |
|
|
|
+"?id="+costApply.getId() |
|
|
|
+"&code="+costApply.getCode(),null,"协议类申请取消释放"); |
|
|
|
if(result==null||result.getStatus()==null||result.getStatus()!=200){ |
|
|
|
Assert.throwEx("协议类取消释放时,调用OA失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
BirActivityCenterGoodsUtil.buildBir(costApply.getId()); |
|
|
|
} |
|
|
|
|
|
|
@ -613,6 +625,17 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
if(activity.getCancelFlag().equals(1)){ |
|
|
|
Assert.throwEx("异动的活动,无法操作"); |
|
|
|
} |
|
|
|
TbsCostApply costApply = costApplyService.getById(activity.getCostApplyId()); |
|
|
|
// 协议类申请请求OA取消释放拦截
|
|
|
|
if(costApply.getContractFlag().equals(1)){ |
|
|
|
R<String> result = seeYonRequestBaseService.postBase(TbsSeeYonConst.API_CONTRACT_RELEASE_CANCEL |
|
|
|
+ "?id="+costApply.getId() |
|
|
|
+ "&code="+costApply.getCode() |
|
|
|
,null,"协议类申请取消释放"); |
|
|
|
if(result==null||result.getStatus()==null||result.getStatus()!=200){ |
|
|
|
Assert.throwEx("协议类取消释放时,调用OA失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
if(activity.getReleaseFlag().equals(1)){ |
|
|
|
//还原活动状态
|
|
|
|
TbsActivity param = new TbsActivity(); |
|
|
@ -627,7 +650,6 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
activityService.updateById(param); |
|
|
|
|
|
|
|
//还原费用申请状态
|
|
|
|
TbsCostApply costApply = new TbsCostApply(); |
|
|
|
costApply.setId(activity.getCostApplyId()); |
|
|
|
costApply.setChargeState(TbsCostApplyState.State_2_actioning.getCode()); |
|
|
|
costApplyService.updateById(costApply); |
|
|
@ -1370,7 +1392,7 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
} |
|
|
|
this.release(verification.getActivityId(),sysUser.getCode(),true,false); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|
TbsActivity activity = activityService.getById(verification.getActivityId()); |
|
|
|