zx 4 hari lalu
induk
melakukan
091e3c93a3

+ 14 - 0
fs-admin/src/main/java/com/fs/his/task/Task.java

@@ -653,6 +653,20 @@ public class Task {
             qwUserService.syncQwUserName(company.getCorpId());
         }
     }
+    @Autowired
+    IFsStorePaymentService fsStorePaymentService;
+    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 videoTranscode() throws Exception
     {

+ 4 - 0
fs-service/src/main/java/com/fs/his/mapper/FsStorePaymentMapper.java

@@ -314,4 +314,8 @@ 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();
+
+
 }

+ 3 - 0
fs-service/src/main/java/com/fs/his/service/IFsStorePaymentService.java

@@ -123,4 +123,7 @@ public interface IFsStorePaymentService
     R getWxaCodeByPayment(FsStorePaymentGetWxaCodeParam param);
 
     List<FsStorePaymentScrm> selectFsStorePaymentByOrderScrm(Long id);
+
+    List<FsStorePayment> selectAllPayment();
+
 }

+ 5 - 0
fs-service/src/main/java/com/fs/his/service/impl/FsStorePaymentServiceImpl.java

@@ -1394,6 +1394,11 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
         return fsStorePaymentScrmMapper.selectFsStorePaymentByOrderScrm(id);
     }
 
+    @Override
+    public List<FsStorePayment> selectAllPayment() {
+        return fsStorePaymentMapper.selectAllPayment();
+    }
+
 
     @Override
     public R paymentByWxaCode(FsStorePaymentPayParam param) {