|
|
@ -172,7 +172,14 @@ public class ExpprojectController { |
|
|
|
if(expprojectEntity==null) { |
|
|
|
if(expprojectEntity==null) { |
|
|
|
return Result.error("未找到对应数据"); |
|
|
|
return Result.error("未找到对应数据"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (expproject.getNeedexp()>=expprojectPage.getExpandproList().size()) { |
|
|
|
int a=0; |
|
|
|
|
|
|
|
if ( expprojectPage.getExpandproList() != null && !expprojectPage.getExpandproList().isEmpty()) { |
|
|
|
|
|
|
|
a=expprojectPage.getExpandproList().size(); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
a=0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (expproject.getNeedexp()>=a) { |
|
|
|
expprojectService.updateMain(expproject, expprojectPage.getExpandproList()); |
|
|
|
expprojectService.updateMain(expproject, expprojectPage.getExpandproList()); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|