| | |
| | | and doctor_tel = #{p.doctorTel} |
| | | </if> |
| | | <if test="p.needBegintime != null and p.needBegintime !=''"> |
| | | and need_begintime = #{p.needBegintime} |
| | | and need_begintime >= #{p.needBegintime} |
| | | </if> |
| | | <if test="p.needEndtime != null and p.needEndtime !=''"> |
| | | and need_endtime = #{p.needEndtime} |
| | | and need_endtime <= #{p.needEndtime} |
| | | </if> |
| | | <if test="p.needTags != null and p.needTags !=''"> |
| | | and need_tags = #{p.needTags} |
| | |
| | | from data_need |
| | | <include refid="where"/> |
| | | order by id desc |
| | | limit 1 |
| | | </select> |
| | | |
| | | <!--定义根据-DataNeed当作查询条件返回对象集合--> |