feat:域名切换

This commit is contained in:
苏竹红
2025-04-13 20:58:26 +08:00
parent 53b103edda
commit aefc333d5b
7 changed files with 22 additions and 10 deletions

View File

@@ -76,8 +76,8 @@ public class ShopAccountDAO {
* @param status 状态
* @return 影响的行数
*/
public int updateStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status){
return shopAccountMapper.updateStatusByShopIdAndSystemName(shopId,systemNameList,status);
public int updateStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status,Date syncTime){
return shopAccountMapper.updateStatusByShopIdAndSystemName(shopId,systemNameList,status,syncTime);
}
public int updateEntryStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status){

View File

@@ -35,7 +35,7 @@ public interface ShopAccountMapper extends Mapper<ShopAccountDO> {
int updateStatusByShopIdAndSystemName(
@Param("shopId") Long shopId,
@Param("systemNameList") List<String> systemNameList,
@Param("status") Integer status
@Param("status") Integer status,Date lastSyncTime
);
int updateEntryStatusByShopIdAndSystemName(

View File

@@ -75,8 +75,14 @@
<update id="updateStatusByShopIdAndSystemName">
UPDATE
xfsg_shop_account
SET
status = #{status,jdbcType=BIT}
<set>
<if test="status != null">
status = #{status},
</if>
<if test="syncTime != null">
last_sync_time = #{syncTime},
</if>
</set>
WHERE
shop_id = #{shopId}
and system_name in