判断序列号与仪器是否对应

master
382696293@qq.com 2 years ago
parent c2e9c04a62
commit 4d68f01931

@ -417,7 +417,7 @@ public class WxInstrumentServiceImpl implements IWxInstrumentService {
public WxInstrumentSerial determineSerialIsSameInstrument(String serial, Long instrumentId) {
/* 1、获取序列号信息 */
WxInstrumentSerial wxInstrumentSerial = getInstrumentInfoBySerial(serial);
if (wxInstrumentSerial.getInstrumentId() == instrumentId) {
if (wxInstrumentSerial.getInstrumentId() != instrumentId) {
logger.info("用户选择的仪器与序列号对应的仪器不一致,序列号:{} 仪器ID{}", serial, instrumentId);
throw new ServiceReturnCodeException("用户选择的仪器与序列号对应的仪器不一致", 204);
}

Loading…
Cancel
Save