package com.basic.x01.securityCheck.controller;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
import javax.annotation.Resource;
|
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import com.basic.x01.base.BaseController;
|
import com.basic.x01.securityCheck.mapper.SendListMapper;
|
import com.basic.x01.securityCheck.model.TbSecurityCheckList;
|
import com.basic.x01.system.model.TSysUser;
|
|
/**
|
*
|
*
|
* @company 北京贝思科技术有限公司
|
* @author liuyajun, 8384503@qq.com
|
* @date 2016年2月23日
|
* @time 上午9:59:51
|
*/
|
|
@Controller
|
@Transactional(rollbackFor=Throwable.class)
|
public class SecurityCheckResult extends BaseController {
|
|
public final static String ACTION_ID = "securityCheckResult";
|
|
@Resource
|
SendListMapper listMapper;
|
|
public String securityCheckSendHistory() throws Throwable {
|
TSysUser user = this.getLoingedUser();
|
|
Map<String, Object> param = new HashMap<String, Object>();
|
param.put("orgId", user.getOrgId());
|
|
List<TbSecurityCheckList> sendList =
|
listMapper.getSecurityCheckListByOrgId(
|
this.wrapPageSearchParam(param));
|
|
this.setAttribute("sendList", sendList);
|
this.setAttribute("hasData",
|
(sendList!=null && sendList.size()>0) ? "y":"n");
|
|
return "security-check/org-send-history";
|
}
|
|
public String securityCheckResultView() throws Throwable {
|
|
return "security-check/org-check-result-view";
|
}
|
|
@RequestMapping(value=ACTION_ID)
|
public String securityCheckResult(@Param("pageFunc") String pageFunc) throws Throwable {
|
if(pageFunc==null){
|
pageFunc = "securityCheckSendHistory";
|
}
|
if("securityCheckSendHistory".equals(pageFunc)){
|
return this.securityCheckSendHistory();
|
}
|
|
if("securityCheckResultView".equals(pageFunc)){
|
return this.securityCheckResultView();
|
}
|
|
return null;
|
}
|
}
|