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.ruoyi.jjh.ent.mapper.JMemorandumMapper">
|
|
|
|
|
|
|
|
<select id="page" resultType="com.ruoyi.jjh.ent.entity.JMemorandum">
|
|
|
|
select * from j_memorandum
|
|
|
|
<where>
|
|
|
|
<if test="req.name != null and req.name != '' ">
|
|
|
|
and name like concat('%',#{req.name},'%') or keywords like concat('%',#{req.name},'%')
|
|
|
|
</if>
|
|
|
|
<if test="req.startTime != null ">
|
|
|
|
and create_time >= #{req.startTime}
|
|
|
|
</if>
|
|
|
|
<if test="req.endTime != null">
|
|
|
|
and create_time <= #{req.endTime}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
<select id="selectIdToAll" resultType="com.ruoyi.jjh.ent.entity.JMemorandum">
|
|
|
|
select * from j_memorandum
|
|
|
|
<where>
|
|
|
|
type = #{req.type} and project_id = #{req.projectId}
|
|
|
|
<if test="req.name != null and req.name != '' ">
|
|
|
|
and name like concat('%',#{req.name},'%') or keywords like concat('%',#{req.name},'%')
|
|
|
|
</if>
|
|
|
|
<if test="req.startTime != null ">
|
|
|
|
and create_time >= #{req.startTime}
|
|
|
|
</if>
|
|
|
|
<if test="req.endTime != null">
|
|
|
|
and create_time <= #{req.endTime}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</mapper>
|