实时报表-流量统计菜单下新增统计菜单,对多个业务内容进行统计及业务之间的切换,以图表和列表的方式展示
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
package com.nis.web.dao.dashboard.codedic;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.dashboard.codedic.CodeDomainDic;
|
||||
import com.nis.web.dao.MyBatisDao;
|
||||
|
||||
@MyBatisDao
|
||||
public interface CodeDomainDicDao {
|
||||
List<CodeDomainDic> getCodeDicList();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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.CodeDomainDicDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.dashboard.codedic.CodeDomainDic">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="website_service_id" jdbcType="VARCHAR" property="websiteServiceId" />
|
||||
<result column="domain" jdbcType="VARCHAR" property="domain" />
|
||||
<result column="topic_Id" jdbcType="VARCHAR" property="topicId" />
|
||||
<result column="creator_id" jdbcType="INTEGER" property="creatorId" />
|
||||
<result column="is_valid" jdbcType="INTEGER" property="isValid" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, website_service_id, domain, topic_Id, creator_id, is_valid
|
||||
</sql>
|
||||
<select id="getCodeDicList" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from website_domain_topic
|
||||
where is_valid=1
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.nis.web.dao.dashboard.codedic;
|
||||
|
||||
import com.nis.domain.dashboard.ConfigStatistic;
|
||||
import com.nis.web.dao.MyBatisDao;
|
||||
|
||||
@MyBatisDao
|
||||
public interface ConfigStatisticDao {
|
||||
|
||||
|
||||
String getCfgDescByCfgId(ConfigStatistic entity);
|
||||
|
||||
String getASNIPCfgDesc(String cfgId);
|
||||
|
||||
String getAPPIPCfgDesc(String cfgId);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?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.ConfigStatisticDao">
|
||||
<resultMap id="ConfigStatisticMap" type="com.nis.domain.dashboard.ConfigStatistic">
|
||||
<result column="service_id" property="serviceId" jdbcType="VARCHAR" />
|
||||
<result column="cfg_desc" property="cfgDesc" jdbcType="VARCHAR" />
|
||||
<result column="compile_id" property="cfgId" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
|
||||
<select id="getCfgDescByCfgId" parameterType="com.nis.domain.dashboard.ConfigStatistic" resultType="java.lang.String">
|
||||
select cfg_desc from ${tableName}
|
||||
|
||||
<where>
|
||||
is_valid=1
|
||||
and service_id = #{serviceId}
|
||||
and compile_id= #{cfgId}
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 查询ASN IP 页面配置描述-->
|
||||
<select id="getASNIPCfgDesc" parameterType="java.lang.String" resultType="java.lang.Integer">
|
||||
select cfg_desc from asn_group_info
|
||||
|
||||
where is_valid=1
|
||||
and compile_id= #{cfgId}
|
||||
|
||||
</select>
|
||||
<!-- 查询APP IP 页面配置描述 -->
|
||||
<select id="getAPPIPCfgDesc" parameterType="java.lang.String" resultType="java.lang.Integer">
|
||||
|
||||
select cfg_desc from config_group_info
|
||||
|
||||
where is_issued=1
|
||||
and group_type=1
|
||||
and compile_id= #{cfgId}
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.nis.web.service.configuration.statistics;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.dashboard.ConfigStatistic;
|
||||
import com.nis.web.dao.dashboard.codedic.ConfigStatisticDao;
|
||||
import com.nis.web.service.BaseService;
|
||||
|
||||
@Service
|
||||
public class ConfigStatisticService extends BaseService{
|
||||
|
||||
@Autowired
|
||||
private ConfigStatisticDao configStatisticDao;
|
||||
|
||||
|
||||
public String getCfgDescByCfgId(ConfigStatistic entity){
|
||||
|
||||
String cfgDesc=configStatisticDao.getCfgDescByCfgId(entity);
|
||||
|
||||
return cfgDesc;
|
||||
}
|
||||
|
||||
public String getASNIPCfgDesc(String cfgId){
|
||||
|
||||
String cfgDesc=configStatisticDao.getASNIPCfgDesc(cfgId);
|
||||
|
||||
return cfgDesc;
|
||||
}
|
||||
|
||||
public String getAPPIPCfgDesc(String cfgId){
|
||||
|
||||
String cfgDesc=configStatisticDao.getAPPIPCfgDesc(cfgId);
|
||||
|
||||
return cfgDesc;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user