| | |
| | | <!-- <if test="query.projectPhase == 3">--> |
| | | <!-- and (TPI.project_status = 'working' or TPI.project_status = 'stop')--> |
| | | <!-- </if>--> |
| | | /* 为空表示在库项目 */ |
| | | <if test="query.projectPhase == null"> |
| | | <if test="query.role != null and query.role == 1"> |
| | | and TPI.competent_department = #{query.competentDepartment} |
| | | </if> |
| | | </if> |
| | | <!-- <if test="query.role != null and query.role == 1">--> |
| | | <!-- and TPI.competent_department = #{query.competentDepartment}--> |
| | | <!-- </if>--> |
| | | <!-- 业主数据权限 --> |
| | | <if test="query.role != null and query.role == 0"> |
| | | ${query.params.dataScope} |
| | | </if> |
| | | </where> |
| | | order by TPI.id DESC |
| | | ORDER BY FIELD(TPI.used_status, 1, -1, 0, 2), TPI.gmt_create DESC |
| | | </select> |
| | | |
| | | <select id="homeCount" parameterType="com.ycl.common.core.domain.BaseEntity" resultType="com.ycl.domain.vo.ProjectVO"> |