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.core.BaseService;
import com.yeejoin.amos.boot.module.jg.biz.service.IIdxBizJgTechParamsRopewayService;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgTechParamsRopeway;
import com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgTechParamsRopewayMapper;
import org.springframework.stereotype.Service;

/**
 * 安全追溯-索道服务实现类
 *
 * @author system_generator
 * @date 2023-08-17
 */
@Service
public class IdxBizJgTechParamsRopewayServiceImpl extends BaseService<IdxBizJgTechParamsRopewayMapper, IdxBizJgTechParamsRopeway> implements IIdxBizJgTechParamsRopewayService {

    public void saveOrUpdateData(IdxBizJgTechParamsRopeway ropeway) {
        super.saveOrUpdateWithNull(ropeway);
    }

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

}