forked from integrated_whb/integrated_whb
57 lines
2.0 KiB
Java
57 lines
2.0 KiB
Java
package com.zcloud.controller.comprehensive;
|
|
|
|
import com.zcloud.controller.base.BaseController;
|
|
import com.zcloud.entity.Page;
|
|
import com.zcloud.entity.PageData;
|
|
import com.zcloud.service.comprehensive.TrafficSafetyThingsCheckService;
|
|
import com.zcloud.util.Const;
|
|
import com.zcloud.util.DateUtil;
|
|
import com.zcloud.util.Jurisdiction;
|
|
import com.zcloud.util.Tools;
|
|
import org.apache.commons.lang.StringUtils;
|
|
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.RequestParam;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import java.util.Date;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Controller
|
|
@RequestMapping("/thingscheck")
|
|
public class TrafficSafetyThingsCheckController extends BaseController {
|
|
|
|
@Autowired
|
|
private TrafficSafetyThingsCheckService trafficSafetyThingsCheckService;
|
|
|
|
//列表
|
|
@RequestMapping(value = "/listForSafetyThingsCheck")
|
|
@ResponseBody
|
|
public Object listForSecurityNotice(Page page) throws Exception {
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
String errInfo = "success";
|
|
PageData pd = new PageData();
|
|
pd = this.getPageData();
|
|
|
|
String TRANSPORTCOMPANY = pd.getString("TRANSPORTCOMPANY"); // 运输企业
|
|
if (Tools.notEmpty(TRANSPORTCOMPANY))
|
|
pd.put("TRANSPORTCOMPANY", TRANSPORTCOMPANY.trim());
|
|
|
|
String CHECKITEMTYPE = pd.getString("CHECKITEMTYPE"); // 运输车辆
|
|
if (Tools.notEmpty(CHECKITEMTYPE))
|
|
pd.put("CHECKITEMTYPE", CHECKITEMTYPE.trim());
|
|
|
|
page.setPd(pd);
|
|
List<PageData> varList = trafficSafetyThingsCheckService.listForThingsCheck(page);
|
|
map.put("varList", varList);
|
|
map.put("page", page);
|
|
map.put("result", errInfo);
|
|
return map;
|
|
}
|
|
|
|
}
|