mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 会员组
This commit is contained in:
@@ -2,20 +2,21 @@ package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.MemberGroup;
|
||||
import com.jsowell.pile.vo.web.MemberGroupVO;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会员组Mapper接口
|
||||
*
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-12-26
|
||||
*/
|
||||
public interface MemberGroupMapper
|
||||
{
|
||||
@Repository
|
||||
public interface MemberGroupMapper {
|
||||
/**
|
||||
* 查询会员组
|
||||
*
|
||||
*
|
||||
* @param id 会员组主键
|
||||
* @return 会员组
|
||||
*/
|
||||
@@ -23,7 +24,7 @@ public interface MemberGroupMapper
|
||||
|
||||
/**
|
||||
* 查询会员组列表
|
||||
*
|
||||
*
|
||||
* @param memberGroup 会员组
|
||||
* @return 会员组集合
|
||||
*/
|
||||
@@ -31,7 +32,7 @@ public interface MemberGroupMapper
|
||||
|
||||
/**
|
||||
* 新增会员组
|
||||
*
|
||||
*
|
||||
* @param memberGroup 会员组
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -39,7 +40,7 @@ public interface MemberGroupMapper
|
||||
|
||||
/**
|
||||
* 修改会员组
|
||||
*
|
||||
*
|
||||
* @param memberGroup 会员组
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -47,7 +48,7 @@ public interface MemberGroupMapper
|
||||
|
||||
/**
|
||||
* 删除会员组
|
||||
*
|
||||
*
|
||||
* @param id 会员组主键
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -55,7 +56,7 @@ public interface MemberGroupMapper
|
||||
|
||||
/**
|
||||
* 批量删除会员组
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user