| 
					
				 | 
			
			
				@@ -0,0 +1,224 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+package cn.hnthyy.thmz.mapper.his; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hnthyy.thmz.entity.his.ZdUnitCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hnthyy.thmz.vo.PageViewVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.apache.ibatis.annotations.Insert; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.apache.ibatis.annotations.Param; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.apache.ibatis.annotations.Select; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.apache.ibatis.annotations.Update; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+public interface ZdUnitCodeMapper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 分页查询科室字典列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param zdUnitCode 科室查询条件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param pageViewVO 分页数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Select({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "SELECT top ${pageSize} code,name,class_code,py_code,d_code,mz_flag,del_flag,n_code,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} desc) ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "AS RowNumber,* from dbo.zd_unit_code zd_unit_code_page where del_flag=0 ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='code!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and code =#{code,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='name!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and name like#{name,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='classCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and class_code =#{classCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='pyCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and py_code =#{pyCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='dCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and d_code =#{dCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='mzFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and mz_flag =#{mzFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='nCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and n_code =#{nCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='yjFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and yj_flag =#{yjFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='ghChargeFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and gh_charge_flag =#{ghChargeFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='ghjzFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and ghjz_flag =#{ghjzFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ") as A WHERE RowNumber >#{pageSize}*#{pageIndex} order by RowNumber asc", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</script>"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    List<ZdUnitCode> selectZdUnitCodeWithPage(ZdUnitCode zdUnitCode, PageViewVO pageViewVO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 统计科室字典总数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param zdUnitCode 科室查询条件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Select({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "SELECT count(1) from dbo.zd_unit_code where del_flag=0 ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='code!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and code =#{code,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='name!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and name like#{name,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='classCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and class_code =#{classCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='pyCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and py_code =#{pyCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='dCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and d_code =#{dCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='mzFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and mz_flag =#{mzFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='nCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and n_code =#{nCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='yjFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and yj_flag =#{yjFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='ghChargeFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and gh_charge_flag =#{ghChargeFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='ghjzFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and ghjz_flag =#{ghjzFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</script>"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    int countZdUnitCode(ZdUnitCode zdUnitCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 检查修改或者新增数据是否重复 部门编码 部门名称 新农合编码 新农合名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param zdUnitCode 科室查询条件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Select({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "SELECT count(1) from dbo.zd_unit_code where 1=1 ", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='code!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and code =#{code,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='name!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and name =#{name,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='xnhDeptCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and xnh_dept_code =#{xnhDeptCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='xnhDeptName!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            " and xnh_dept_name =#{xnhDeptName,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</script>"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    int checkZdUnitCode(ZdUnitCode zdUnitCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 新增科室字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param zdUnitCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Insert("INSERT INTO dbo.zd_unit_code(code,name,class_code,py_code,d_code,mz_flag,del_flag,n_code,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 )VALUES(#{code,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR}" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",#{classCode,jdbcType=VARCHAR},#{pyCode,jdbcType=VARCHAR},#{dCode,jdbcType=VARCHAR},#{mzFlag,jdbcType=CHAR},#{delFlag,jdbcType=CHAR},#{nCode,jdbcType=VARCHAR},#{yjFlag,jdbcType=CHAR}" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",#{mzrcFlag,jdbcType=CHAR},#{parentCode,jdbcType=CHAR},#{ghChargeFlag,jdbcType=CHAR},#{officePos,jdbcType=VARCHAR},#{supplyFlag,jdbcType=CHAR},#{xnhDeptCode,jdbcType=VARCHAR}" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",#{xnhDeptName,jdbcType=VARCHAR},#{ghjzFlag,jdbcType=CHAR},#{mzClass,jdbcType=VARCHAR},#{sortCode,jdbcType=VARCHAR},#{opId,jdbcType=VARCHAR},#{opDate,jdbcType=DATETIME}) ") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    int insertZdUnitCode(ZdUnitCode zdUnitCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 修改科室字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param zdUnitCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Update({"<script>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "update dbo.zd_unit_code", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<trim prefix='set' prefixOverrides=',' suffix=' where code = #{originalCode} '>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='code!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "code =#{code,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='name!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",name =#{name,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='classCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",class_code =#{classCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='pyCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",py_code =#{pyCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='dCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",d_code =#{dCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='mzFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",mz_flag =#{mzFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='delFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",del_flag =#{delFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='nCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",n_code =#{nCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='yjFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",yj_flag =#{yjFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='mzrcFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",mzrc_flag =#{mzrcFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='parentCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",parent_code =#{parentCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='ghChargeFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",gh_charge_flag =#{ghChargeFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='officePos!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",office_pos =#{officePos,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='supplyFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",supply_flag =#{supplyFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='xnhDeptCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",xnh_dept_code =#{xnhDeptCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='xnhDeptName!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",xnh_dept_name =#{xnhDeptName,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='ghjzFlag!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",ghjz_flag =#{ghjzFlag,jdbcType=CHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='mzClass!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",mz_class =#{mzClass,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='sortCode!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",sort_code =#{sortCode,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='opId!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",op_id =#{opId,jdbcType=VARCHAR}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "<when test='opDate!=null'>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ",op_date =#{opDate,jdbcType=DATETIME}", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</when>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</trim>", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "</script>"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    int updateZdUnitCode(ZdUnitCode zdUnitCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 根据科室编码查询科室信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param code 科室编码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Select("select code,name,class_code,py_code,d_code,mz_flag,del_flag,n_code,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 code=#{code,jdbcType=VARCHAR}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ZdUnitCode selectByCode(@Param("code") String code); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 |