|
@@ -1,10 +1,14 @@
|
|
|
package com.poteviohealth.ym.ipos.service.impl;
|
|
package com.poteviohealth.ym.ipos.service.impl;
|
|
|
|
|
|
|
|
-import com.poteviohealth.cgp.common.model.PageQuery;
|
|
|
|
|
|
|
+import com.poteviohealth.cgp.common.filter.TokenContext;
|
|
|
|
|
+import com.poteviohealth.cgp.common.integrated.StringParams;
|
|
|
import com.poteviohealth.cgp.common.model.VaultsResponse;
|
|
import com.poteviohealth.cgp.common.model.VaultsResponse;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.*;
|
|
import com.poteviohealth.ym.ipos.model.payment.*;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.back.BindPosBack;
|
|
import com.poteviohealth.ym.ipos.model.payment.back.BindPosBack;
|
|
|
|
|
+import com.poteviohealth.ym.ipos.model.payment.back.PayBack;
|
|
|
|
|
+import com.poteviohealth.ym.ipos.model.payment.back.PayQueryBack;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.detail.PayParams;
|
|
import com.poteviohealth.ym.ipos.model.payment.detail.PayParams;
|
|
|
|
|
+import com.poteviohealth.ym.ipos.model.payment.detail.PayQueryDetail;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.detail.StoreInfo;
|
|
import com.poteviohealth.ym.ipos.model.payment.detail.StoreInfo;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.detail.Wxapp;
|
|
import com.poteviohealth.ym.ipos.model.payment.detail.Wxapp;
|
|
|
import com.poteviohealth.ym.ipos.model.payment.dto.BindDto;
|
|
import com.poteviohealth.ym.ipos.model.payment.dto.BindDto;
|
|
@@ -51,8 +55,26 @@ public class PaymentServiceImpl implements IPaymentService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public VaultsResponse barcodeQuery(PageQuery pageQuery) {
|
|
|
|
|
- return null;
|
|
|
|
|
|
|
+ public VaultsResponse<PayQueryBack> barcodeQuery(String paySn) {
|
|
|
|
|
+ PayQuery payQuery = new PayQuery();
|
|
|
|
|
+ payQuery.setPos_id(TokenContext.curePosId());
|
|
|
|
|
+ payQuery.setStore_id(TokenContext.cureStoreId());
|
|
|
|
|
+ PayQueryDetail detail = new PayQueryDetail();
|
|
|
|
|
+ detail.setOrg_pos_seq(paySn);
|
|
|
|
|
+ payQuery.setBarcode_query_request(detail);
|
|
|
|
|
+ PayQueryBack back = null;
|
|
|
|
|
+ try {
|
|
|
|
|
+ back = (PayQueryBack) YmUtil.resultBack(payQuery,new PayQueryBack());
|
|
|
|
|
+ } catch (IllegalAccessException e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ return VaultsResponse.failed(e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(YmUtil.SUCCESS.equals(back.getResult().getId())){
|
|
|
|
|
+ return VaultsResponse.success();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return VaultsResponse.failed(back.getResult().getComment());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -66,8 +88,10 @@ public class PaymentServiceImpl implements IPaymentService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public VaultsResponse unifiedOrder(PayOrder payOrder) {
|
|
|
|
|
|
|
+ public VaultsResponse<PayBack> unifiedOrder(StringParams params) {
|
|
|
|
|
+
|
|
|
return null;
|
|
return null;
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|