|
|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|