Commit edb49ea1 by pfh

custom商品关联表迁移

parent 9c58e54c
......@@ -102,6 +102,7 @@ public class CustomProductFactoryPriceIntervalRelServiceImpl implements CustomPr
* @param productId 产品ID
*/
@Transactional(rollbackFor = Exception.class)
@Override
public void saveBatch(List<CustomProductFactoryPriceIntervalRelEntity> data, Integer productId) {
customProductFactoryPriceIntervalRelDomainService.remove(new LambdaQueryWrapper<CustomProductFactoryPriceIntervalRelEntity>()
.eq(CustomProductFactoryPriceIntervalRelEntity::getProductId, productId));
......
......@@ -3,6 +3,7 @@ package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelVO;
import com.jomalls.custom.dal.entity.product.CustomProductFactoryPriceIntervalRelEntity;
import java.util.List;
......@@ -59,5 +60,13 @@ public interface CustomProductFactoryPriceIntervalRelService {
*/
void deleteById(Integer id);
/**
* 批量保存工厂价格区间关联
* 逻辑:先删除该产品下的所有旧数据,再批量插入新数据
* @param data 待保存的数据列表
* @param productId 产品ID
*/
void saveBatch(List<CustomProductFactoryPriceIntervalRelEntity> data, Integer productId);
}
......@@ -3,6 +3,7 @@ package com.jomalls.custom.app.service.product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelPageVO;
import com.jomalls.custom.app.vo.product.CustomProductWarehouseRelVO;
import com.jomalls.custom.dal.entity.product.CustomProductWarehouseRelEntity;
import java.util.List;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment