feat:阶段完成

This commit is contained in:
苏竹红
2025-04-14 11:06:36 +08:00
parent 99f9444176
commit 7ca5a4305e
7 changed files with 88 additions and 19 deletions

View File

@@ -7,6 +7,7 @@ import com.cool.store.enums.OpenStatusEnum;
import com.cool.store.enums.PlatformBuildEnum;
import com.cool.store.enums.ShopAccountEnum;
import com.cool.store.mapper.ShopAccountMapper;
import com.cool.store.utils.StringUtil;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
@@ -69,6 +70,14 @@ public class ShopAccountDAO {
return shopAccountMapper.selectByShopId(shopId);
}
public ShopAccountDO selectByShopIdAndSystemName(Long shopId,String systemName){
if (Objects.isNull(shopId)|| StringUtil.isEmpty(systemName)){
return null;
}
return shopAccountMapper.selectByShopIdAndSystemName(shopId,systemName);
}
/**
* 根据shopId与system_name修改status
* @param shopId 店铺ID

View File

@@ -24,6 +24,14 @@ public interface ShopAccountMapper extends Mapper<ShopAccountDO> {
*/
List<ShopAccountDO> selectByShopId(Long shopId);
/**
* 根据shopId与系统名称查询
* @param shopId
* @param systemName
* @return
*/
ShopAccountDO selectByShopIdAndSystemName(@Param("shopId") Long shopId , @Param("systemName") String systemName);
/**
* 根据shopId与system_name修改status
* @param shopId 店铺ID

View File

@@ -71,6 +71,27 @@
order by id
</select>
<select id="selectByShopIdAndSystemName" resultMap="BaseResultMap">
SELECT
id,
shop_id,
system_name,
account,
bound_phone,
password_salt,
password,
status,
entry_status,
create_time,
last_sync_time,
remark
FROM
xfsg_shop_account
WHERE
shop_id = #{shopId}
and system_name = #{systemName}
</select>
<!-- 根据shopId与system_name修改status -->
<update id="updateStatusByShopIdAndSystemName">
UPDATE