integrated_traffic/src/main/java/com/zcloud/controller/hiddenDangerCheckStandardCu.../hiddenDangerCheckStandardDi...

51 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.zcloud.controller.hiddenDangerCheckStandardCustom;
import com.zcloud.controller.base.BaseController;
import com.zcloud.entity.PageData;
import com.zcloud.service.hiddenDangerCheckStandardCustom.HiddenDangerCheckStandardDictionaryService;
import com.zcloud.util.Jurisdiction;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 说明:隐患排查数据字典
* 作者luoxiaobao
* 官网www.qdkjchina.com
*/
@Controller
@RequestMapping("/hiddenstandardDictionary")
public class hiddenDangerCheckStandardDictionaryController extends BaseController {
@Autowired
private HiddenDangerCheckStandardDictionaryService hiddenstandardDictionaryService;
/**
* 列表
*
* @param
* @throws Exception
*/
@RequestMapping(value = "/list")
@RequiresPermissions("hiddendictionary:list")
@ResponseBody
public Object list() throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
List<PageData> varList = hiddenstandardDictionaryService.list(pd);
map.put("varList", varList);
map.put("result", errInfo);
return map;
}
}