基本配置增加csv和excel导出

This commit is contained in:
leijun
2018-12-26 14:47:23 +08:00
parent 52f88155e2
commit b2eb6afad9
23 changed files with 590 additions and 115 deletions

View File

@@ -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);
}

View File

@@ -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>