1
This commit is contained in:
parent
c70a8879d8
commit
b59dab605d
@ -565,9 +565,11 @@ public class BusiNoticeServiceImpl extends ServiceImpl<BusiNoticeMapper,BusiNoti
|
||||
|
||||
@Override
|
||||
public IPage<BusiNoticeVo> myPublishNoticeList(AppNoticeQuery query, Page<BusiNotice> page) {
|
||||
//获取当前登录用户
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
query.setUserId(userId);
|
||||
if (query.getUserId() == null) {
|
||||
//获取当前登录用户
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
query.setUserId(userId);
|
||||
}
|
||||
IPage<BusiNoticeVo> pageList = baseMapper.myPublishNoticeList(query, page);
|
||||
List<String> idList = pageList.getRecords().stream().map(BusiNotice::getId).collect(Collectors.toList());
|
||||
if(!idList.isEmpty()){
|
||||
|
@ -42,4 +42,6 @@ public class MemberUserVO extends MemberUser {
|
||||
int coupon;
|
||||
/**用户名*/
|
||||
String userName;
|
||||
/**类型名称*/
|
||||
String identityName;
|
||||
}
|
||||
|
@ -88,6 +88,7 @@
|
||||
select main.id AS id,
|
||||
main.user_type AS userType,
|
||||
main.identity_type AS identityType,
|
||||
sdd.dict_label AS identityName,
|
||||
main.user_id AS userId,
|
||||
main.tel AS tel,
|
||||
main.tremaining AS tremaining,
|
||||
@ -105,6 +106,7 @@
|
||||
GROUP_CONCAT(mc.card_name SEPARATOR ', ') AS memberCardName
|
||||
from dl_member_user main
|
||||
LEFT JOIN sys_user su ON main.user_id = su.user_id AND su.del_flag = 0
|
||||
left join (select dict_value,dict_label from sys_dict_data where dict_type = 'dl_identity_type') sdd on main.identity_type = sdd.dict_value
|
||||
LEFT JOIN dl_member_card mc ON
|
||||
main.user_id = mc.user_id
|
||||
AND mc.start_date <= CURDATE()
|
||||
|
Loading…
Reference in New Issue
Block a user