|
@@ -311,8 +311,13 @@ public class AuthProductServiceImpl implements AuthProductService {
|
|
// 关联设备,更新设备
|
|
// 关联设备,更新设备
|
|
authProductMapper.updateProductByProductId(product);
|
|
authProductMapper.updateProductByProductId(product);
|
|
}
|
|
}
|
|
|
|
+ ProductRelationVo relationVo = new ProductRelationVo();
|
|
|
|
+ relationVo.setAuthId(authId);
|
|
|
|
+ relationVo.setProductId(product.getProductId());
|
|
|
|
+ relationVo.setAuthType(authType);
|
|
// 插入机构设备关联关系
|
|
// 插入机构设备关联关系
|
|
- relationId = authProductMapper.insertProductRelation(authId, product.getProductId(), authType);
|
|
|
|
|
|
+ authProductMapper.insertProductRelation(relationVo);
|
|
|
|
+ relationId = relationVo.getRelationId();
|
|
} else {
|
|
} else {
|
|
if (1 == dbRelation.getAuthType()) {
|
|
if (1 == dbRelation.getAuthType()) {
|
|
// 更新设备
|
|
// 更新设备
|
|
@@ -429,7 +434,7 @@ public class AuthProductServiceImpl implements AuthProductService {
|
|
map.put("addWord2_style", Font.BOLD);
|
|
map.put("addWord2_style", Font.BOLD);
|
|
map.put("addWord2_size", (int) Math.round(90 * rate));
|
|
map.put("addWord2_size", (int) Math.round(90 * rate));
|
|
map.put("addWord2_x", (int) Math.round(2168 * rate));
|
|
map.put("addWord2_x", (int) Math.round(2168 * rate));
|
|
- map.put("addWord2_y", (int) Math.round(3160 * rate));
|
|
|
|
|
|
+ map.put("addWord2_y", (int) Math.round(3157 * rate));
|
|
}
|
|
}
|
|
// 添加认证日期信息
|
|
// 添加认证日期信息
|
|
if (null != product.getCreateTime()) {
|
|
if (null != product.getCreateTime()) {
|
|
@@ -440,7 +445,7 @@ public class AuthProductServiceImpl implements AuthProductService {
|
|
map.put("addWord3_style", Font.PLAIN);
|
|
map.put("addWord3_style", Font.PLAIN);
|
|
map.put("addWord3_size", (int) Math.round(90 * rate));
|
|
map.put("addWord3_size", (int) Math.round(90 * rate));
|
|
map.put("addWord3_x", (int) Math.round(2085 * rate));
|
|
map.put("addWord3_x", (int) Math.round(2085 * rate));
|
|
- map.put("addWord3_y", (int) Math.round(3292 * rate));
|
|
|
|
|
|
+ map.put("addWord3_y", (int) Math.round(3289 * rate));
|
|
}
|
|
}
|
|
// 添加二维码信息
|
|
// 添加二维码信息
|
|
if (StringUtils.isNotEmpty(template.getQrPosition())) {
|
|
if (StringUtils.isNotEmpty(template.getQrPosition())) {
|