From 40bfb646d1b962d33841c1ebbceb0dd7cb668bfb Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期二, 29 四月 2025 14:54:04 +0800 Subject: [PATCH] 后台日志管理 --- springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java index c74b218..0caf05b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java @@ -90,6 +90,7 @@ partyMember.setSource(1); save(partyMember); } else { + partyMember.setIsConfirm(0); partyMember.setUpdateBy(Long.parseLong(loginUserInfo.getId().toString())); updateById(partyMember); } @@ -100,11 +101,12 @@ * @param loginUserInfo */ @Override - public void freeze(Long id, SystemUserVo loginUserInfo) { + public PartyMember freeze(Long id, SystemUserVo loginUserInfo) { PartyMember partyMember = getById(id); partyMember.setFreezeStatus(partyMember.getFreezeStatus() == 1 ? 0 : 1); partyMember.setUpdateBy(Long.parseLong(loginUserInfo.getId().toString())); updateById(partyMember); + return partyMember; } @Override @@ -257,8 +259,8 @@ //导入党员默认审核通过 partyMember.setAuditStatus(AuditStatusEnum.APPROVED.getCode()); partyMember.setSource(1);//管理后台录入 - //默认头像 TODO 默认头像 - partyMember.setAvatar(""); + //默认头像 + partyMember.setAvatar("https://www.psciio.com//idcard/f15c91f940624ed59537ecced1059f18.jpg"); // 根据身份证号设置性别 if (StrUtil.isNotBlank(template.getIdNumber())) { partyMember.setGender(getGender(template.getIdNumber())); @@ -310,10 +312,11 @@ * @param loginUserInfo */ @Override - public void audit(PartyMemberDTO dto, SystemUserVo loginUserInfo) { + public PartyMember audit(PartyMemberDTO dto, SystemUserVo loginUserInfo) { PartyMember partyMember = BeanUtil.copyProperties(dto, PartyMember.class); partyMember.setUpdateBy(Long.parseLong(loginUserInfo.getId().toString())); updateById(partyMember); + return this.getById(dto.getId()); } @Override -- Gitblit v1.7.1