|
@@ -213,7 +213,7 @@ public interface MzyRequestMapper {
|
|
|
* @param unitCode
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select CONVERT (varchar (100), request_day, 23) scheduleDate,sum(left_num) leftNum,sum(total_num) totalNum from mzy_request_new where unit_code =#{unitCode} and request_day >=#{beginDate,jdbcType=TIMESTAMP} and request_day <=#{endDate,jdbcType=TIMESTAMP} and isnull(doctor_code,'')<>'' group by request_day")
|
|
|
+ @Select("select CONVERT (varchar (100), request_day, 23) scheduleDate,sum(left_num) leftNum,sum(total_num) totalNum from mzy_request_new where unit_code =#{unitCode} and request_day >=#{beginDate,jdbcType=TIMESTAMP} and request_day <=#{endDate,jdbcType=TIMESTAMP} and isnull(doctor_code,'')<>'' and charge_type not in (16,24) group by request_day")
|
|
|
List<Map<String,Object>> selectNumByDateAndDept(@Param("beginDate") Date beginDate, @Param("endDate") Date endDate, @Param("unitCode") String unitCode);
|
|
|
|
|
|
|
|
@@ -226,7 +226,7 @@ public interface MzyRequestMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
- "select doctor_code doctorCode,charge_type chargeType,check_fee checkFee,sum(left_num) leftNum from mzy_request_new where unit_code=#{unitCode} and request_day=#{requestDay,jdbcType=TIMESTAMP} and del_flag=0 " ,
|
|
|
+ "select doctor_code doctorCode,charge_type chargeType,check_fee checkFee,sum(left_num) leftNum from mzy_request_new where unit_code=#{unitCode} and request_day=#{requestDay,jdbcType=TIMESTAMP} and del_flag=0 and charge_type not in (16,24)" ,
|
|
|
"<when test='ampms!=null'>",
|
|
|
" and ampm not in " ,
|
|
|
"<foreach item='item' index='index' collection='ampms' open='(' separator=',' close=')'>",
|
|
@@ -249,7 +249,7 @@ public interface MzyRequestMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>",
|
|
|
- "select id mzyRequestId,ampm,doctor_code doctorCode,charge_type chargeType,check_fee checkFee,left_num leftNum from mzy_request_new where unit_code=#{unitCode} and request_day=#{requestDay,jdbcType=TIMESTAMP} and doctor_code =#{doctorCode} and del_flag=0 " ,
|
|
|
+ "select id mzyRequestId,ampm,doctor_code doctorCode,charge_type chargeType,check_fee checkFee,left_num leftNum from mzy_request_new where unit_code=#{unitCode} and request_day=#{requestDay,jdbcType=TIMESTAMP} and doctor_code =#{doctorCode} and del_flag=0 and charge_type not in (16,24)" ,
|
|
|
"<when test='ampms!=null'>",
|
|
|
" and ampm not in " ,
|
|
|
"<foreach item='item' index='index' collection='ampms' open='(' separator=',' close=')'>",
|