<?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.ruoyi.process.mapper.ProcessMethodSearchNewMapper">
|
|
<!-- 标准查新分页查询 -->
|
<select id="pageMethodSearchNew" resultType="com.ruoyi.process.pojo.ProcessMethodSearchNew">
|
select *
|
from (select *
|
from cnas_process_method_search_new
|
<where>
|
<if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''">
|
and create_time between #{beginDate} and #{endDate}
|
</if>
|
</where>
|
order by create_time desc
|
) a
|
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
|
${ew.customSqlSegment}
|
</if>
|
</select>
|
<select id="selectMethodSearchNew" resultType="com.ruoyi.process.dto.ProcessMethodSearchNewDto">
|
select *
|
from (select *
|
from cnas_process_method_search_new
|
<where>
|
<if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''">
|
and create_time between #{beginDate} and #{endDate}
|
</if>
|
</where>
|
order by create_time desc
|
) a
|
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
|
${ew.customSqlSegment}
|
</if>
|
</select>
|
</mapper>
|