@@ -89,7 +89,7 @@ public class AppDeviceLogServiceImpl extends JpaServiceImp<AppDeviceLog, String>
appDeviceLog.setOperator(utilService.getUserName());
save(appDeviceLog); // 记录入库日志
}
- else{
+ else if(deviceList.size() == 1) { //如果只有1个,认为是单个入库,检测是否重复入库;批次入库只跳过
throw new ApiRuntimeException(p + "设备已入库,不能重复入库!");
});