|
|
@@ -112,9 +112,6 @@ public class IotProductService {
|
|
|
* @return
|
|
|
*/
|
|
|
public Object update(IotProductUpdate iotProductPara) {
|
|
|
- if (Objects.isNull(iotProductPara.getId())) {
|
|
|
- throw new BusinessException("id不能为空");
|
|
|
- }
|
|
|
IotProduct iotProduct = new IotProduct();
|
|
|
iotProduct.setId(iotProductPara.getId());
|
|
|
iotProduct.setName(iotProductPara.getName());
|
|
|
@@ -123,10 +120,8 @@ public class IotProductService {
|
|
|
iotProduct.setVendors(iotProductPara.getVendors());
|
|
|
iotProduct.setAuthType(iotProductPara.getAuthType());
|
|
|
iotProduct.setTag(iotProductPara.getTag());
|
|
|
- iotProduct.setSize(0);
|
|
|
iotProduct.setRemark(iotProductPara.getRemark());
|
|
|
iotProductMapper.updateById(iotProduct);
|
|
|
-
|
|
|
return true;
|
|
|
}
|
|
|
|