package cn.gtmap.estateplat.config.core.service.impl;

import cn.gtmap.estateplat.config.core.mapper.config.GdYyMapper;
import cn.gtmap.estateplat.config.core.service.GdYyService;
import cn.gtmap.estateplat.model.server.core.GdYy;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author <a href="mailto:liujie@gtmap.cn">liujie</a>
 * @version 2019/6/21
 * @description
 */
@Service
public class GdYyServiceImpl implements GdYyService {
    @Autowired
    private GdYyMapper gdYyMapper;

    @Override
    public void updateGdYyRedundantField(GdYy gdYy) {
        if(gdYy != null&&StringUtils.isNotBlank(gdYy.getYyid())) {
            gdYyMapper.updateGdYyRedundantField(gdYy);
        }
    }
}
