| | |
| | | LEFT JOIN sys_user as su1 on su1.id = project.sys_user_id |
| | | where oa.valid_flag = 1 and (oa.status=4 or oa.status=6) |
| | | <include refid="getOpeApplyReserveList_queryWhereSql" /> |
| | | <if test="isAllApply != null"> |
| | | <choose> |
| | | <when test="isAllApply == 1"> |
| | | and oa.used = oa.num |
| | | </when> |
| | | <otherwise> |
| | | and oa.used != oa.num |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | GROUP BY oa.id |
| | | )as oaa |
| | | </select> |
| | |
| | | LEFT JOIN sys_user as su1 on su1.id = project.sys_user_id |
| | | where oa.valid_flag = 1 and (oa.status=4 or oa.status=6) |
| | | <include refid="getOpeApplyReserveList_queryWhereSql" /> |
| | | <if test="isAllApply != null"> |
| | | <choose> |
| | | <when test="isAllApply == 1"> |
| | | and oa.used = oa.num |
| | | </when> |
| | | <otherwise> |
| | | and oa.used != oa.num |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | GROUP BY oa.id |
| | | order by oa.update_time desc |
| | | <if test="first != null and pageSize != null"> |