liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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;
    }
}