Browse Source

fix:重新领取溶液的时候清空目标加液容量

master
白凤吉 3 days ago
parent
commit
ddbd19279e
  1. 2
      src/main/java/com/iflytop/handacid/common/service/ReceiveRecordService.java

2
src/main/java/com/iflytop/handacid/common/service/ReceiveRecordService.java

@ -38,6 +38,7 @@ public class ReceiveRecordService extends ServiceImpl<ReceiveRecordMapper, Recei
channel.setReceivedVolume(receiveRecord.getReceivedVolume()); channel.setReceivedVolume(receiveRecord.getReceivedVolume());
channel.setConcentration(receiveRecord.getConcentration()); channel.setConcentration(receiveRecord.getConcentration());
channel.setSolutionId(receiveRecord.getSolutionId()); channel.setSolutionId(receiveRecord.getSolutionId());
channel.setTargetVolume(null);
channelService.updateById(channel); channelService.updateById(channel);
ChannelState channelState = deviceState.getChannelStateMap().get(receiveRecord.getChannelCode()); ChannelState channelState = deviceState.getChannelStateMap().get(receiveRecord.getChannelCode());
@ -46,6 +47,7 @@ public class ReceiveRecordService extends ServiceImpl<ReceiveRecordMapper, Recei
channelState.setConcentration(receiveRecord.getConcentration()); channelState.setConcentration(receiveRecord.getConcentration());
channelState.setSolutionId(receiveRecord.getSolutionId()); channelState.setSolutionId(receiveRecord.getSolutionId());
channelState.setSolutionName(receiveRecord.getSolutionName()); channelState.setSolutionName(receiveRecord.getSolutionName());
channelState.setTargetVolume(null);
return true; return true;
} }

Loading…
Cancel
Save