|
@@ -6,6 +6,7 @@ import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
public interface MzyRequestMapper {
|
|
@@ -73,4 +74,39 @@ public interface MzyRequestMapper {
|
|
|
"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();
|
|
|
+
|
|
|
+
|
|
|
+// /**
|
|
|
+// * 查询最新的排班信息
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @Select("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")
|
|
|
+// List<MzyRequest> selectNewRequest();
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询当天最新的排班信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("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 =#{today,jdbcType=DATE}")
|
|
|
+ List<MzyRequest> selectRequestForToday(Date today);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据所以筛选条件查询号表
|
|
|
+ * @param mzyRequest
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Select("select * from mzy_request_new where ampm = #{ampm} and unit_code = #{unitCode} and request_day = #{requestDay,jdbcType=DATE} and doctor_code =#{doctorCode} and charge_type =#{chargeType} ")
|
|
|
+ MzyRequest selectMzyRequestByAllParams(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) " +
|
|
|
+ "values(#{requestDay,jdbcType=DATE},#{ampm},#{unitCode},#{groupCode},#{doctorCode},#{chargeType},#{opId},#{totalNum},#{leftNum},#{bespeakNo},#{checkFee},#{sysDate,jdbcType=DATE},#{delFlag})")
|
|
|
+ int insertRequest(MzyRequest mzyRequest);
|
|
|
+
|
|
|
}
|