ソースを参照

取对应门店类型的最大更新时间

njs 2 ヶ月 前
コミット
89633bd23b

+ 2 - 2
suishenbang-sync/suishenbang-sync-common/src/main/java/com/dgtly/sync/service/ShopUserTypeComponent.java

@@ -106,7 +106,7 @@ public class ShopUserTypeComponent {
             stoneParams.put("access_token", shopToken);
             stoneParams.put("page", 1);
             stoneParams.put("page_size", 100);
-            String dateString = userShopExtMapper.searchRunTime();
+            String dateString = userShopExtMapper.searchRunTime("0");
             if(dateString !=null){
                 // 截取前3位毫秒数
                 String truncatedDate = dateString.substring(0, dateString.lastIndexOf('.') + 4);
@@ -195,7 +195,7 @@ public class ShopUserTypeComponent {
             stoneParams.put("access_token", shopToken);
             stoneParams.put("page", 1);
             stoneParams.put("page_size", 100);
-            String dateString = userShopExtMapper.searchRunTime();
+            String dateString = userShopExtMapper.searchRunTime("1");
             if(dateString !=null){
                 // 截取前3位毫秒数
                 String truncatedDate = dateString.substring(0, dateString.lastIndexOf('.') + 4);

+ 1 - 1
suishenbang-system/src/main/java/com/dgtly/system/mapper/SysUserShopExtMapper.java

@@ -68,7 +68,7 @@ public interface SysUserShopExtMapper
      * @author: njs
      * @date: 2025/8/19 15:41
      */
-    String searchRunTime();
+    String searchRunTime(@Param("isShopType") String isShopType);
 
     void deleteUserShopExt(@Param("userId") String userId,@Param("loginName") String loginName, @Param("shopCode") String shopCode,@Param("isShopType") String isShopType);
 

+ 1 - 1
suishenbang-system/src/main/resources/mapper/system/SysUserShopExtMapper.xml

@@ -103,7 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </delete>
 
     <select id="searchRunTime" resultType="java.lang.String">
-        select max(user_update_time) from sys_user_shop_ext
+        select max(user_update_time) from sys_user_shop_ext where is_shop_type =#{isShopType}
     </select>
 
     <update id="deleteUserShopExt" >