|
@@ -1028,6 +1028,28 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
return results;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public ResourceVO getResourceDetailed(String code) {
|
|
|
+ Optional<ResourcePO> resourcePO=resourceDao.findByCode(code);
|
|
|
+ ResourceVO resourceVO = new ResourceVO();
|
|
|
+ resourceVO.setCode(resourcePO.get().getCode());
|
|
|
+ resourceVO.setName(resourcePO.get().getName());
|
|
|
+ Optional<ResourceTypePO> type = resourceTypeDao.findByCode(resourcePO.get().getType());
|
|
|
+ resourceVO.setType(type.get().getName());
|
|
|
+ resourceVO.setQuantity(resourcePO.get().getQuantity());
|
|
|
+ resourceVO.setPhotoUrl(resourcePO.get().getPhotoUrl());
|
|
|
+ resourceVO.setDescription(resourcePO.get().getDescription());
|
|
|
+ resourceVO.setScene(resourcePO.get().getScene());
|
|
|
+ resourceVO.setUnitWork(resourcePO.get().getUnitWork());
|
|
|
+ resourceVO.setStandard(resourcePO.get().getStandard());
|
|
|
+ resourceVO.setUnit(resourcePO.get().getUnit());
|
|
|
+ resourceVO.setState(resourcePO.get().getState());
|
|
|
+ resourceVO.setStartTime(resourcePO.get().getStartTime());
|
|
|
+ resourceVO.setPersonnel(resourcePO.get().getPersonnel());
|
|
|
+ resourceVO.setRemarks(resourcePO.get().getRemarks());
|
|
|
+ return resourceVO;
|
|
|
+ }
|
|
|
+
|
|
|
private ProjectOperationControl initProjectPermission(CrowdTestProject project, User user) {
|
|
|
ProjectOperationControl operationControl = new ProjectOperationControl();
|
|
|
if (user == null)
|