| | |
| | | <if test="query.projectStatus !=null and query.projectStatus!=''"> |
| | | and TPI.project_status = #{query.projectStatus} |
| | | </if> |
| | | <if test="query.projectPhase !=null and query.projectPhase!='' and query.projectPhase!='6' and query.projectPhase!='5'"> |
| | | <if test="query.projectPhase !=null and query.projectPhase!='' and query.projectPhase!=6 and query.projectPhase!=5"> |
| | | and TPI.project_phase = #{query.projectPhase} |
| | | </if> |
| | | <if test="query.projectPhase != '6' and query.projectPhase!='5'"> |
| | | <if test="query.projectPhase != 6 and query.projectPhase != 5 "> |
| | | and TPI.used_status = 2 |
| | | </if> |
| | | <if test="query.fundType !=null and query.fundType!=''"> |
| | |
| | | <if test="query.projectStartTime !=null and query.projectEndTime !=null"> |
| | | and TPI.create_project_time between #{query.projectStartTime} and #{query.projectEndTime} |
| | | </if> |
| | | <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'reserve'"> |
| | | and TPP.process_ins_id is null |
| | | </if> |
| | | <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'previous'"> |
| | | and TPP.process_ins_id is not null |
| | | </if> |
| | | <if test="query.projectPhase == '3'"> |
| | | <!-- <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'reserve'">--> |
| | | <!-- and TPP.process_ins_id is null--> |
| | | <!-- </if>--> |
| | | <!-- <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'previous'">--> |
| | | <!-- and TPP.process_ins_id is not null--> |
| | | <!-- </if>--> |
| | | <if test="query.projectPhase == 3"> |
| | | and (TPI.project_status = 'working' or TPI.project_status = 'stop') |
| | | </if> |
| | | <if test="query.projectPhase == '6'"> |
| | | <if test="query.projectPhase == 6"> |
| | | <if test="query.role != null and query.role == 1"> |
| | | and TPI.used_status = 1 and FIND_IN_SET(#{query.competentDepartment}, TPI.competent_department) > 0 |
| | | </if> |