查看bug修复

pull/5/head
liujun 2023-12-21 16:59:50 +08:00
parent e552502458
commit f59d2b0500
1 changed files with 30 additions and 0 deletions

View File

@ -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;
}
}