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.
JinJiHuJava/ruoyi-admin/src/main/resources/mapper/jjh/ent/JMemorandumMapper.xml

49 lines
1.9 KiB

1 year ago
<?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 != '' ">
9 months ago
and name like concat('%',#{req.name},'%') or keywords like concat('%',#{req.name},'%')
1 year ago
</if>
<if test="req.startTime != null ">
and create_time &gt;= #{req.startTime}
</if>
<if test="req.endTime != null">
and create_time &lt;= #{req.endTime}
</if>
</where>
</select>
1 year ago
<select id="selectIdToAll" resultType="com.ruoyi.jjh.ent.entity.JMemorandum">
select * from j_memorandum
<where>
11 months ago
type = #{req.type} and project_id = #{req.projectId}
1 year ago
<if test="req.name != null and req.name != '' ">
9 months ago
and (name like concat('%',#{req.name},'%') or keywords like concat('%',#{req.name},'%'))
1 year ago
</if>
<if test="req.startTime != null ">
and create_time &gt;= #{req.startTime}
</if>
<if test="req.endTime != null">
and create_time &lt;= #{req.endTime}
</if>
</where>
</select>
2 months ago
<select id="getYtb" resultType="com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords">
SELECT
a.credit_code,
b.qymc as matter,
a.template_json
FROM
bms_declaration_records a
LEFT JOIN bms_enterprise_basic_info b ON a.credit_code = b.tyshxydm
WHERE
a.template_record_id = #{templateRecordId}
AND a.`status` = '6'
</select>
1 year ago
</mapper>