新增isp运营商查询方法
This commit is contained in:
72
src/main/java/com/nis/domain/dashboard/SysIspInfo.java
Normal file
72
src/main/java/com/nis/domain/dashboard/SysIspInfo.java
Normal file
@@ -0,0 +1,72 @@
|
||||
package com.nis.domain.dashboard;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysIspInfo implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 2642565275696732948L;
|
||||
private Long id;
|
||||
private String ispName;// 通信运营商名称,
|
||||
private Integer ispCode;// 通信运营商编码,
|
||||
private String businessTypeName;//业务类型名称,
|
||||
private Integer businessTypeCode;//业务类型编码,
|
||||
private String ispKeyName;//运营商唯一标识名称,例如ktel-mxpe:1001,
|
||||
private Integer ispKeyCode;// 运营商唯一标识编码,
|
||||
private Date createTime;
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getIspName() {
|
||||
return ispName;
|
||||
}
|
||||
public void setIspName(String ispName) {
|
||||
this.ispName = ispName;
|
||||
}
|
||||
public Integer getIspCode() {
|
||||
return ispCode;
|
||||
}
|
||||
public void setIspCode(Integer ispCode) {
|
||||
this.ispCode = ispCode;
|
||||
}
|
||||
public String getBusinessTypeName() {
|
||||
return businessTypeName;
|
||||
}
|
||||
public void setBusinessTypeName(String businessTypeName) {
|
||||
this.businessTypeName = businessTypeName;
|
||||
}
|
||||
public Integer getBusinessTypeCode() {
|
||||
return businessTypeCode;
|
||||
}
|
||||
public void setBusinessTypeCode(Integer businessTypeCode) {
|
||||
this.businessTypeCode = businessTypeCode;
|
||||
}
|
||||
public String getIspKeyName() {
|
||||
return ispKeyName;
|
||||
}
|
||||
public void setIspKeyName(String ispKeyName) {
|
||||
this.ispKeyName = ispKeyName;
|
||||
}
|
||||
public Integer getIspKeyCode() {
|
||||
return ispKeyCode;
|
||||
}
|
||||
public void setIspKeyCode(Integer ispKeyCode) {
|
||||
this.ispKeyCode = ispKeyCode;
|
||||
}
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package com.nis.util;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.dashboard.SysIspInfo;
|
||||
import com.nis.domain.dashboard.codedic.CodeAppDic;
|
||||
import com.nis.domain.dashboard.codedic.CodeBehaviorTypeDic;
|
||||
import com.nis.domain.dashboard.codedic.CodeBrowserTypeDic;
|
||||
@@ -17,6 +18,7 @@ import com.nis.web.dao.dashboard.codedic.CodeOsTypeDicDao;
|
||||
import com.nis.web.dao.dashboard.codedic.CodeProtocolTypeDicDao;
|
||||
import com.nis.web.dao.dashboard.codedic.CodeResult;
|
||||
import com.nis.web.dao.dashboard.codedic.CodeServiceTypeDicDao;
|
||||
import com.nis.web.dao.dashboard.codedic.CodeSysIspInfoDicDao;
|
||||
import com.nis.web.dao.dashboard.codedic.CodeWebServiceDicDao;
|
||||
import com.nis.web.service.SpringContextHolder;
|
||||
|
||||
@@ -28,6 +30,7 @@ public class CodeDicUtils {
|
||||
private final static CodeProtocolTypeDicDao codeProtocolTypeDicDao = SpringContextHolder.getBean(CodeProtocolTypeDicDao.class);
|
||||
private final static CodeServiceTypeDicDao codeServiceTypeDicDao = SpringContextHolder.getBean(CodeServiceTypeDicDao.class);
|
||||
private final static CodeWebServiceDicDao codeWebServiceDicDao = SpringContextHolder.getBean(CodeWebServiceDicDao.class);
|
||||
private final static CodeSysIspInfoDicDao codeSysIspInfoDicDao = SpringContextHolder.getBean(CodeSysIspInfoDicDao.class);
|
||||
|
||||
|
||||
private static final String APP_CODE="appCode";
|
||||
@@ -37,6 +40,8 @@ public class CodeDicUtils {
|
||||
private static final String PROTOCOL_CODE="protocolCode";
|
||||
private static final String SERVICE_CODE="serviceCode";
|
||||
private static final String WEB_CODE="webCode";
|
||||
|
||||
private static final String ISP_CODE="ispCode";
|
||||
/**
|
||||
* 适用于大屏图表标签显示
|
||||
*/
|
||||
@@ -176,6 +181,19 @@ public class CodeDicUtils {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* 用于获取isp运营商的信息
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static List<SysIspInfo> getIspDicList(String name){
|
||||
List<SysIspInfo> result = new ArrayList<>();
|
||||
if (name.equals(ISP_CODE)) {
|
||||
result = codeSysIspInfoDicDao.getIspDicList();
|
||||
return result;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
getCodeList(APP_CODE);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.nis.web.dao.dashboard.codedic;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.dashboard.SysIspInfo;
|
||||
import com.nis.web.dao.MyBatisDao;
|
||||
|
||||
@MyBatisDao
|
||||
public interface CodeSysIspInfoDicDao {
|
||||
List<SysIspInfo> getIspDicList();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.dashboard.codedic.CodeSysIspInfoDicDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.dashboard.SysIspInfo">
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="isp_name" jdbcType="VARCHAR" property="ispName" />
|
||||
<result column="isp_code" jdbcType="INTEGER" property="ispCode" />
|
||||
<result column="business_type_name" jdbcType="VARCHAR" property="businessTypeName" />
|
||||
<result column="business_type_code" jdbcType="INTEGER" property="businessTypeCode" />
|
||||
<result column="isp_key_name" jdbcType="VARCHAR" property="ispKeyName" />
|
||||
<result column="isp_key_code" jdbcType="INTEGER" property="ispKeyCode" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, isp_name, isp_code, business_type_name, business_type_code, isp_key_name, isp_key_code,create_time
|
||||
</sql>
|
||||
<select id="getIspDicList" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_isp_info
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -406,5 +406,12 @@
|
||||
<function-signature>java.util.List getTrustedCrlByCerId(java.lang.Integer)</function-signature>
|
||||
<example>${fns:getTrustedCrlByCerId(cerId)}</example>
|
||||
</function>
|
||||
|
||||
<!-- 根据表名取出运营商ISP标签集合 -->
|
||||
<function>
|
||||
<description>根据code的名称取出标签名</description>
|
||||
<name>getIspDicList</name>
|
||||
<function-class>com.nis.util.CodeDicUtils</function-class>
|
||||
<function-signature>java.util.List getIspDicList(java.lang.String)</function-signature>
|
||||
<example>${fns:getIspDicList(str)}</example>
|
||||
</function>
|
||||
</taglib>
|
||||
|
||||
Reference in New Issue
Block a user