| | |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.sxkj.fw.device.dto.FwDeviceTrackDTO; |
| | | import org.sxkj.fw.device.entity.FwDeviceTrackEntity; |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入fwDeviceTrack") |
| | | public R submit(@Valid @RequestBody FwDeviceTrackDTO fwDeviceTrack) { |
| | | |
| | | if (null != fwDeviceTrack.getDeviceId()) { |
| | | return R.fail("设备ID不能为空"); |
| | | } |
| | | |
| | | return R.status(fwDeviceTrackService.saveOrUpdate(FwDeviceTrackWrapper.build().entityDTO(fwDeviceTrack))); |
| | | } |
| | | |