|
@@ -1244,7 +1244,8 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
void xiuGaiZiFeiZhiYiBaoBiaoZhi(@Param(Constants.WRAPPER) Wrapper<?> wq);
|
|
|
|
|
|
|
|
|
- @Select("select a.charge_code,\n" +
|
|
|
+ @Select("<script>" +
|
|
|
+ "select a.charge_code,\n" +
|
|
|
" b.name as drug_name,\n" +
|
|
|
" b.specification,\n" +
|
|
|
" a.amount,\n" +
|
|
@@ -1258,15 +1259,18 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
" yp_zd_dict b\n" +
|
|
|
"where a.inpatient_no = #{patNo}\n" +
|
|
|
" and a.admiss_times = #{times}" +
|
|
|
- " and a.dept_code = #{deptCode}" +
|
|
|
" and group_no = #{groupNo} " +
|
|
|
- " and a.status_flag = 1\n" +
|
|
|
- " and page_class = 'HT'\n" +
|
|
|
+ " and a.status_flag = 1 " +
|
|
|
+ " and page_class = 'HT' " +
|
|
|
+ "<if test=\"refundTime != null and refundTime != '' \">" +
|
|
|
+ " and CONVERT(varchar(100), occ_time, 23) = #{refundTime} " +
|
|
|
+ "</if>" +
|
|
|
" and a.charge_code = b.code\n" +
|
|
|
- " and a.serial = b.serial")
|
|
|
- List<DrugReturnForm> queryTheDrugReturnForm(@Param("deptCode") String deptCode,
|
|
|
- @Param("groupNo") String groupNo,
|
|
|
+ " and a.serial = b.serial " +
|
|
|
+ "</script>")
|
|
|
+ List<DrugReturnForm> queryTheDrugReturnForm(@Param("groupNo") String groupNo,
|
|
|
@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times);
|
|
|
+ @Param("times") Integer times,
|
|
|
+ @Param("refundTime") String refundTime);
|
|
|
|
|
|
}
|