whycxzp
2022-08-08 090fc1f6d92f438ba2bd5c124ab0b9715bd3cbbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.ComponentProductHistoryMapper;
import com.whyc.pojo.ComponentProductHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class ComponentProductHistoryService {
    @Autowired(required = false)
    private ComponentProductHistoryMapper mapper;
    //增加散装件和产品之间替换关系
    public Response addComponentConnectBom(List<ComponentProductHistory> list) {
        int bl=mapper.insertBatchSomeColumn(list);
        return new Response().setII(1,true,bl,bl>0?"添加关联成功":"添加关联失败");
    }
}