package com.jeesharp.business.modules.mall.service.impl;

import com.jeesharp.business.modules.mall.entity.MallSpuTag;
import com.jeesharp.business.modules.mall.mapper.MallSpuTagMapper;
import com.jeesharp.business.modules.mall.service.MallSpuTagService;
import com.jeesharp.business.modules.mall.vo.MallSpuTagQueryVO;
import com.jeesharp.framework.mybatis.core.service.CrudService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Arrays;

/**
 * SPU 标签关联领域服务实现。
 *
 * @author jeesharp
 * @since 2026-05-07
 */
@Service
@Transactional(readOnly = true)
public class MallSpuTagServiceImpl extends CrudService<MallSpuTagMapper, MallSpuTag, MallSpuTagQueryVO> implements MallSpuTagService {

    private static final String IDS_SEPARATOR = ",";

    @Override
    @Transactional(readOnly = false)
    public void createSpuTag(MallSpuTag entity) {
        save(entity);
    }

    @Override
    @Transactional(readOnly = false)
    public void updateSpuTag(MallSpuTag entity) {
        update(entity);
    }

}
