fix 74230 已经来款的打包标协会员项目不允许取消打包
This commit is contained in:
+8
-2
@@ -179,8 +179,14 @@ public class PayPackCompanyProjectServiceImpl extends ServiceImpl<PayPackCompany
|
|||||||
PayCommonProject payCommonProject = projectDetailMapper.queryProject(projectId);
|
PayCommonProject payCommonProject = projectDetailMapper.queryProject(projectId);
|
||||||
Integer chargeWay = payCommonProject.getChargeWay();
|
Integer chargeWay = payCommonProject.getChargeWay();
|
||||||
Integer affirmIncome = payCommonProject.getAffirmIncome();
|
Integer affirmIncome = payCommonProject.getAffirmIncome();
|
||||||
if(Objects.equals(chargeWay,PayProjectCommon.CHARGE_WAY2) && (1 == affirmIncome || 2 == affirmIncome)){
|
Integer inAccount = payCommonProject.getInAccount();
|
||||||
throw new JeroBootException("已经确认收入的打包标协会员项目不允许取消打包");
|
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)){
|
if(Objects.equals(packCompanyProject.getCome(),PackCommon.COME1)){
|
||||||
|
|||||||
Reference in New Issue
Block a user