| | |
| | | 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("dataTime", dataTime) |
| | | .andEqualTo("type", type) |
| | | }) |
| | | } |
| | | |
| | | fun fetchGridData(gridData: GridData): List<GridData?> { |
| | | return gridDataMapper.select(gridData) |
| | | } |
| | | |
| | | fun fetchGridDataDetail(dataId: Int, groupId: Int?, cellId: Int?): List<GridDataDetail?> { |
| | |
| | | .andEqualTo("cellId", it.cellId) |
| | | }) |
| | | } |
| | | } |
| | | |
| | | @Transactional |
| | | fun updateGridCellBatch(gridCellList: List<GridCell?>) { |
| | | gridCellList.forEach { gridCellMapper.updateByPrimaryKey(it) } |
| | | } |
| | | |
| | | } |