|
|
@@ -1,6 +1,7 @@
|
|
|
package cn.hnthyy.thmz.mapper.his;
|
|
|
|
|
|
import cn.hnthyy.thmz.entity.his.ZdUnitCode;
|
|
|
+import cn.hnthyy.thmz.pageDto.ZdUnitCodePageDto;
|
|
|
import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
@@ -12,49 +13,49 @@ public interface ZdUnitCodeMapper {
|
|
|
/**
|
|
|
* 分页查询科室字典列表
|
|
|
*
|
|
|
- * @param zdUnitCode 科室查询条件
|
|
|
+ * @param zdUnitCodePageDto 科室查询条件
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
"SELECT top ${pageSize} code,name,class_code,py_code,d_code wbCode,mz_flag,del_flag,n_code ynCode,yj_flag,mzrc_flag,parent_code,gh_charge_flag,office_pos,",
|
|
|
"supply_flag,xnh_dept_code,xnh_dept_name,ghjz_flag,mz_class,sort_code,op_id,op_date FROM (SELECT ROW_NUMBER() OVER (ORDER BY zd_unit_code_page.${orderByCase} asc) ",
|
|
|
"AS RowNumber,* from dbo.zd_unit_code zd_unit_code_page where 1=1 ",
|
|
|
- "<when test='delFlag!=null'>",
|
|
|
- " and del_flag =#{delFlag,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.delFlag!=null'>",
|
|
|
+ " and del_flag =#{zdUnitCode.delFlag,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='code!=null'>",
|
|
|
- " and code =#{code,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.code!=null'>",
|
|
|
+ " and code =#{zdUnitCode.code,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='name!=null'>",
|
|
|
- " and name like #{name,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.name!=null'>",
|
|
|
+ " and name like #{zdUnitCode.name,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='classCode!=null'>",
|
|
|
- " and class_code =#{classCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.classCode!=null'>",
|
|
|
+ " and class_code =#{zdUnitCode.classCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='pyCode!=null'>",
|
|
|
- " and py_code =#{pyCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.pyCode!=null'>",
|
|
|
+ " and py_code =#{zdUnitCode.pyCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='wbCode!=null'>",
|
|
|
- " and d_code =#{wbCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.wbCode!=null'>",
|
|
|
+ " and d_code =#{zdUnitCode.wbCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='mzFlag!=null'>",
|
|
|
- " and mz_flag =#{mzFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.mzFlag!=null'>",
|
|
|
+ " and mz_flag =#{zdUnitCode.mzFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='ynCode!=null'>",
|
|
|
- " and n_code =#{ynCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.ynCode!=null'>",
|
|
|
+ " and n_code =#{zdUnitCode.ynCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='yjFlag!=null'>",
|
|
|
- " and yj_flag =#{yjFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.yjFlag!=null'>",
|
|
|
+ " and yj_flag =#{zdUnitCode.yjFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='ghChargeFlag!=null'>",
|
|
|
- " and gh_charge_flag =#{ghChargeFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.ghChargeFlag!=null'>",
|
|
|
+ " and gh_charge_flag =#{zdUnitCode.ghChargeFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='ghjzFlag!=null'>",
|
|
|
- " and ghjz_flag =#{ghjzFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.ghjzFlag!=null'>",
|
|
|
+ " and ghjz_flag =#{zdUnitCode.ghjzFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
") as A WHERE RowNumber >#{pageSize}*#{pageIndex} order by RowNumber asc",
|
|
|
"</script>"})
|
|
|
- List<ZdUnitCode> selectZdUnitCodeWithPage(ZdUnitCode zdUnitCode);
|
|
|
+ List<ZdUnitCode> selectZdUnitCodeWithPage(ZdUnitCodePageDto zdUnitCodePageDto);
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -246,46 +247,46 @@ public interface ZdUnitCodeMapper {
|
|
|
/**
|
|
|
* 查询科室字典列表
|
|
|
*
|
|
|
- * @param zdUnitCode 科室查询条件
|
|
|
+ * @param zdUnitCodePageDto 科室查询条件
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
"SELECT code,name,class_code,py_code,d_code wbCode,mz_flag,del_flag,n_code ynCode,yj_flag,mzrc_flag,parent_code,gh_charge_flag,office_pos,",
|
|
|
"supply_flag,xnh_dept_code,xnh_dept_name,ghjz_flag,mz_class,sort_code,op_id,op_date FROM dbo.zd_unit_code where 1=1 ",
|
|
|
- "<when test='delFlag!=null'>",
|
|
|
- " and del_flag =#{delFlag,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.delFlag!=null'>",
|
|
|
+ " and del_flag =#{zdUnitCode.delFlag,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='code!=null'>",
|
|
|
- " and code =#{code,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.code!=null'>",
|
|
|
+ " and code =#{zdUnitCode.code,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='name!=null'>",
|
|
|
- " and name like #{name,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.name!=null'>",
|
|
|
+ " and name like #{zdUnitCode.name,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='classCode!=null'>",
|
|
|
- " and class_code =#{classCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.classCode!=null'>",
|
|
|
+ " and class_code =#{zdUnitCode.classCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='pyCode!=null'>",
|
|
|
- " and py_code =#{pyCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.pyCode!=null'>",
|
|
|
+ " and py_code =#{zdUnitCode.pyCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='wbCode!=null'>",
|
|
|
- " and d_code =#{wbCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.wbCode!=null'>",
|
|
|
+ " and d_code =#{zdUnitCode.wbCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='mzFlag!=null'>",
|
|
|
- " and mz_flag =#{mzFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.mzFlag!=null'>",
|
|
|
+ " and mz_flag =#{zdUnitCode.mzFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='ynCode!=null'>",
|
|
|
- " and n_code =#{ynCode,jdbcType=VARCHAR}",
|
|
|
+ "<when test='zdUnitCode.ynCode!=null'>",
|
|
|
+ " and n_code =#{zdUnitCode.ynCode,jdbcType=VARCHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='yjFlag!=null'>",
|
|
|
- " and yj_flag =#{yjFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.yjFlag!=null'>",
|
|
|
+ " and yj_flag =#{zdUnitCode.yjFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='ghChargeFlag!=null'>",
|
|
|
- " and gh_charge_flag =#{ghChargeFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.ghChargeFlag!=null'>",
|
|
|
+ " and gh_charge_flag =#{zdUnitCode.ghChargeFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
- "<when test='ghjzFlag!=null'>",
|
|
|
- " and ghjz_flag =#{ghjzFlag,jdbcType=CHAR}",
|
|
|
+ "<when test='zdUnitCode.ghjzFlag!=null'>",
|
|
|
+ " and ghjz_flag =#{zdUnitCode.ghjzFlag,jdbcType=CHAR}",
|
|
|
"</when>",
|
|
|
" order by ${orderByCase} asc",
|
|
|
"</script>"})
|
|
|
- List<ZdUnitCode> selectZdUnitCode(ZdUnitCode zdUnitCode);
|
|
|
+ List<ZdUnitCode> selectZdUnitCode(ZdUnitCodePageDto zdUnitCodePageDto);
|
|
|
}
|