From fc6b946b1020ddff4fe2b01c9e439680cbda6b47 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期三, 04 十二月 2024 09:32:53 +0800 Subject: [PATCH] 分角色展示项目计划,实现不同角色的功能 --- business/src/main/resources/mapper/ProjectInfoMapper.xml | 34 +++++++++++++++++++++++++++++----- 1 files changed, 29 insertions(+), 5 deletions(-) diff --git a/business/src/main/resources/mapper/ProjectInfoMapper.xml b/business/src/main/resources/mapper/ProjectInfoMapper.xml index 5fbff88..dc922e4 100644 --- a/business/src/main/resources/mapper/ProjectInfoMapper.xml +++ b/business/src/main/resources/mapper/ProjectInfoMapper.xml @@ -55,7 +55,7 @@ <select id="getPage" resultMap="resultMap"> SELECT - TPI.*,TPP.process_instance_id as processId, + TPI.*,TPP.process_ins_id as processId, TPIF.total_investment as TPIF_totalInvestment, TPIF.principal as TPIF_principal,TPIF.government_investment_total as TPIF_government_investment_total,TPIF.central_investment_total as TPIF_central_investment_total, TPIF.central_budget_investment as TPIF_central_budget_investment,TPIF.central_fiscal_investment as TPIF_central_fiscal_investment, @@ -144,20 +144,44 @@ and TPI.create_project_time between #{query.projectStartTime} and #{query.projectEndTime} </if> <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'reserve'"> - and TPP.process_instance_id is null + and TPP.process_ins_id is null </if> <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'previous'"> - and TPP.process_instance_id is not null + and TPP.process_ins_id is not null + </if> + <if test="query.projectCategory == 3"> + and (TPI.project_status = 'working' or TPI.project_status = 'stop') </if> </where> order by TPI.gmt_create </select> <select id="homeCount" resultType="com.ycl.domain.vo.ProjectVO"> - SELECT TPI.*,TPIF.total_investment,TPP.process_instance_id as processId + SELECT TPI.*,TPIF.total_investment,TPP.process_ins_id as processId FROM t_project_info TPI LEFT JOIN t_project_investment_funding TPIF ON TPI.id = TPIF.project_id and TPIF.deleted = 0 LEFT JOIN t_project_process TPP ON TPI.id = TPP.project_id and TPP.deleted = 0 WHERE TPI.deleted = 0 -</select> + </select> + + <select id="selectProjectDetailByIds" resultType="com.ycl.domain.vo.ProjectVO"> + select * + from t_project_info TPI + left join t_project_investment_funding TPIF on TPI.id = TPIF.project_id and TPIF.deleted = 0 + left join t_project_investment_info TPII on TPI.id = TPII.project_id and TPII.deleted = 0 + left join t_project_unit_registration_info TPURI on TPI.id = TPURI.project_id and TPURI.deleted = 0 + left join t_project_investment_policy_compliance TPIPC on TPI.id = TPIPC.project_id and TPIPC.deleted = 0 + <where> + TPI.deleted =0 + <if test="dataIdList != null and dataIdList.size > 0"> + and TPI.id in + <foreach collection="dataIdList" item="id" separator="," open="(" close=")"> + #{id} + </foreach> + </if> + </where> + </select> + <select id="queryById" resultType="com.ycl.domain.entity.ProjectInfo"> + select * from t_project_info where id = #{id} and deleted = 0 + </select> </mapper> -- Gitblit v1.8.0