1
This commit is contained in:
parent
6273d05022
commit
06fb34b7b7
@ -170,6 +170,7 @@ public class BusiNoticeServiceImpl extends ServiceImpl<BusiNoticeMapper,BusiNoti
|
|||||||
if (CollectionUtil.isNotEmpty(data.getCustomForm())) {
|
if (CollectionUtil.isNotEmpty(data.getCustomForm())) {
|
||||||
cardService.dealMemberRights2(data.getUserId(),null,"report_info_collect",1);
|
cardService.dealMemberRights2(data.getUserId(),null,"report_info_collect",1);
|
||||||
}
|
}
|
||||||
|
memberUserService.setTotalNum(data.getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,7 +51,7 @@ public class MemberUser extends DlBaseEntity
|
|||||||
|
|
||||||
/** 通告主-个人累计已发布通告数量 */
|
/** 通告主-个人累计已发布通告数量 */
|
||||||
@Excel(name = "通告主-个人累计已发布通告数量")
|
@Excel(name = "通告主-个人累计已发布通告数量")
|
||||||
private Long ttotalNum;
|
private Integer ttotalNum;
|
||||||
|
|
||||||
/** 通告主-个人粉丝数量 */
|
/** 通告主-个人粉丝数量 */
|
||||||
@Excel(name = "通告主-个人粉丝数量")
|
@Excel(name = "通告主-个人粉丝数量")
|
||||||
@ -92,7 +92,7 @@ public class MemberUser extends DlBaseEntity
|
|||||||
}else{
|
}else{
|
||||||
//通告主
|
//通告主
|
||||||
this.tremaining = addNotice;
|
this.tremaining = addNotice;
|
||||||
this.ttotalNum = 0L;
|
this.ttotalNum = 0;
|
||||||
this.tfansNum = 0;
|
this.tfansNum = 0;
|
||||||
this.topenDisturb = DictConstants.YES_NO_NO;
|
this.topenDisturb = DictConstants.YES_NO_NO;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -93,4 +93,12 @@ public interface IMemberUserService extends IService<MemberUser> {
|
|||||||
*/
|
*/
|
||||||
Object isGetGift();
|
Object isGetGift();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布通告数量统计
|
||||||
|
* @author PQZ
|
||||||
|
* @date 15:20 2025/6/16
|
||||||
|
* @param userId 用户id
|
||||||
|
**/
|
||||||
|
void setTotalNum(Long userId);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -12,6 +12,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||||||
import com.ruoyi.base.domain.BaseConfig;
|
import com.ruoyi.base.domain.BaseConfig;
|
||||||
import com.ruoyi.base.service.IBaseCityService;
|
import com.ruoyi.base.service.IBaseCityService;
|
||||||
import com.ruoyi.base.service.IBaseConfigService;
|
import com.ruoyi.base.service.IBaseConfigService;
|
||||||
|
import com.ruoyi.busi.domain.BusiUserLove;
|
||||||
import com.ruoyi.busi.service.IBusiEvaluateService;
|
import com.ruoyi.busi.service.IBusiEvaluateService;
|
||||||
import com.ruoyi.busi.service.IBusiNoticeService;
|
import com.ruoyi.busi.service.IBusiNoticeService;
|
||||||
import com.ruoyi.common.config.DlRightsConfig;
|
import com.ruoyi.common.config.DlRightsConfig;
|
||||||
@ -393,4 +394,23 @@ public class MemberUserServiceImpl extends ServiceImpl<MemberUserMapper, MemberU
|
|||||||
MemberUserVO result = memberUserMapper.queryByUserId(userId, "02");
|
MemberUserVO result = memberUserMapper.queryByUserId(userId, "02");
|
||||||
return Optional.ofNullable(result.getIsGetGift()).orElse("0");
|
return Optional.ofNullable(result.getIsGetGift()).orElse("0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布通告数量统计
|
||||||
|
*
|
||||||
|
* @param userId 用户id
|
||||||
|
* @author PQZ
|
||||||
|
* @date 15:20 2025/6/16
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void setTotalNum(Long userId) {
|
||||||
|
LambdaQueryWrapper<MemberUser> memberWrapper = new LambdaQueryWrapper<>();
|
||||||
|
memberWrapper.eq(MemberUser::getUserId, userId).eq(MemberUser::getUserType, "01");
|
||||||
|
MemberUser memberUser = getOne(memberWrapper);
|
||||||
|
if (memberUser != null) {
|
||||||
|
Integer newTotalNum = memberUser.getTtotalNum() + 1;
|
||||||
|
memberUser.setTtotalNum(newTotalNum);
|
||||||
|
updateById(memberUser);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user