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.IIdxBizJgTechParamsElevatorService;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgTechParamsElevator;
import com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgTechParamsElevatorMapper;
import org.springframework.stereotype.Service;

/**
 * 安全追溯-电梯服务实现类
 *
 * @author system_generator
 * @date 2023-08-17
 */
@Service
public class IdxBizJgTechParamsElevatorServiceImpl extends BaseService<IdxBizJgTechParamsElevatorMapper,IdxBizJgTechParamsElevator> implements IIdxBizJgTechParamsElevatorService {

    public boolean saveOrUpdateData(IdxBizJgTechParamsElevator techParamsElevator){
        return super.saveOrUpdateWithNull(techParamsElevator);
    }

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