1.统计 界面和服务端的配置总量修改

This commit is contained in:
shangguanyanfei
2019-04-04 18:09:22 +08:00
parent af4491d739
commit c2faf2a2a3
5 changed files with 54 additions and 12 deletions

View File

@@ -19,4 +19,8 @@ public interface SysUserWarnDao extends CrudDao<SysUserWarn>{
public int insert(List<SysUserWarn> list);
//删除所有的数据
public int deleteAllData();
//查询ASN IP 页面配置总量
public Integer getASNIPTotal();
//查询APP IP 页面配置总量
public Integer getAPPIPTotal();
}

View File

@@ -50,13 +50,15 @@
</select>
<select id="getCfgCount" parameterType="com.nis.domain.SysUserWarn" resultType="java.lang.Integer">
select count(cfg_id) cfgTotal from ${tableName}
<where>
service_id = #{id}
and is_valid=1
</where>
SELECT COUNT(a.compile_id) cfgTotal from (
select compile_id from ${tableName}
<where>
service_id = #{id}
and is_valid=1
</where>
GROUP BY compile_id)a
</select>
@@ -87,5 +89,22 @@
delete from sys_user_warn
</delete>
<!-- 查询ASN IP 页面配置总量 -->
<select id="getASNIPTotal" resultType="java.lang.Integer">
select count(compile_id) cfgTotal from asn_group_info
where is_valid=1
</select>
<!-- 查询APP IP 页面配置总量 -->
<select id="getAPPIPTotal" resultType="java.lang.Integer">
select count(compile_id) cfgTotal from config_group_info
where is_issued=1
and group_type=1
</select>
</mapper>