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/JProjectMapper.xml

68 lines
2.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.JProjectMapper">
<select id="page" resultType="com.ruoyi.jjh.ent.entity.JProject">
select * from j_project
<where>
11 months ago
<if test="req.creditCode != null and req.creditCode != '' ">
9 months ago
and credit_code = #{req.creditCode}
11 months ago
</if>
9 months ago
<if test="req.projectBigType != null and req.projectBigType != '' ">
and project_big_type = #{req.projectBigType}
1 year ago
</if>
9 months ago
<if test="req.projectMiddleType != null and req.projectMiddleType != '' ">
and project_middle_type = #{req.projectMiddleType}
</if>
<if test="req.projectSmallType != null and req.projectSmallType != '' ">
and project_small_type = #{req.projectSmallType}
1 year ago
</if>
<if test="req.declareUnit != null and req.declareUnit != '' ">
and declare_unit like concat('%',#{req.declareUnit},'%')
</if>
<if test="req.status != null and req.status != '' ">
and status = #{req.status}
</if>
<if test="req.projectYear != null">
and project_year = #{req.projectYear}
</if>
</where>
6 months ago
order by project_year desc
1 year ago
</select>
<select id="getApprovalInfoList" resultType="com.ruoyi.jjh.declaration.entity.vo.BmsApprovalInfoQueryVo">
9 months ago
SELECT c.id,
c.approval_by_id,
t.qymc as enterpriseName,
u.nick_name AS approvalByName,
c.approval_status,
c.approval_opinions,
c.approval_attachment,
c.approval_time,
c.is_before_data,
c.sort
FROM j_project a
INNER JOIN bms_declaration_records b ON a.id = b.jjh_project_id
INNER JOIN bms_enterprise_basic_info t ON b.credit_code = t.tyshxydm
INNER JOIN bms_approval_info c ON b.id = c.declaration_records_id
INNER JOIN sys_dept s ON c.approval_dept = s.dept_id
left JOIN sys_user u ON c.approval_by_id = u.user_id
WHERE a.id = #{id}
ORDER BY c.sort ASC
</select>
11 months ago
<select id="selectAll" resultType="com.ruoyi.jjh.ent.entity.JProject">
select * from j_project
<where>
<if test="name != null and name != '' ">
and credit_code like concat('%',#{name},'%')
9 months ago
or declare_unit like concat('%',#{name},'%')
11 months ago
</if>
9 months ago
<if test="status != null and status != '' ">
and status = #{status}
</if>
11 months ago
</where>
order by create_time desc ,project_year desc
</select>
1 year ago
</mapper>