Commit bd49f71d authored by 赵啸非's avatar 赵啸非

更新事项,异步更新关联

parent b962b4d1
...@@ -225,6 +225,11 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService, ...@@ -225,6 +225,11 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
if (ObjectUtils.isEmpty(appQuery.getTargetAppId())) { if (ObjectUtils.isEmpty(appQuery.getTargetAppId())) {
throw new AppException("目标appId不能为空!"); throw new AppException("目标appId不能为空!");
} }
if(appQuery.getSourceAppId()==appQuery.getTargetAppId()){
throw new AppException("源appId不能等于目标appId!");
}
Rest<String> cloneRest = this.service.cloneAppBySameSite(appQuery, getContext()); Rest<String> cloneRest = this.service.cloneAppBySameSite(appQuery, getContext());
if (YesNoEnum.NO.getValue() == cloneRest.getCode()) { if (YesNoEnum.NO.getValue() == cloneRest.getCode()) {
return Rest.fail(cloneRest.getMsg()); return Rest.fail(cloneRest.getMsg());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment