You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?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.elink.esua.epdc.dao.ImgConfigDao">
|
|
|
|
|
|
|
|
|
|
<resultMap type="com.elink.esua.epdc.entity.ImgConfigEntity" id="imgConfigMap">
|
|
|
|
|
<result property="id" column="ID"/>
|
|
|
|
|
<result property="imgType" column="IMG_TYPE"/>
|
|
|
|
|
<result property="imgUrl" column="IMG_URL"/>
|
|
|
|
|
<result property="sort" column="SORT"/>
|
|
|
|
|
<result property="revision" column="REVISION"/>
|
|
|
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
|
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
|
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
|
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
|
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<select id="selectListImgConfig" resultType="com.elink.esua.epdc.dto.ImgConfigDTO">
|
|
|
|
|
SELECT
|
|
|
|
|
ID id,
|
|
|
|
|
IMG_TYPE imgType,
|
|
|
|
|
IMG_URL imgUrl,
|
|
|
|
|
SORT sort,
|
|
|
|
|
CREATED_TIME createdTime
|
|
|
|
|
FROM
|
|
|
|
|
`epdc_img_config`
|
|
|
|
|
WHERE DEL_FLAG = 0
|
|
|
|
|
<if test="imgType != null and imgType != ''">
|
|
|
|
|
AND IMG_TYPE = #{imgType,jdbcType=VARCHAR}
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY SORT,CREATED_TIME DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectListImgConfigByImgType" resultType="com.elink.esua.epdc.dto.result.EpdcImgConfigResultDTO">
|
|
|
|
|
SELECT
|
|
|
|
|
IMG_URL imgUrl
|
|
|
|
|
FROM
|
|
|
|
|
`epdc_img_config`
|
|
|
|
|
WHERE DEL_FLAG = 0
|
|
|
|
|
AND IMG_TYPE = #{imgType,jdbcType=VARCHAR}
|
|
|
|
|
ORDER BY SORT,CREATED_TIME DESC
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|