|
@@ -1,5 +1,6 @@
|
|
|
package thyyxxk.webserver.dao.his.dictionary;
|
|
|
|
|
|
+import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
@@ -67,9 +68,9 @@ public interface BedDeptDictDao {
|
|
|
" on b.charge_code_bed = t.code " +
|
|
|
" left join zd_charge_item as s " +
|
|
|
" on b.charge_code_air = s.code " +
|
|
|
- " where b.ward_code = #{deptCode} " +
|
|
|
+ " where b.ward_code = #{wardCode} " +
|
|
|
"order by b.bed_no ")
|
|
|
- List<Map<String, Object>> selectBedInfoForDept(@Param("deptCode") String deptCode);
|
|
|
+ List<Map<String, Object>> selectBedInfoForDept(@Param("wardCode") String wardCode);
|
|
|
|
|
|
@Select(" select a.code as value, " +
|
|
|
" a.exec_unit as execUnit, " +
|
|
@@ -117,4 +118,13 @@ public interface BedDeptDictDao {
|
|
|
"</script>")
|
|
|
int updateBedInfoForDept(@Param("list") List<Map<String, Object>> list);
|
|
|
|
|
|
+ @Select(" select count(*) as num from zy_bed_mi where ward_code = #{wardCode} and dept_code = #{deptCode} and bed_no = #{bedNo} ")
|
|
|
+ int selectBedInfoForDeptAndBedNo(@Param("wardCode") String wardCode, @Param("deptCode") String deptCode, @Param("bedNo") String bedNo);
|
|
|
+
|
|
|
+ @Insert("insert into zy_bed_mi (ward_code, bed_no, room_no, dept_code, bed_status, room_rate1, room_rate2, heating_fee," +
|
|
|
+ " aircondition_fee, heatcold_flag, sex, type, special_charge, charge_code_bed, charge_code_air) values " +
|
|
|
+ " (#{wardCode}, #{bedNo}, #{roomNo}, #{deptCode}, #{bedStatus}, #{roomRate1}, #{roomRate2}, #{heatingFee}," +
|
|
|
+ " #{airConditionFee}, #{heatColdFlag}, #{sex}, #{type}, #{specialCharge}, #{chargeCodeBed}, #{chargeCodeAir}) ")
|
|
|
+ int saveBedForDeptAndBedNo(Map<String, Object> bedInfo);
|
|
|
+
|
|
|
}
|