update:his账单明细查询页面
This commit is contained in:
@@ -154,10 +154,6 @@ public class HISGetDataMethodByJH {
|
|||||||
//数据类型 1-门诊 2-住院 无需修改
|
//数据类型 1-门诊 2-住院 无需修改
|
||||||
String payMethod = StringDUtil.changeNullToEmpty(hisBillHashMap.get("visitzOrg"));
|
String payMethod = StringDUtil.changeNullToEmpty(hisBillHashMap.get("visitzOrg"));
|
||||||
|
|
||||||
// 添加调试日志,查看payMethod的值和来源
|
|
||||||
log.info("患者: {}, 从visitzOrg获取的payMethod值: {}",
|
|
||||||
StringDUtil.changeNullToEmpty(hisBillHashMap.get("patientName")), payMethod);
|
|
||||||
|
|
||||||
//业务类型 0发病历1办卡2就诊卡充值3当日挂号-3 挂号退费4门诊缴费-4 单据退费5现场预约-5 预约退费6预约取号7住院缴费-7出院结算退费-77 预存作废退费
|
//业务类型 0发病历1办卡2就诊卡充值3当日挂号-3 挂号退费4门诊缴费-4 单据退费5现场预约-5 预约退费6预约取号7住院缴费-7出院结算退费-77 预存作废退费
|
||||||
String bizType = StringDUtil.changeNullToEmpty(hisBillHashMap.get("bizType"));
|
String bizType = StringDUtil.changeNullToEmpty(hisBillHashMap.get("bizType"));
|
||||||
|
|
||||||
@@ -212,10 +208,6 @@ public class HISGetDataMethodByJH {
|
|||||||
addMap.put("trade_date",thistrade_date);
|
addMap.put("trade_date",thistrade_date);
|
||||||
addMap.put("his_wsdl_id",his_wsdl_id);
|
addMap.put("his_wsdl_id",his_wsdl_id);
|
||||||
|
|
||||||
//新增HisTransId字段,使用ReceiptNO
|
|
||||||
String hisTransId = StringDUtil.changeNullToEmpty(hisBillHashMap.get("receiptNO"));
|
|
||||||
addMap.put("hisTransId", hisTransId);
|
|
||||||
|
|
||||||
//如果是现金记录先放进现金集合内
|
//如果是现金记录先放进现金集合内
|
||||||
if (cash_code.equals(payType)){
|
if (cash_code.equals(payType)){
|
||||||
cashList.add(addMap);
|
cashList.add(addMap);
|
||||||
@@ -252,7 +244,6 @@ public class HISGetDataMethodByJH {
|
|||||||
addMap.put("patientName","");
|
addMap.put("patientName","");
|
||||||
addMap.put("trade_date",trade_date);
|
addMap.put("trade_date",trade_date);
|
||||||
addMap.put("his_wsdl_id",his_wsdl_id);
|
addMap.put("his_wsdl_id",his_wsdl_id);
|
||||||
addMap.put("hisTransId",""); // 现金记录HisTransId为空
|
|
||||||
|
|
||||||
cashMap.put(hisOperCode+"_"+payMethod,addMap);
|
cashMap.put(hisOperCode+"_"+payMethod,addMap);
|
||||||
}else {
|
}else {
|
||||||
@@ -294,7 +285,6 @@ public class HISGetDataMethodByJH {
|
|||||||
addMap.put("patientName","");
|
addMap.put("patientName","");
|
||||||
addMap.put("trade_date",trade_date);
|
addMap.put("trade_date",trade_date);
|
||||||
addMap.put("his_wsdl_id",his_wsdl_id);
|
addMap.put("his_wsdl_id",his_wsdl_id);
|
||||||
addMap.put("hisTransId",""); // 支票记录HisTransId为空
|
|
||||||
|
|
||||||
zhipiaoMap.put(hisOperCode+"_"+payMethod,addMap);
|
zhipiaoMap.put(hisOperCode+"_"+payMethod,addMap);
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
@@ -41,42 +41,42 @@
|
|||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="findBankbillHistoryList" parameterType="HashMap" resultType="HashMap">
|
<select id="findBankbillHistoryList" parameterType="HashMap" resultType="HashMap">
|
||||||
select I_JYRQ
|
select C_JYRQ
|
||||||
,I_JYSJ
|
,C_JYSJ
|
||||||
,I_JZRQ
|
,C_QSRQ
|
||||||
,I_YHLSH
|
,C_LSH
|
||||||
,I_SHLSH
|
,C_SHDDH
|
||||||
,I_DDH
|
,C_YSDDH
|
||||||
,I_DDZT
|
,C_JYLX
|
||||||
,I_FKFZH
|
,C_CARD
|
||||||
,I_FKFHM
|
,C_FKH
|
||||||
,I_DDJE
|
,C_JYJE
|
||||||
,I_JYJE
|
,C_QSJE
|
||||||
,I_SXF
|
,C_SXF
|
||||||
,I_JSJE
|
,C_SJZFJE
|
||||||
,I_GTDM
|
,C_ZDH
|
||||||
,I_FXK
|
,C_ZFFS
|
||||||
,I_ZFKZ
|
,C_KLX
|
||||||
,I_JYLX
|
,C_JYLX
|
||||||
,I_QS
|
,C_FQQS
|
||||||
|
|
||||||
|
|
||||||
from bankbills_history
|
from bankbill_history
|
||||||
<where>
|
<where>
|
||||||
<if test="startTime!=null and startTime!=''">
|
<if test="startTime!=null and startTime!=''">
|
||||||
and I_JYRQ >= #{startTime}
|
and C_JYRQ >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="endTime!=null and endTime!=''">
|
<if test="endTime!=null and endTime!=''">
|
||||||
and I_JYRQ <= #{endTime}
|
and C_JYRQ <= #{endTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="c_zffs!=null and c_zffs!=''">
|
<if test="c_zffs!=null and c_zffs!=''">
|
||||||
and I_FXK = #{c_zffs}
|
and C_ZFFS = #{c_zffs}
|
||||||
</if>
|
</if>
|
||||||
<if test="likeFiled!=null and likeFiled!=''">
|
<if test="likeFiled!=null and likeFiled!=''">
|
||||||
and I_DDH like concat('%',concat(#{likeFiled},'%'))
|
and C_YSDDH like concat('%',concat(#{likeFiled},'%'))
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by I_JYRQ,I_JYSJ
|
order by C_JYRQ,C_JYSJ
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--获取支付方式 -->
|
<!--获取支付方式 -->
|
||||||
@@ -195,24 +195,24 @@
|
|||||||
|
|
||||||
<!--交易次数 此处查交易类型为收款的,也就是即使这笔交易退款也算交易次数-->
|
<!--交易次数 此处查交易类型为收款的,也就是即使这笔交易退款也算交易次数-->
|
||||||
<select id="findBankBillNumByTime" parameterType="HashMap" resultType="HashMap">
|
<select id="findBankBillNumByTime" parameterType="HashMap" resultType="HashMap">
|
||||||
select I_JYRQ, I_FXK, count(1) as num
|
select C_JYRQ, C_ZFFS, count(1) as num
|
||||||
from bankbills_history
|
from bankbill_history
|
||||||
where I_JYRQ >= #{startTime}
|
where C_JYRQ >= #{startTime}
|
||||||
and I_JYRQ <= #{endTime}
|
and C_JYRQ <= #{endTime}
|
||||||
and I_JYLX = '1'
|
and C_JYLX = '1'
|
||||||
group by I_FXK, I_JYRQ
|
group by C_ZFFS, C_JYRQ
|
||||||
order by I_FXK, I_JYRQ
|
order by C_ZFFS, C_JYRQ
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 交易金额 此处统计所有数据计算金额 因为存在退款是退余额的情况 -->
|
<!-- 交易金额 此处统计所有数据计算金额 因为存在退款是退余额的情况 -->
|
||||||
<select id="findBankBillMoneyByTime" parameterType="HashMap" resultType="HashMap">
|
<select id="findBankBillMoneyByTime" parameterType="HashMap" resultType="HashMap">
|
||||||
select I_JYRQ, I_FXK, sum(cast(I_JYJE as decimal(18, 2))) as money
|
select C_JYRQ, C_ZFFS, sum(cast(C_JYJE as decimal(18, 2))) as money
|
||||||
from bankbills_history
|
from bankbill_history
|
||||||
where I_JYRQ >= #{startTime}
|
where C_JYRQ >= #{startTime}
|
||||||
and I_JYRQ <= #{endTime}
|
and C_JYRQ <= #{endTime}
|
||||||
|
|
||||||
group by I_FXK, I_JYRQ
|
group by C_ZFFS, C_JYRQ
|
||||||
order by I_FXK, I_JYRQ
|
order by C_ZFFS, C_JYRQ
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findbankbillHistoryCount" parameterType="HashMap" resultType="HashMap">
|
<select id="findbankbillHistoryCount" parameterType="HashMap" resultType="HashMap">
|
||||||
@@ -249,20 +249,20 @@
|
|||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="findBankbillCountData" parameterType="HashMap" resultType="HashMap">
|
<select id="findBankbillCountData" parameterType="HashMap" resultType="HashMap">
|
||||||
select count(1) as num,cast(IFNULL(sum(I_JYJE),0) as decimal(19,2)) as money
|
select count(1) as num,cast(IFNULL(sum(C_JYJE),0) as decimal(19,2)) as money
|
||||||
from bankbills_history
|
from bankbill_history
|
||||||
<where>
|
<where>
|
||||||
<if test="startTime!=null and startTime!=''">
|
<if test="startTime!=null and startTime!=''">
|
||||||
and I_JYRQ >= #{startTime}
|
and C_JYRQ >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="endTime!=null and endTime!=''">
|
<if test="endTime!=null and endTime!=''">
|
||||||
and I_JYRQ <= #{endTime}
|
and C_JYRQ <= #{endTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="c_zffs!=null and c_zffs!=''">
|
<if test="c_zffs!=null and c_zffs!=''">
|
||||||
and I_FXK = #{c_zffs}
|
and C_ZFFS = #{c_zffs}
|
||||||
</if>
|
</if>
|
||||||
<if test="likeFiled!=null and likeFiled!=''">
|
<if test="likeFiled!=null and likeFiled!=''">
|
||||||
and I_DDH like concat('%',concat(#{likeFiled},'%'))
|
and C_YSDDH like concat('%',concat(#{likeFiled},'%'))
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user