package com.whyc.service;
|
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.ComponentProductMapper;
|
import com.whyc.pojo.ComponentProduct;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service
|
public class ComponentProductService {
|
@Autowired(required = false)
|
private ComponentProductMapper mapper;
|
//增加散装件和产品之间替换关系
|
public Response addCompentConnectBom(List<ComponentProduct> list) {
|
int bl=mapper.insertBatchSomeColumn(list);
|
return new Response().setII(1,true,bl,bl>0?"添加关联成功":"添加关联失败");
|
}
|
}
|