Authored by Lixiaodi

增加H5

... ... @@ -71,7 +71,8 @@ public class ResourceServiceImpl implements IResourceService{
}
List<ResourceGetBo> resourceGetBoList = new ArrayList<>();
for(Resources res : resourcesList){
ResourceGetBo bo = new ResourceGetBo(res.getId(), res.getName(), Integer.valueOf(1).equals(res.getPlatformId()) ? "APP" : "小程序",
ResourceGetBo bo = new ResourceGetBo(res.getId(), res.getName(), getPlatformName(res.getPlatformId()),
res.getCode(), res.getCreateTime());
bo.setSortId(res.getSortId());
resourceGetBoList.add(bo);
... ... @@ -303,4 +304,19 @@ public class ResourceServiceImpl implements IResourceService{
});
}
private String getPlatformName(Integer platformId) {
if (platformId != null) {
if (platformId == 1) {
return "APP";
}
if (platformId == 2) {
return "小程序";
}
if (platformId == 3) {
return "H5";
}
}
return "小程序";
}
}
... ...