| | |
| | | import com.flightfeather.uav.domain.mapper.GridGroupMapper |
| | | import com.flightfeather.uav.lightshare.bean.AreaVo |
| | | import org.springframework.stereotype.Repository |
| | | import org.springframework.transaction.annotation.Transactional |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | |
| | |
| | | .andEqualTo("districtCode", areaVo.districtCode).andEqualTo("districtName", areaVo.districtName) |
| | | .andEqualTo("townCode", areaVo.townCode).andEqualTo("townName", areaVo.townName) |
| | | }) |
| | | } |
| | | |
| | | fun fetchGridGroup(id: Int): GridGroup? { |
| | | return gridGroupMapper.selectByPrimaryKey(id) |
| | | } |
| | | |
| | | fun fetchGridGroup(gridGroup: GridGroup): List<GridGroup?> { |
| | | return gridGroupMapper.select(gridGroup) |
| | | } |
| | | |
| | | fun fetchGridCell(groupId: Int): List<GridCell?> { |
| | |
| | | .andEqualTo("cellId", it.cellId) |
| | | }) |
| | | } |
| | | } |
| | | |
| | | @Transactional |
| | | fun updateGridCellBatch(gridCellList: List<GridCell?>) { |
| | | gridCellList.forEach { gridCellMapper.updateByPrimaryKey(it) } |
| | | } |
| | | |
| | | } |