|
@@ -1,6 +1,7 @@
|
|
|
package cn.hnthyy.thmz.mapper.his;
|
|
|
|
|
|
import cn.hnthyy.thmz.entity.his.MzyRequest;
|
|
|
+import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
@@ -63,4 +64,13 @@ public interface MzyRequestMapper {
|
|
|
@Update("update mzy_request_new set left_num=#{leftNum,jdbcType=INTEGER}, bespeak_no=#{bespeakNo,jdbcType=SMALLINT} where " +
|
|
|
"id = #{id,jdbcType=BIGINT} and left_num=#{orgiLeftNum,jdbcType=INTEGER} and bespeak_no=#{orgiBespeakNo,jdbcType=SMALLINT}")
|
|
|
int updateMzyRequest(MzyRequest mzyRequest);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 同步排班表
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Insert("insert into mzy_request_new(request_day,ampm,unit_code,group_code,doctor_code,charge_type,op_id,total_num,left_num,bespeak_no,check_fee,sys_date,del_flag) " +
|
|
|
+ "select request_day,ampm,unit_code,group_code,doctor_code,charge_type,op_id,total_num,left_num,bespeak_no,check_fee,sys_date,del_flag " +
|
|
|
+ " from mzy_request where request_day >=(select top 1 request_day from mzy_request_new order by request_day desc ) and request_day <> '7019-10-27 00:00:00.000' order by request_day asc")
|
|
|
+ int synchronizationRequest();
|
|
|
}
|