| | |
| | | <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'previous'"> |
| | | and TPP.process_instance_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 |
| | | 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> |
| | | </mapper> |