基本配置增加csv和excel导出
This commit is contained in:
@@ -12,6 +12,7 @@ import com.nis.web.dao.MyBatisDao;
|
||||
public interface AsnIpCfgDao extends CrudDao<AsnIpCfg>{
|
||||
public List<AsnIpCfg> findPage(AsnIpCfg cfg);
|
||||
//public void updateValid(@Param("isValid")Integer isValid,@Param("ids")String ids);
|
||||
public List<AsnIpCfg> findByPage(@Param("ids")String ids);
|
||||
public void delete(@Param("ids")String ids);
|
||||
public void updateIssued(AsnIpCfg cfg);
|
||||
public List<AsnIpCfg> getByIds(@Param("ids")String ids);
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
select
|
||||
<include refid="columns"></include>
|
||||
<trim prefix="," prefixOverrides=",">
|
||||
,s.name as creator_name,e.name as editor_name,u.name as auditor_name
|
||||
,s.name as creator_name,e.name as editor_name,u.name as auditor_name,d.group_name as asnIpGroupName
|
||||
<!-- ,asn.group_name as asn_ip_group_name -->
|
||||
</trim>
|
||||
from asn_ip_cfg r
|
||||
@@ -68,6 +68,7 @@
|
||||
left join sys_user s on r.creator_id=s.id
|
||||
left join sys_user e on r.editor_id=e.id
|
||||
left join sys_user u on r.auditor_id=u.id
|
||||
left join policy_group_info d on r.asn_ip_group = d.service_group_id
|
||||
<trim prefix="WHERE" prefixOverrides="AND |OR ">
|
||||
<if test="page !=null and page.where != null and page.where != ''">
|
||||
AND ${page.where}
|
||||
@@ -471,4 +472,24 @@
|
||||
#{asnIp.userRegion5,jdbcType=VARCHAR})
|
||||
</foreach >
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
<select id="findByPage" resultMap="asnIpCfgMap">
|
||||
select
|
||||
<include refid="columns"></include>
|
||||
<trim prefix="," prefixOverrides=",">
|
||||
,s.name as creator_name,e.name as editor_name,u.name as auditor_name,d.group_name as asnIpGroupName
|
||||
<!-- ,asn.group_name as asn_ip_group_name -->
|
||||
</trim>
|
||||
from asn_ip_cfg r
|
||||
<!-- left join config_group_info asn on asn.group_id=r.asn_ip_group -->
|
||||
left join sys_user s on r.creator_id=s.id
|
||||
left join sys_user e on r.editor_id=e.id
|
||||
left join sys_user u on r.auditor_id=u.id
|
||||
left join policy_group_info d on r.asn_ip_group = d.service_group_id
|
||||
where r.CFG_ID in (${ids})
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -2,6 +2,7 @@ package com.nis.web.dao.basics;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.nis.domain.basics.PolicyGroupInfo;
|
||||
import com.nis.web.dao.CrudDao;
|
||||
@@ -23,4 +24,6 @@ public interface PolicyGroupInfoDao extends CrudDao<PolicyGroupInfo> {
|
||||
|
||||
Integer getGroupIdByGroupName(String groupName);
|
||||
PolicyGroupInfo getGroupInfo(PolicyGroupInfo policyGroupInfo);
|
||||
|
||||
List<PolicyGroupInfo> findPolicyByGroupInfoList(@Param("ids")String ids);
|
||||
}
|
||||
@@ -250,4 +250,20 @@
|
||||
</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查出所有 有效数据-->
|
||||
<select id="findPolicyByGroupInfoList" resultMap="PolicyGroupInfoMap">
|
||||
SELECT
|
||||
<include refid="PolicyGroupInfoColumns"/>
|
||||
<trim prefix="," prefixOverrides=",">
|
||||
, s.name as creator_name
|
||||
,e.name as editor_name
|
||||
</trim>
|
||||
FROM policy_group_info r
|
||||
left join sys_user s on r.creator_id=s.id
|
||||
left join sys_user e on r.editor_id=e.id
|
||||
where r.CFG_ID in (${ids})
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -27,6 +27,10 @@ public interface ServiceDictInfoDao extends CrudDao<ServiceDictInfo> {
|
||||
* @return
|
||||
*/
|
||||
List<ServiceDictInfo> findAllServiceDictInfo(@Param("serviceDictInfo")ServiceDictInfo serviceDictInfo,@Param("orderBy")String orderBy);
|
||||
|
||||
List<ServiceDictInfo> findByDictInfo(@Param("ids")String ids,@Param("itemType")String itemType);
|
||||
|
||||
|
||||
/**
|
||||
* 查出所有有效数据父级(!=0)
|
||||
*/
|
||||
|
||||
@@ -207,7 +207,16 @@
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="findByDictInfo" resultType="com.nis.domain.basics.ServiceDictInfo" >
|
||||
SELECT
|
||||
<include refid="serviceDictInfoColumns"/>
|
||||
FROM service_dict_info s
|
||||
<include refid="menuJoins"/>
|
||||
WHERE s.is_valid =1
|
||||
AND s.service_dict_id in (${ids})
|
||||
AND s.item_type = #{itemType}
|
||||
ORDER BY field (s.service_dict_id, ${ids})
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -49,4 +49,6 @@ public interface SpecificServiceCfgDao extends CrudDao<SpecificServiceCfg> {
|
||||
SpecificServiceCfg getRepeat(@Param("specServiceCode")Integer code, @Param("cfgType")Integer cfgType,@Param("parentId")Integer parentId);
|
||||
Integer getMaxServiceCode(@Param("maxCode")Integer code, @Param("cfgType")Integer cfgType,@Param("addFlag")Integer addFlag);
|
||||
|
||||
List<SpecificServiceCfg> findBySpecificServiceCfg(@Param("ids")String ids);
|
||||
|
||||
}
|
||||
@@ -213,4 +213,13 @@
|
||||
<select id="getChildrenById" resultMap="CFGResultMap" parameterType="java.lang.Integer">
|
||||
SELECT * FROM specific_service_cfg s WHERE s.is_valid = 1 and s.parent_id = #{specServiceId}
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的所有数据 -->
|
||||
<select id="findBySpecificServiceCfg" resultMap="CFGResultMap" >
|
||||
SELECT * from specific_service_cfg
|
||||
where is_valid = 1
|
||||
and spec_service_id in(${ids})
|
||||
ORDER BY field ( spec_service_id, ${ids})
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user