TemplateConfigMapper.xml 1.65 KB
<?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="cn.com.glsx.entmicro.mapper.TemplateConfigMapper">
    <resultMap id="resultMap" type="cn.com.glsx.entmicro.model.response.restcloud.DataCubeTemplateConfigResponse">
        <!--
          WARNING - @mbg.generated
        -->
        <id column="id" jdbcType="INTEGER" property="id"/>
        <result column="template_id"        jdbcType="INTEGER"    property="templateId"/>
        <result column="template_Name"        jdbcType="VARCHAR"    property="templateName"/>
        <result column="id"        jdbcType="INTEGER"    property="id"/>
        <result column="template_url"      jdbcType="VARCHAR"    property="templateUrl"/>
        <result column="must_upload"        jdbcType="INTEGER"    property="mustUpload"/>
        <result column="header_row"      jdbcType="INTEGER"    property="headerRow"/>
        <result column="template_remark"      jdbcType="VARCHAR"    property="templateRemark"/>
        <result column="update_Description"       jdbcType="VARCHAR"    property="updateDescription"/>
    </resultMap>

    <select id="findTemplateList" resultMap="resultMap">
        select * from  data_cube_template_config where del_flag=0
        <if test="condition.templateName != null and condition.templateName != ''">
            and template_Name like concat("%",#{condition.templateName},"%")
        </if>
        order by updated_time desc
    </select>

    <select id="findMaxId" resultType="java.lang.Integer">
        select max(template_id) from data_cube_template_config
    </select>
</mapper>