| | |
| | | <if test="diagcheckFlag != null ">and b.diagcheck_flag = #{diagcheckFlag}</if> |
| | | <if test="cry != null and cry == 0 ">and b.endtime is null</if> |
| | | <if test="cry != null and cry == 1 ">and b.inhospstate=1</if> |
| | | <if test="cry != null and cry == 2 ">and b.inhospstate=2</if> |
| | | <if test="cry != null and cry == 3 ">and b.inhospstate=3</if> |
| | | <if test="inhospstate != null ">and b.inhospstate = #{inhospstate}</if> |
| | | <if test="campusid != null ">and b.campusid = #{campusid}</if> |
| | | <if test="schemestatus != null ">and b.schemestatus = #{schemestatus}</if> |
| | |
| | | a.telcode, |
| | | a.id, |
| | | a.sex |
| | | <if test="cry==1"> |
| | | <if test="cry != null and cry==1"> |
| | | order by b.endtime desc |
| | | </if> |
| | | <if test="cry==0"> |
| | | <if test="cry != null and cry==2"> |
| | | order by b.endtime desc |
| | | </if> |
| | | <if test="cry != null and cry==3"> |
| | | order by b.endtime desc |
| | | </if> |
| | | <if test="cry != null and cry==0"> |
| | | order by b.starttime desc |
| | | </if> |
| | | </select> |