From ab1b4d8553699e452acea0bf3de97ad784b09512 Mon Sep 17 00:00:00 2001 From: dougang <78125310@kidgrow.com> Date: Fri, 19 Jun 2020 14:30:23 +0800 Subject: [PATCH] 优化代码 --- kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml index cb55f28..fbddc1a 100644 --- a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml +++ b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysDepartmentMapper.xml @@ -15,6 +15,9 @@ <if test="p.id != null and p.id !=''"> and id = #{p.id} </if> + <if test="p.hospitalId != null and p.hospitalId !=''"> + and hospital_id = #{p.hospitalId} + </if> <if test="p.departmentName != null and p.departmentName !=''"> and department_name = #{p.departmentName} </if> -- Gitblit v1.8.0