update 会员组

This commit is contained in:
2024-01-02 16:00:33 +08:00
parent 61ad9a9c46
commit 946325120d
3 changed files with 29 additions and 14 deletions

View File

@@ -2,11 +2,13 @@ package com.jsowell.pile.service.impl;
import com.google.common.collect.Lists;
import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.SecurityUtils;
import com.jsowell.common.util.id.IdUtils;
import com.jsowell.pile.domain.MemberGroup;
import com.jsowell.pile.mapper.MemberGroupMapper;
import com.jsowell.pile.service.MemberGroupService;
import com.jsowell.pile.vo.web.MemberGroupVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -19,6 +21,7 @@ import java.util.List;
* @author jsowell
* @date 2023-12-26
*/
@Slf4j
@Service
public class MemberGroupServiceImpl implements MemberGroupService {
@Autowired
@@ -61,6 +64,12 @@ public class MemberGroupServiceImpl implements MemberGroupService {
// 生成编号
memberGroup.setGroupCode(generateGroupCode());
memberGroup.setCreateTime(DateUtils.getNowDate());
try {
String createBy = SecurityUtils.getLoginUser().getUsername();
memberGroup.setCreateBy(createBy);
} catch (Exception e) {
}
return memberGroupMapper.insertMemberGroup(memberGroup);
}