|
@@ -314,7 +314,9 @@ public class AuthProductServiceImpl implements AuthProductService {
|
|
|
authProductMapper.updateProductByProductId(product);
|
|
|
}
|
|
|
// 插入机构设备关联关系
|
|
|
- relationId = authProductMapper.insertProductRelation(authId, product.getProductId(), authType);
|
|
|
+ authProductMapper.insertProductRelation(authId, product.getProductId(), authType);
|
|
|
+ //查询最新关联id
|
|
|
+ relationId=authProductMapper.getNewestRelationId();
|
|
|
} else {
|
|
|
if (1 == dbRelation.getAuthType()) {
|
|
|
// 更新设备
|