package com.yuanchu.limslaboratory.service.impl;
|
|
import com.yuanchu.limslaboratory.pojo.LinkDetection;
|
import com.yuanchu.limslaboratory.mapper.LinkDetectionMapper;
|
import com.yuanchu.limslaboratory.service.LinkDetectionService;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 服务实现类
|
* </p>
|
*
|
* @author 江苏鵷雏网络科技有限公司
|
* @since 2023-08-03
|
*/
|
@Service
|
public class LinkDetectionServiceImpl extends ServiceImpl<LinkDetectionMapper, LinkDetection> implements LinkDetectionService {
|
|
@Resource
|
private LinkDetectionMapper linkDetectionMapper;
|
|
// 批量添加
|
@Override
|
public void insertListData(Integer id, List<LinkDetection> linkDetectionList) {
|
for (LinkDetection linkDetection:linkDetectionList){
|
linkDetection.setInspectionStatus(1);
|
linkDetection.setLinkBasicId(id);
|
linkDetection.setState(1);
|
}
|
linkDetectionMapper.insertBatchSomeColumn(linkDetectionList);
|
}
|
}
|