mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 添加会员到集团组
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import com.jsowell.pile.mapper.MemberGroupRelationMapper;
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.domain.MemberGroupRelation;
|
||||
import com.jsowell.pile.mapper.MemberGroupRelationMapper;
|
||||
import com.jsowell.pile.service.MemberGroupRelationService;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
@Service
|
||||
public class MemberGroupRelationServiceImpl implements MemberGroupRelationService{
|
||||
|
||||
@@ -64,6 +66,9 @@ public class MemberGroupRelationServiceImpl implements MemberGroupRelationServic
|
||||
|
||||
@Override
|
||||
public int batchInsert(List<MemberGroupRelation> list) {
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return 0;
|
||||
}
|
||||
return memberGroupRelationMapper.batchInsert(list);
|
||||
}
|
||||
|
||||
|
||||
@@ -175,14 +175,12 @@ public class MemberGroupServiceImpl implements MemberGroupService {
|
||||
return 0;
|
||||
}
|
||||
// 校验通过,关系存入数据库
|
||||
List<MemberGroupRelation> list = Lists.newArrayList();
|
||||
MemberGroupRelation relation = new MemberGroupRelation();
|
||||
relation.setMemberId(memberBasicInfo.getMemberId());
|
||||
relation.setGroupCode(groupCode);
|
||||
relation.setCreateTime(DateUtils.getNowDate());
|
||||
relation.setDelFlag(DelFlagEnum.NORMAL.getValue());
|
||||
memberGroupRelationService.batchInsert(list);
|
||||
return memberGroupRelationService.batchInsert(list);
|
||||
return memberGroupRelationService.batchInsert(Lists.newArrayList(relation));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user