|
|
@@ -22,10 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.HashMap;
|
|
|
@@ -42,6 +39,7 @@ public class CaseController extends BaseController {
|
|
|
@Autowired
|
|
|
private CaseLogic caseLogic;
|
|
|
|
|
|
+ //obsoleted
|
|
|
@RequestMapping(value = UrlConstants.API_MANAGER + "case/public", method = RequestMethod.GET)
|
|
|
public List<CaseVO> getManagerPublicCases() {
|
|
|
return caseLogic.getManagerPublicCases();
|
|
|
@@ -53,6 +51,7 @@ public class CaseController extends BaseController {
|
|
|
return caseLogic.getCases(caseIds);
|
|
|
}
|
|
|
|
|
|
+ //obsoleted
|
|
|
@RequestMapping(value = UrlConstants.API_MANAGER + "case/private", method = RequestMethod.GET)
|
|
|
public List<CaseVO> getManagerPrivateCase(HttpServletRequest request) {
|
|
|
long managerId = RequestUtils.getManagerId(request);
|
|
|
@@ -75,6 +74,11 @@ public class CaseController extends BaseController {
|
|
|
return caseLogic.searchCases(isPublic, userId ,subjectId, pageable);
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(value = UrlConstants.API+"case/{caseId}", method = RequestMethod.GET)
|
|
|
+ public CaseExtendsVO get(@PathVariable("caseId") long caseId, HttpServletRequest request) throws Exception{
|
|
|
+ return caseLogic.getCaseExtends(caseId);
|
|
|
+ }
|
|
|
+
|
|
|
//--------------------------------------------case 数据迁移---------------------------------------------------------------
|
|
|
|
|
|
@Autowired
|