查看bug修复
parent
e552502458
commit
f59d2b0500
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.controller.api;
|
||||
|
||||
import com.zcloud.controller.base.BaseController;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.service.bus.CorpInfoService;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/openApi/preventCorp")
|
||||
public class ApiXgfDepartmentController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private CorpInfoService corpInfoService;
|
||||
|
||||
/**
|
||||
* 获取所有公司
|
||||
*/
|
||||
@RequestMapping(value = "/getAllPreventionCorp")
|
||||
@ResponseBody
|
||||
private PageData getAllPreventionCorp() throws Exception {
|
||||
PageData response = new PageData();
|
||||
response.put("result", "success");
|
||||
response.put("data", corpInfoService.listAll(new PageData()));
|
||||
return response;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue