<?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.yssh.mapper.QxshMapper">
|
<select id="selectByPage" resultType="com.yssh.entity.xls.XlsReport">
|
select *
|
from xls_report
|
<where>
|
1 = 1
|
<if test="type != null">
|
and type = #{type}
|
</if>
|
<if test="start != null">
|
and create_time >= #{start}
|
</if>
|
<if test="end != null">
|
and end <= #{end}
|
</if>
|
</where>
|
order by id desc
|
limit #{limit} offset #{offset}
|
</select>
|
|
<select id="xlsExists" resultType="java.lang.Integer">
|
select count(*)
|
from xls_report
|
where type = #{type} and name = #{name}
|
</select>
|
|
<insert id="insert" parameterType="com.yssh.entity.xls.XlsReport">
|
insert into xls_report
|
(name, type, path, create_time)
|
values
|
(#{name}, #{type}, #{path}, #{createTime})
|
</insert>
|
</mapper>
|