@ -100,11 +100,6 @@ public class PEISService {
return ;
}
if ( order . hasNoticeStatusPaid ( ) ) {
log . info ( "[体检预约]订单已支付 outTradeNo={}, bankTransNo={}, noticeOrderNo={}" , outTradeNo , bankTransNo , noticeOrderNo ) ;
return ;
}
JsonResult jsonResult = postForm ( XBDHelper . XBD_PEIS + "/wxUse/wxPay" , params - > {
params . put ( "orderNo" , noticeOrderNo ) ;
params . put ( "payStatus" , "OK" ) ;
@ -125,7 +120,7 @@ public class PEISService {
message = "" ;
}
String refundDesc = "体检订单号:" + noticeOrderNo + " 通知体检系统异常:" + message ;
refundPEIS ( merchantEnum , noticeOrderNo , outTradeNo , totalFee , refundDesc , new Date ( ) , openid ) ;
refundPEIS ( merchantEnum , noticeOrderNo , outTradeNo , totalFee , message , refundDesc , new Date ( ) , openid ) ;
return ;
}
@ -164,7 +159,7 @@ public class PEISService {
* @param tradeDate 退费时间
* @param openid openid
* /
public Result refundPEIS ( MerchantEnum merchantEnum , String noticeOrderNo , String outTradeNo , BigDecimal totalFee , String refundDesc , Date tradeDate , String openid ) {
public Result refundPEIS ( MerchantEnum merchantEnum , String noticeOrderNo , String outTradeNo , BigDecimal totalFee , String noticeResult , String refundDesc , Date tradeDate , String openid ) {
try {
if ( totalFee . compareTo ( BigDecimal . ZERO ) = = 0 ) {
log . info ( "{} [体检预约]订单金额为0无需退费 outTradeNo={}, noticeOrderNo={}, totalFee={}" , merchantEnum . NAME , outTradeNo , noticeOrderNo , totalFee ) ;
@ -205,7 +200,7 @@ public class PEISService {
}
Integer refundStatus = "OK" . equals ( refundResult ) ? 1 : - 1 ;
boolean isUpdate = peisDao . updateRefundResult ( outTradeNo , noticeOrderNo , refundResult , refundStatus ) ;
boolean isUpdate = peisDao . updateRefundResult ( outTradeNo , noticeOrderNo , refundResult , refundStatus , noticeResult ) ;
if ( ! isUpdate ) {
log . info ( "{} [体检预约][退费错误]退费信息更新失败 noticeOrderNo={}" , merchantEnum . NAME , noticeOrderNo ) ;
}