Authored by mlge

gatewayAccess 查询语句 修改

... ... @@ -16,7 +16,7 @@ public interface TaskSheduleMapper {
TaskModel selectById(int id);
List<TaskModel> selectByPageWithSourceTask(@Param("page")PageBean page);
List<TaskModel> selectByPageWithSourceTask(PageBean page);
// List<TaskModel> selectByPageWithSourceGateway(@Param("page")PageBean page);
... ... @@ -26,7 +26,7 @@ public interface TaskSheduleMapper {
int insert(TaskModel taskModel);
int selectCount(@Param("page")PageBean page);
int selectCount(PageBean page);
int updateLastTime(int id);
}
... ...
... ... @@ -47,12 +47,12 @@
select
*
from task_shedule
where addsource = #{page.params.addSource,jdbcType=INTEGER}
<if test="page.params.eventName != null &amp;&amp; page.params.eventName != ''" >
and eventname like CONCAT('%',#{page.params.eventName,jdbcType=VARCHAR},'%' )
where addsource = #{params.addSource,jdbcType=INTEGER}
<if test="params.eventName != null &amp;&amp; params.eventName != ''" >
and eventname like CONCAT('%',#{params.eventName,jdbcType=VARCHAR},'%' )
</if>
order by id
limit #{page.startIndex},#{page.pageSize}
limit #{startIndex},#{pageSize}
</select>
<!--<select id="selectByPageWithSourceGateway" resultMap="BaseResultMap">
... ... @@ -71,9 +71,9 @@
select
count(1)
from task_shedule
where addsource = #{page.params.addSource,jdbcType=INTEGER}
<if test="page.params.eventName != null &amp;&amp; page.params.eventName != ''" >
and eventname like CONCAT('%',#{page.params.eventName,jdbcType=VARCHAR},'%' )
where addsource = #{params.addSource,jdbcType=INTEGER}
<if test="params.eventName != null &amp;&amp; params.eventName != ''" >
and eventname like CONCAT('%',#{params.eventName,jdbcType=VARCHAR},'%' )
</if>
</select>
... ...