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

import com.jeesharp.business.modules.mall.entity.MallFreightTemplateRegion;
import com.jeesharp.business.modules.mall.mapper.MallFreightTemplateRegionMapper;
import com.jeesharp.business.modules.mall.service.MallFreightTemplateRegionService;
import com.jeesharp.business.modules.mall.vo.MallFreightTemplateRegionQueryVO;
import com.jeesharp.framework.mybatis.core.service.CrudService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Arrays;

/**
 * 运费模板地区配置领域服务实现。
 *
 * @author jeesharp
 * @since 2026-05-07
 */
@Service
@Transactional(readOnly = true)
public class MallFreightTemplateRegionServiceImpl
    extends CrudService<MallFreightTemplateRegionMapper, MallFreightTemplateRegion, MallFreightTemplateRegionQueryVO>
    implements MallFreightTemplateRegionService {

    private static final String IDS_SEPARATOR = ",";

    @Override
    @Transactional(readOnly = false)
    public void createRegion(MallFreightTemplateRegion entity) {
        save(entity);
    }

    @Override
    @Transactional(readOnly = false)
    public void updateRegion(MallFreightTemplateRegion entity) {
        update(entity);
    }

}
