package cn.estsh.i3plus.ext.mes.pcn.api.busi.jx;

import cn.estsh.i3plus.pojo.mes.bean.MesProductData;
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: wangjie
 * @CreateDate: 2021/01/18 11:22 上午
 * @Description:
 **/
public interface IJxProductDataService {

    /**
     * 插入生产数据信息(新事务，不回滚)
     * @param productDataList 生产数据
     */
    @ApiOperation(value = "插入生产数据信息(新事务，不回滚)", notes = "插入生产数据信息(新事务，不回滚)")
    @Transactional(propagation = Propagation.REQUIRES_NEW, noRollbackFor = {ImppBusiException.class, Exception.class})
    void insertProductDataNoRollback(List<MesProductData> productDataList);

}
