feat: 普通项目管理如果是打包状态则不可编辑

This commit is contained in:
2024-03-13 10:13:45 +08:00
parent 8b81744dcd
commit bd1a21d74e
@@ -173,6 +173,10 @@ public class PayCommonProjectServiceImpl extends ServiceImpl<PayCommonProjectMap
if(!rolePermissionService.getRolePermission("generalProject:edit") && !Objects.equals(sysUser.getId(),payCommonProjectOld.getPrincipalId())){
throw new JeroBootException(payCommonProjectOld.getChargeProject() + "项目不可操作!");
}
// 项目为打包状态则不可编辑
if(Objects.equals(payCommonProjectOld.getPack(),PayProjectCommon.PACKAGING1)){
throw new JeroBootException("项目已打包,不可编辑!");
}
// 项目为打包状态 || 到账!=0 || 开票!=0 || 邮寄!=0
if(!Objects.equals(payCommonProject.getChargeCompanyId(),payCommonProjectOld.getChargeCompanyId())
&& (Objects.equals(payCommonProject.getPack(),PayProjectCommon.PACKAGING1)