Browse Source

性能测试优化

dev-V1.2
vincent 5 days ago
parent
commit
fed64faad9
  1. 50
      zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EfcodeCpNoticeServiceImpl.java

50
zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EfcodeCpNoticeServiceImpl.java

@ -144,19 +144,19 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService {
} }
baseMapper.insert(entity); baseMapper.insert(entity);
// 同步写入 notice_users 表 // // 同步写入 notice_users 表
syncNoticeUsers(entity.getId(), bo.getEnforceUserNames(), bo.getEnforceUserIds(), bo.getEnforceUserTels()); // syncNoticeUsers(entity.getId(), bo.getEnforceUserNames(), bo.getEnforceUserIds(), bo.getEnforceUserTels());
// 发布时自动生成系统提示消息 // // 发布时自动生成系统提示消息
if (entity.getStatus() != null && entity.getStatus() == 1L) { // if (entity.getStatus() != null && entity.getStatus() == 1L) {
// 调用站内信发送预告消息(发送前内部校验系统参数 sns.send) // // 调用站内信发送预告消息(发送前内部校验系统参数 sns.send)
getSendYuGaoMsg(entity); // getSendYuGaoMsg(entity);
} // }
//
//同步更新企业电话 // //同步更新企业电话
UpdateWrapper<EnterpriseInformation> updateWrapper = new UpdateWrapper<>(); // UpdateWrapper<EnterpriseInformation> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("enterprise_number",entity.getEnterpriseNumber()); // updateWrapper.eq("enterprise_number",entity.getEnterpriseNumber());
updateWrapper.set("enterprise_tel",entity.getContactPhone()); // updateWrapper.set("enterprise_tel",entity.getContactPhone());
enterpriseInformationMapper.update(updateWrapper); // enterpriseInformationMapper.update(updateWrapper);
return "操作成功"; return "操作成功";
} }
@ -236,18 +236,18 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService {
update.setPublishTime(new Date()); update.setPublishTime(new Date());
} }
baseMapper.updateById(update); baseMapper.updateById(update);
// 同步更新 notice_users 表(先删后插) // // 同步更新 notice_users 表(先删后插)
syncNoticeUsers(bo.getId(), bo.getEnforceUserNames(), bo.getEnforceUserIds(), bo.getEnforceUserTels()); // syncNoticeUsers(bo.getId(), bo.getEnforceUserNames(), bo.getEnforceUserIds(), bo.getEnforceUserTels());
// 发布时自动生成系统提示消息 // // 发布时自动生成系统提示消息
if (update.getStatus() != null && update.getStatus() == 1L) { // if (update.getStatus() != null && update.getStatus() == 1L) {
generateSystemMessage(update); // generateSystemMessage(update);
} // }
//
//同步更新企业电话 // //同步更新企业电话
UpdateWrapper<EnterpriseInformation> updateWrapper = new UpdateWrapper<>(); // UpdateWrapper<EnterpriseInformation> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("enterprise_number",bo.getEnterpriseNumber()); // updateWrapper.eq("enterprise_number",bo.getEnterpriseNumber());
updateWrapper.set("enterprise_tel",bo.getContactPhone()); // updateWrapper.set("enterprise_tel",bo.getContactPhone());
enterpriseInformationMapper.update(updateWrapper); // enterpriseInformationMapper.update(updateWrapper);
return "操作成功"; return "操作成功";
} }

Loading…
Cancel
Save