|
@@ -147,7 +147,8 @@ public interface ChargeFeeVoMapper {
|
|
|
" mzy_reqrec.charge_type," +
|
|
|
" mzy_reqrec.cancel_mark," +
|
|
|
" sum(req_fee + clinic_fee + oth_fee + isnull(brochure_fee,0) + isnull(bl_fee,0) + isnull(ck_fee,0)) charge_fee," +
|
|
|
- " max(mzy_reqrec.op_day) op_day " +
|
|
|
+ " max(mzy_reqrec.op_day) op_day, " +
|
|
|
+ " paymode=mzy_reqrec.paymode "+
|
|
|
" FROM mzy_reqrec " +
|
|
|
" WHERE (op_id = #{userIdCode} ) and dcount_no = 0 " +
|
|
|
"group by receipt_bill," +
|
|
@@ -156,7 +157,7 @@ public interface ChargeFeeVoMapper {
|
|
|
" name," +
|
|
|
" mzy_reqrec.unit_code, " +
|
|
|
" mzy_reqrec.charge_type," +
|
|
|
- " mzy_reqrec.cancel_mark " +
|
|
|
+ " mzy_reqrec.cancel_mark,mzy_reqrec.paymode " +
|
|
|
" order by receipt_bill")
|
|
|
List<ReqrecVo> selectReqrecVoUnAccount(@Param("userIdCode") String userIdCode);
|
|
|
|
|
@@ -176,7 +177,8 @@ public interface ChargeFeeVoMapper {
|
|
|
" charge_type=mzy_reqrec.charge_type," +
|
|
|
" cancel_mark=mzy_reqrec.cancel_mark," +
|
|
|
" charge_fee =sum(req_fee + clinic_fee + oth_fee + isnull(brochure_fee,0) + isnull(bl_fee,0) + isnull(ck_fee,0))," +
|
|
|
- " op_day =max(mzy_reqrec.op_day) " +
|
|
|
+ " op_day =max(mzy_reqrec.op_day), " +
|
|
|
+ " paymode=mzy_reqrec.paymode "+
|
|
|
" FROM mzy_reqrec " +
|
|
|
" WHERE case when '1'=#{caseType} then 0 else 1 end = dcount_no and " +
|
|
|
" case when '1'=#{caseType} then op_day else closing_date end=#{dcountDate,jdbcType=TIMESTAMP} and " +
|
|
@@ -187,7 +189,7 @@ public interface ChargeFeeVoMapper {
|
|
|
" name," +
|
|
|
" mzy_reqrec.unit_code, " +
|
|
|
" mzy_reqrec.charge_type," +
|
|
|
- " mzy_reqrec.cancel_mark " +
|
|
|
+ " mzy_reqrec.cancel_mark,mzy_reqrec.paymode " +
|
|
|
" order by receipt_bill")
|
|
|
List<ReqrecVo> selectReqrecVoReprint(@Param("userIdCode") String userIdCode, @Param("caseType") String caseType, @Param("dcountDate") Date dcountDate);
|
|
|
|
|
@@ -208,7 +210,8 @@ public interface ChargeFeeVoMapper {
|
|
|
" cancel_mark=mzy_reqrec.cancel_mark," +
|
|
|
" charge_fee =sum(req_fee + clinic_fee + oth_fee + isnull(brochure_fee,0) + isnull(bl_fee,0) + isnull(ck_fee,0))," +
|
|
|
" op_day =max(mzy_reqrec.op_day)," +
|
|
|
- "op_id " +
|
|
|
+ "op_id, " +
|
|
|
+ " paymode=mzy_reqrec.paymode "+
|
|
|
" FROM mzy_reqrec " +
|
|
|
" WHERE case when '1'=#{caseType} then 0 else 1 end = dcount_no and " +
|
|
|
" case when '1'=#{caseType} then op_day else closing_date end >=#{beginDate,jdbcType=TIMESTAMP} and " +
|
|
@@ -220,7 +223,7 @@ public interface ChargeFeeVoMapper {
|
|
|
"mzy_reqrec.unit_code," +
|
|
|
" mzy_reqrec.charge_type," +
|
|
|
" mzy_reqrec.cancel_mark," +
|
|
|
- " op_id " +
|
|
|
+ " op_id,mzy_reqrec.paymode " +
|
|
|
" order by receipt_bill")
|
|
|
List<ReqrecVo> selectReqrecVoCollect(@Param("caseType") String caseType, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
|
|
|
|
|
@@ -243,6 +246,7 @@ public interface ChargeFeeVoMapper {
|
|
|
" charge_fee =sum(req_fee + clinic_fee + oth_fee + isnull(brochure_fee,0) + isnull(bl_fee,0) + isnull(ck_fee,0))," +
|
|
|
" op_day =max(mzy_reqrec_b.op_day)," +
|
|
|
"op_id " +
|
|
|
+ " paymode=mzy_reqrec_b.paymode "+
|
|
|
" FROM mzy_reqrec_b " +
|
|
|
" WHERE case when '1'=#{caseType} then 0 else 1 end = dcount_no and " +
|
|
|
" case when '1'=#{caseType} then op_day else closing_date end >=#{beginDate,jdbcType=TIMESTAMP} and " +
|
|
@@ -254,7 +258,7 @@ public interface ChargeFeeVoMapper {
|
|
|
"mzy_reqrec_b.unit_code," +
|
|
|
" mzy_reqrec_b.charge_type," +
|
|
|
" mzy_reqrec_b.cancel_mark," +
|
|
|
- " op_id " +
|
|
|
+ " op_id,mzy_reqrec_b.paymode " +
|
|
|
" order by receipt_bill")
|
|
|
List<ReqrecVo> selectHisReqrecVoCollect(@Param("caseType") String caseType, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
|
|
|
|
|
@@ -687,7 +691,7 @@ public interface ChargeFeeVoMapper {
|
|
|
"SELECT " +
|
|
|
"receipt_bill= rtrim(mzy_reqrec.receipt_bill)," +
|
|
|
" rtrim(mzy_reqrec.name) name," +
|
|
|
- " ABS(mzy_reqrec.req_fee)+ABS(mzy_reqrec.oth_fee)+ABS(mzy_reqrec.clinic_fee) as total_charge " +
|
|
|
+ " mzy_reqrec.req_fee+mzy_reqrec.oth_fee+mzy_reqrec.clinic_fee as total_charge " +
|
|
|
"FROM mzy_reqrec " +
|
|
|
"where cancel_mark <![CDATA[<>]]> '0' and times <![CDATA[<]]> 0 " +
|
|
|
"<when test='userIdCode!=null'>",
|