| | |
| | | |
| | | <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, |
| | |
| | | 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') |
| | |
| | | </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 |