Pārlūkot izejas kodu

fix:定时任务同步前一天的支付状态

ct 5 dienas atpakaļ
vecāks
revīzija
f73998a3f5

+ 1 - 4
fs-service/src/main/java/com/fs/his/service/impl/FsStorePaymentServiceImpl.java

@@ -1542,14 +1542,11 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
         FsStorePayment queryParam = new FsStorePayment();
         queryParam.setStatus(0);//未支付
         queryParam.setBeginTime(DateUtils.addDateDays(-1));
-        queryParam.setEndTime(DateUtils.getNowDate().toString());
+        queryParam.setEndTime(DateUtils.getDate());
         List<FsStorePayment> list = selectFsStorePaymentList(queryParam);
         if (list != null && !list.isEmpty()) {
             List<CompletableFuture<Void>> futures = new ArrayList<>();
             for (FsStorePayment fsStorePayment : list) {
-                if (fsStorePayment.getPayCode().equals("1974233163920048128")){
-                    System.out.println(fsStorePayment.getPayCode());
-                }
                 CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
                     updateFsStorePaymentByDecryptForm(fsStorePayment.getPaymentId());
                     logger.info("定时任务:同步支付状态,payment_id:{}",fsStorePayment.getPaymentId());

+ 1 - 1
fs-service/src/main/resources/mapper/his/FsStorePaymentMapper.xml

@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="businessCode != null "> and business_code = #{businessCode}</if>
             <if test="appId != null and appId !=''"> and app_id = #{appId}</if>
             <if test="beginTime != null and beginTime !=''"> and create_time >= #{beginTime}</if>
-            <if test="endTime != null and endTime !=''"> and create_time &lt;= #{endTime}</if>
+            <if test="endTime != null and endTime !=''"> and create_time &lt; #{endTime}</if>
         </where>
     </select>