|
|
@ -29,6 +29,7 @@ public class ReceiveRecordService extends ServiceImpl<ReceiveRecordMapper, Recei |
|
|
|
receiveRecord.setReceiverId(deviceState.getCurrentUser().getId()); |
|
|
|
receiveRecord.setReceiverNickname(deviceState.getCurrentUser().getNickname()); |
|
|
|
Solution solution = solutionService.getById(receiveRecord.getSolutionId()); |
|
|
|
receiveRecord.setSolutionId(solution.getId()); |
|
|
|
receiveRecord.setSolutionName(solution.getName()); |
|
|
|
this.save(receiveRecord); |
|
|
|
|
|
|
@ -36,12 +37,15 @@ public class ReceiveRecordService extends ServiceImpl<ReceiveRecordMapper, Recei |
|
|
|
channel.setCurrentVolume(receiveRecord.getReceivedVolume()); |
|
|
|
channel.setReceivedVolume(receiveRecord.getReceivedVolume()); |
|
|
|
channel.setConcentration(receiveRecord.getConcentration()); |
|
|
|
channel.setSolutionId(receiveRecord.getSolutionId()); |
|
|
|
channelService.updateById(channel); |
|
|
|
|
|
|
|
ChannelState channelState = deviceState.getChannelStateMap().get(receiveRecord.getChannelCode()); |
|
|
|
channelState.setCurrentVolume(receiveRecord.getReceivedVolume()); |
|
|
|
channelState.setReceivedVolume(receiveRecord.getReceivedVolume()); |
|
|
|
channelState.setConcentration(receiveRecord.getConcentration()); |
|
|
|
channelState.setSolutionId(receiveRecord.getSolutionId()); |
|
|
|
channelState.setSolutionName(receiveRecord.getSolutionName()); |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|