bug修改-修改密码

This commit is contained in:
guoshengxiong 2024-05-12 17:04:11 +08:00
parent 2abfb5c70a
commit 65cc2ade55
5 changed files with 10 additions and 8 deletions

View File

@ -16,9 +16,9 @@ public interface INoticeService extends IService<Notice> {
IPage<Notice> selectNoticePageList(Map<String, Object> map);
void addNotice(Notice notice, boolean sendNotice);
void addNotice(Notice notice, boolean isSendMqtt);
void addNoticeAndApp(Notice notice, boolean sendNotice);
void addNoticeAndApp(Notice notice, boolean isSendMqtt);
void cleanAllNotice(Map<String, Object> map);

View File

@ -69,17 +69,17 @@ public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> impleme
}
@Override
public void addNotice(Notice notice, boolean sendNotice) {
public void addNotice(Notice notice, boolean isSendMqtt) {
noticeMapper.insert(notice);
if (sendNotice) {
if (isSendMqtt) {
sendPushMessage(notice);
}
}
@Override
public void addNoticeAndApp(Notice notice, boolean sendNotice) {
public void addNoticeAndApp(Notice notice, boolean isSendMqtt) {
noticeMapper.insert(notice);
if (sendNotice) {
if (isSendMqtt) {
sendPushMessage(notice);
}
SystemUser systemUser = systemUserMapper.selectById(notice.getAccountId());

View File

@ -342,7 +342,8 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
}
}
if (systemUser.getAccountType() == 6) {
List<SystemUser> users = getProjectChilderSystemUserList(new MapBuilder<String, Object>().put("projectSn", systemUser.getSn()).build());
List<SystemUser> users = getProjectChilderSystemUserList(new MapBuilder<String, Object>().put("projectSn", systemUser.getSn())
.put("userId", systemUser.getUserId()).build());
if (CollUtil.isNotEmpty(users)) {
systemUser.setPersonMail(users.get(0).getPersonMail());
}

View File

@ -271,6 +271,7 @@ public class QualityInspectionRecordServiceImpl extends ServiceImpl<QualityInspe
if (qualityInspectionRecord.getRecordType() == 1 && qualityInspectionRecord.getStatus() == 2) {
noticeService.addUserNoticeAndApp(qualityInspectionRecord.getChangeId(), "您有一条质量检查待整改,问题:" + qualityInspectionRecord.getDangerItemContent(), "质量管理待整改", "11",
PushPayloads.buildPushPayload(11, qualityInspectionRecord));
}
sanjiangDataCall.sendAddQualityInspectionRecord(qualityInspectionRecord);

View File

@ -234,7 +234,7 @@ public class XzRegistryServiceImpl extends ServiceImpl<XzRegistryMapper, XzRegis
}
email = xzRegistry.getEmail();
} else if (su.getAccountType() == 6) {
List<SystemUser> users = systemUserService.getProjectChilderSystemUserList(new MapBuilder<String, Object>().put("projectSn", su.getSn()).build());
List<SystemUser> users = systemUserService.getProjectChilderSystemUserList(new MapBuilder<String, Object>().put("projectSn", su.getSn()).put("userId", su.getUserId()).build());
if (CollUtil.isEmpty(users)) {
throw new OpenAlertException("项目子账号不存在");
}