|
@ -9,6 +9,7 @@ import com.yihu.wlyy.repository.organization.HospitalMappingDao;
|
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
|
import com.yihu.wlyy.repository.patient.SignFamilyDao;
|
|
|
import com.yihu.wlyy.service.third.httplog.LogService;
|
|
|
import com.yihu.wlyy.service.third.ylz.PayLogService;
|
|
|
import com.yihu.wlyy.service.weixin.wxpay.common.Configure;
|
|
|
import com.yihu.wlyy.service.weixin.wxpay.model.BindCard;
|
|
|
import com.yihu.wlyy.service.weixin.wxpay.model.Charge;
|
|
@ -67,7 +68,7 @@ public class OnePayController extends WeixinBaseController {
|
|
|
@Autowired
|
|
|
private ChargeDao chargeDao;
|
|
|
@Autowired
|
|
|
LogService logService;
|
|
|
PayLogService logService;
|
|
|
@Autowired
|
|
|
private Configure config;
|
|
|
@Autowired
|
|
@ -325,8 +326,10 @@ public class OnePayController extends WeixinBaseController {
|
|
|
|
|
|
// 判断是否需要更新数据 needUpload为0不需要更新
|
|
|
WlyyCharge charge = chargeDao.getUploadStatus(outChargeNo);
|
|
|
LOGGER.info("before goto "+charge.getNeedUpload()+" == "+ outChargeNo);
|
|
|
if (charge != null && !("0".equals(charge.getNeedUpload()))) {
|
|
|
pay.updateData(outChargeNo, chargeNo, chargeTime, totalAmount, insuranceAmount, selfPayAmount, billNo, miRegisterNo);
|
|
|
LOGGER.info("after goto "+charge.getNeedUpload()+" == "+ outChargeNo);
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
@ -426,8 +429,10 @@ public class OnePayController extends WeixinBaseController {
|
|
|
|
|
|
// 判断是否需要更新数据 needUpload为0不需要更新
|
|
|
WlyyCharge charge = chargeDao.getUploadStatus(outChargeNo);
|
|
|
LOGGER.info("before goto "+charge.getNeedUpload()+" == "+ outChargeNo);
|
|
|
if (charge != null && !("0".equals(charge.getNeedUpload()))) {
|
|
|
pay.updateData(outChargeNo, chargeNo, chargeTime, totalAmount, insuranceAmount, selfPayAmount, billNo, miRegisterNo);
|
|
|
LOGGER.info("after goto "+charge.getNeedUpload()+" == "+ outChargeNo);
|
|
|
}
|
|
|
|
|
|
response.getWriter().write("SUCCESS");
|