|
@@ -121,7 +121,7 @@ public class TaMachineryController extends BaseController {
|
121
|
121
|
|
122
|
122
|
IPage<MachineSummary> pg = new Page<>(pageNum, pageSize);
|
123
|
123
|
|
124
|
|
- IPage<MachineSummary> result = iTaMachineryService.getSummaryList(pg, location, typeId, orgId, q);
|
|
124
|
+ IPage<MachineSummary> result = iTaMachineryService.getSummaryList(pg, location, typeId, orgId, q, clientId);
|
125
|
125
|
return ResponseBean.success(result);
|
126
|
126
|
}
|
127
|
127
|
|
|
@@ -239,6 +239,27 @@ public class TaMachineryController extends BaseController {
|
239
|
239
|
return ResponseBean.success(taOrderList);
|
240
|
240
|
}
|
241
|
241
|
|
|
242
|
+
|
|
243
|
+ /**
|
|
244
|
+ * 根据id查询对象
|
|
245
|
+ * @param id 实体ID
|
|
246
|
+ */
|
|
247
|
+ @RequestMapping(value="/admin/machinery/{id}/status/{status}",method= RequestMethod.PUT)
|
|
248
|
+ @ApiOperation(value="更新车辆状态", notes = "更新车辆状态", httpMethod = "PUT", response = ResponseBean.class)
|
|
249
|
+ public ResponseBean getMachineryDuty(@ApiParam("对象ID") @PathVariable String id,
|
|
250
|
+ @ApiParam("车辆状态") @PathVariable Integer status) throws Exception{
|
|
251
|
+
|
|
252
|
+ TaMachinery taMachinery = iTaMachineryService.getById(id);
|
|
253
|
+ if (taMachinery == null) {
|
|
254
|
+ return ResponseBean.error("未找到车辆信息");
|
|
255
|
+ }
|
|
256
|
+
|
|
257
|
+ taMachinery.setStatus(status);
|
|
258
|
+ iTaMachineryService.updateById(taMachinery);
|
|
259
|
+
|
|
260
|
+ return ResponseBean.success(taMachinery);
|
|
261
|
+ }
|
|
262
|
+
|
242
|
263
|
/**
|
243
|
264
|
* 车辆实时预览
|
244
|
265
|
* @param id 实体ID
|