| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.zy.acs.framework.common.Cools; |
| | | import com.zy.acs.manager.common.domain.AreaShapeDto; |
| | | import com.zy.acs.manager.core.service.AreaGovernService; |
| | | import com.zy.acs.manager.manager.controller.param.MapAreaParam; |
| | | import com.zy.acs.manager.manager.entity.Area; |
| | | import com.zy.acs.manager.manager.enums.StatusType; |
| | | import com.zy.acs.manager.manager.mapper.AreaMapper; |
| | | import com.zy.acs.manager.manager.service.AreaService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | @Service("areaService") |
| | | public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements AreaService { |
| | | |
| | | @Autowired |
| | | private AreaGovernService areaGovernService; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | area.setMemo(param.getMemo()); |
| | | if (!this.save(area)) { |
| | | log.error("failed to save area"); |
| | | } else { |
| | | // update code list in area map |
| | | areaGovernService.reSet(area); |
| | | } |
| | | |
| | | return area; |