上传代码
This commit is contained in:
44
src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.xml
Normal file
44
src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?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.nis.web.dao.DfKeyConvertUrlDao">
|
||||
|
||||
<!-- DJ_FLOWCONTROL_STOP -->
|
||||
<sql id="dfKeyConvertUrlProperty">
|
||||
ID,KEY_ID,URL,OP_TIME
|
||||
</sql>
|
||||
<resultMap id="DfKeyConvertUrlMap" type="com.nis.domain.restful.DfKeyConvertUrl">
|
||||
<result column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="key_id" jdbcType="INTEGER" property="keyId" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="op_time" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
<select id="findDfKeyConvertUrlPage" parameterType="com.nis.domain.restful.DfKeyConvertUrl" resultMap="DfKeyConvertUrlMap">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="page !=null and page.fields != null and page.fields != ''">
|
||||
${page.fields}
|
||||
</when>
|
||||
<otherwise>
|
||||
<include refid="dfKeyConvertUrlProperty"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
FROM DF_KEY_CONVERT_URL
|
||||
<where>
|
||||
<if test="optStartTime != null and optStartTime !=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{optStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="optEndTime != null and optEndTime !=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{optEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="searchId != null and searchId !=''">
|
||||
AND id > ${searchId}
|
||||
</if>
|
||||
</where>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user