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

修改app克隆

parent 851049d8
...@@ -9145,7 +9145,9 @@ data| object |数据对象 ...@@ -9145,7 +9145,9 @@ data| object |数据对象
  summary| String |简介   summary| String |简介
  distribute| Integer |是否部署(0.否,1.是)   distribute| Integer |是否部署(0.否,1.是)
  dateUpdate| Integer |是否数据更新(0.否,1.是)   dateUpdate| Integer |是否数据更新(0.否,1.是)
  dateUpdate| array |数据结果集   appDatasetList| array |数据结果集
  applianceSiteScope| Integer |适用站点范围数量
  siteIdList| array |适用范围站点列表
  createTime| Date |创建时间   createTime| Date |创建时间
  updateUserId| Long |更新用户   updateUserId| Long |更新用户
  updateTime| Date |更新时间   updateTime| Date |更新时间
......
...@@ -66,6 +66,13 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService, ...@@ -66,6 +66,13 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
super.init(model, context); super.init(model, context);
} }
@Override
protected int infoAfter(Long id, Map<String, Object> model, AppEntity entity, Context context) throws AppException {
List<AppEntity> appEntityList = this.service.find(new AppQuery().appCode(entity.getAppCode()), context);
entity.setApplianceSiteScope(appEntityList.size());
entity.setSiteIdList(appEntityList.stream().map(AppEntity::getSiteId).collect(Collectors.toList()));
return super.infoAfter(id, model, entity, context);
}
/** /**
* app应用部署 * app应用部署
......
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