| | |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | p.is_del=0 |
| | | is_del=0 |
| | | <if test="p.id != null and p.id !=''"> |
| | | and id = #{p.id} |
| | | </if> |
| | |
| | | and templete_type = #{p.templeteType} |
| | | </if> |
| | | <if test="p.templeteTitle != null and p.templeteTitle !=''"> |
| | | and templete_title = #{p.templeteTitle} |
| | | and templete_title like '%${p.templeteTitle}%' |
| | | </if> |
| | | <if test="p.templeteNote != null and p.templeteNote !=''"> |
| | | and templete_note = #{p.templeteNote} |
| | |
| | | from doctor_templete |
| | | <include refid="where"/> |
| | | order by id desc |
| | | limit 1 |
| | | </select> |
| | | |
| | | <!--定义根据-DoctorTemplete当作查询条件返回对象集合--> |