@@ -528,6 +528,19 @@ public class Task {
}
+ public void payment(){
+ List<FsStorePayment> fsStorePayments = fsStorePaymentService.selectAllPayment();
+ for (FsStorePayment fsStorePayment : fsStorePayments) {
+ try{
+ fsStorePaymentService.updateFsStorePaymentByDecryptForm(fsStorePayment.getPaymentId());
+ }catch (Exception e){
+ logger.error("同步支付失败:"+fsStorePayment.getPaymentId());
+ }
+
public void addQwUserName() {
QwCompany qwCompany = new QwCompany();
List<QwCompany> companyList = qwCompanyService.selectQwCompanyList(qwCompany);
@@ -335,4 +335,7 @@ public interface FsStorePaymentMapper
List<FsStorePaymentVO> selectFsStorePaymentListQueryVO(@Param("maps") FsStorePaymentParam fsStorePayment);
FsStorePayment selectLastByBusinessCode(@Param("orderSn")String orderSn);
+ @Select(" select * from fs_store_payment where status = 0 ")
+ List<FsStorePayment> selectAllPayment();
@@ -137,4 +137,6 @@ public interface IFsStorePaymentService
String payConfirm(String payCode,String tradeNo,String bankTransactionId,String bankSerialNo);
void synchronizePayStatus();
@@ -1603,6 +1603,11 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
+ @Override
+ public List<FsStorePayment> selectAllPayment() {
+ return fsStorePaymentMapper.selectAllPayment();
@Override
public R paymentByWxaCode(FsStorePaymentPayParam param) {
FsUser user = userMapper.selectFsUserById(param.getUserId());