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; /** *

* 服务实现类 *

* * @author 江苏鵷雏网络科技有限公司 * @since 2023-08-03 */ @Service public class LinkDetectionServiceImpl extends ServiceImpl implements LinkDetectionService { @Resource private LinkDetectionMapper linkDetectionMapper; // 批量添加 @Override public void insertListData(Integer id, List linkDetectionList) { for (LinkDetection linkDetection:linkDetectionList){ linkDetection.setInspectionStatus(1); linkDetection.setLinkBasicId(id); } linkDetectionMapper.insertBatchSomeColumn(linkDetectionList); } }