|
@@ -1,22 +1,29 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.dto.VersionDetailDTO;
|
|
|
import com.diagbot.facade.VersionDetailFacade;
|
|
|
import com.diagbot.vo.VersionDetailIdVO;
|
|
|
import com.diagbot.vo.VersionDetailVO;
|
|
|
import com.diagbot.vo.VersionInfoAndDetailIdVO;
|
|
|
+import com.diagbot.vo.VersionInfoIdVO;
|
|
|
+
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-
|
|
|
-import javax.validation.Valid;
|
|
|
|
|
|
/**
|
|
|
* @author wangfeng
|
|
@@ -64,4 +71,15 @@ public class VersionDetailController {
|
|
|
|
|
|
return RespDTO.onSuc(res);
|
|
|
}
|
|
|
+ @ApiOperation(value = "根据版本id获取版本详情信息[by:wangfeng]", notes = "根据版本id获取版本详情信息")
|
|
|
+ @PostMapping("/getDetailById")
|
|
|
+ @SysLogger("getDetailById")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<List<VersionDetailDTO>> getDetailById(@Valid @RequestBody VersionInfoIdVO versionInfoIdVO) {
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
+ ids.add(versionInfoIdVO.getId());
|
|
|
+ List<VersionDetailDTO> data = versionDetailFacade.getByIds(ids);
|
|
|
+
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
}
|