|
@@ -99,7 +99,7 @@ public interface PublicDao {
|
|
|
* @param deptCode 科室编码
|
|
|
* @return 返回自生和子科室
|
|
|
*/
|
|
|
- @Select("select code, parent_code from zd_unit_code where (parent_code = #{deptCode} or code = #{deptCode}) and isnull(del_flag,0) = 0")
|
|
|
+ @Select("select code,case when parent_code = code then null else parent_code end as parent_code from zd_unit_code where (parent_code = #{deptCode} or code = #{deptCode}) and isnull(del_flag,0) = 0")
|
|
|
List<GetDropdownBox> getKeShiLieBiao(String deptCode);
|
|
|
|
|
|
@Select("<script>" +
|