| | |
| | | } |
| | | |
| | | /** |
| | | * 查询设备订单表中已派单/已接单所有的数据 |
| | | * |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public List<DeviceOrder> selectDeviceOrderAll() throws Exception { |
| | | return deviceOrderMapper.selectDeviceOrderAll(); |
| | | } |
| | | |
| | | /** |
| | | * 根据id查询安装订单信息 |
| | | * |
| | | * @param id |
| | |
| | | if (deviceOrder != null) { |
| | | DeviceOrder order = deviceOrderMapper.selectDeviceOrderById(deviceOrder.getId()); |
| | | if (order != null) { |
| | | order.setUserId(order.getUserId()); |
| | | order.setRate(1); |
| | | int rows = deviceOrderMapper.updateDeviceOrderScoreAndComment(order); |
| | | deviceOrder.setUserId(deviceOrder.getUserId()); |
| | | deviceOrder.setIsRate(1); |
| | | int rows = deviceOrderMapper.updateDeviceOrderScoreAndComment(deviceOrder); |
| | | if (rows > 0) { |
| | | return AjaxResult.success("操作成功"); |
| | | } |