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

import cn.gtmap.estateplat.config.core.mapper.config.GdYgMapper;
import cn.gtmap.estateplat.config.core.service.GdYgService;
import cn.gtmap.estateplat.model.server.core.GdYg;
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 GdYgServiceImpl implements GdYgService {
    @Autowired
    private GdYgMapper gdYgMapper;


    @Override
    public void updateGdYgRedundantField(GdYg gdYg) {
        if(gdYg != null&&StringUtils.isNotBlank(gdYg.getYgid())) {
            gdYgMapper.updateGdYgRedundantField(gdYg);
        }
    }
}
