|
|
@@ -140,7 +140,7 @@ public class IotProductService {
|
|
|
*/
|
|
|
public Object detail(Long id) {
|
|
|
IotProduct iotProduct = iotProductMapper.selectById(id);
|
|
|
- if (Objects.isNull(iotProduct)) {
|
|
|
+ if (Objects.isNull(iotProduct) || Global.DEL == iotProduct.getDelFlag()) {
|
|
|
throw new BusinessException("当前产品不存在");
|
|
|
}
|
|
|
IotProductDetailVo iotProductDetailVo = new IotProductDetailVo();
|