fix 74230 已经来款的打包标协会员项目不允许取消打包

This commit is contained in:
lijiarao
2023-07-31 10:51:27 +08:00
parent eff63b6401
commit 0f96c63553
@@ -179,8 +179,14 @@ public class PayPackCompanyProjectServiceImpl extends ServiceImpl<PayPackCompany
PayCommonProject payCommonProject = projectDetailMapper.queryProject(projectId);
Integer chargeWay = payCommonProject.getChargeWay();
Integer affirmIncome = payCommonProject.getAffirmIncome();
if(Objects.equals(chargeWay,PayProjectCommon.CHARGE_WAY2) && (1 == affirmIncome || 2 == affirmIncome)){
throw new JeroBootException("已经确认收入的打包标协会员项目不允许取消打包");
Integer inAccount = payCommonProject.getInAccount();
if(Objects.equals(chargeWay,PayProjectCommon.CHARGE_WAY2)){
if (1 == affirmIncome || 2 == affirmIncome){
throw new JeroBootException("已经确认收入的打包标协会员项目不允许取消打包");
}
if (1 == inAccount || 2 == inAccount){
throw new JeroBootException("已经来款的打包标协会员项目不允许取消打包");
}
}
}
if(Objects.equals(packCompanyProject.getCome(),PackCommon.COME1)){