package com.yeejoin.amos.boot.module.jg.biz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yeejoin.amos.boot.module.jg.biz.service.IIdxBizJgOtherInfoService;
import com.yeejoin.amos.boot.module.ymt.api.dto.IdxBizJgOtherInfoDto;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgOtherInfo;
import com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgOtherInfoMapper;
import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.rdbms.service.BaseService;

import java.util.List;

/**
 * 安全追溯-其他信息表服务实现类
 *
 * @author system_generator
 * @date 2023-08-17
 */
@Service
public class IdxBizJgOtherInfoServiceImpl extends BaseService<IdxBizJgOtherInfoDto,IdxBizJgOtherInfo,IdxBizJgOtherInfoMapper> implements IIdxBizJgOtherInfoService {

    public boolean saveOrUpdateData(IdxBizJgOtherInfo otherInfo){
        return this.saveOrUpdate(otherInfo);
    }

    @Override
    public IdxBizJgOtherInfo getOneData(String record) {
        return this.getOne(new QueryWrapper<IdxBizJgOtherInfo>().eq("RECORD", record));
    }

    @Override
    public void saveBatch(List<IdxBizJgOtherInfo> otherInfoList) {
        super.saveBatch(otherInfoList);
    }

    @Override
    public boolean saveOrUpdateBatch(List<IdxBizJgOtherInfo> otherInfoList) {
        return super.saveOrUpdateBatch(otherInfoList);
    }
}