| | |
| | | <if test="cameraDept != null and cameraDept != ''">and camera_dept = #{cameraDept}</if> |
| | | <if test="hybm != null and hybm != ''">and hybm = #{hybm}</if> |
| | | <if test="lxbm != null ">and lxbm = #{lxbm}</if> |
| | | <!-- <if test="recovery != null ">and p.recovery = #{recovery}</if>--> |
| | | <if test="constructionType != null and constructionType != ''"> |
| | | <choose> |
| | | <when test="constructionType == 'PHASE_ONE_TWO'"> |
| | | and m.name LIKE 'DX_%' |
| | | </when> |
| | | <when test="constructionType == 'PHASE_THREE'"> |
| | | and m.name LIKE 'LT_%' |
| | | </when> |
| | | |
| | | <when test="constructionType == 'PHASE_FOURTH'"> |
| | | and ( |
| | | m.name LIKE 'DX_R%' |
| | | OR |
| | | m.name LIKE 'DX_RS%' |
| | | ) |
| | | </when> |
| | | </choose> |
| | | </if> |
| | | |
| | | ${params.dataScope} |
| | | </where> |
| | | </select> |
| | |
| | | <if test="address != null"> |
| | | and p.dept_id = #{address} |
| | | </if> |
| | | <if test="constructionType != null and constructionType != ''"> |
| | | <choose> |
| | | <when test="constructionType == 'PHASE_ONE_TWO'"> |
| | | and m.name LIKE 'DX_%' |
| | | </when> |
| | | <when test="constructionType == 'PHASE_THREE'"> |
| | | and m.name LIKE 'LT_%' |
| | | </when> |
| | | <when test="constructionType == 'PHASE_FOURTH'"> |
| | | and ( |
| | | m.name LIKE 'DX_R%' |
| | | OR |
| | | m.name LIKE 'DX_RS%' |
| | | ) |
| | | </when> |
| | | </choose> |
| | | </if> |
| | | ${params.dataScope} |
| | | </where> |
| | | </select> |