|
|
@@ -52,6 +52,7 @@ public class DeviceProductService extends SuperService {
|
|
|
return ResultContent.buildFail("projectOid不能为空");
|
|
|
}
|
|
|
|
|
|
+ // 产品绑定的机构信息
|
|
|
Organization organization = null;
|
|
|
if (StringUtils.isNotEmpty(param.getBeLongOid())) {
|
|
|
organization = organizationDao.findTopByOid(param.getBeLongOid());
|
|
|
@@ -61,6 +62,7 @@ public class DeviceProductService extends SuperService {
|
|
|
}
|
|
|
|
|
|
DeviceProduct product = null;
|
|
|
+ // 是否有同名的产品
|
|
|
DeviceProduct nameTemp = deviceProductDao.findTopByNameAndProjectOid(param.getName(), param.getProjectOid());
|
|
|
if (StringUtils.isNotEmpty(param.getId())) {
|
|
|
product = deviceProductDao.findTopById(param.getId());
|