|
|
@@ -18,6 +18,7 @@ package org.springblade.sing.active.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import io.jsonwebtoken.lang.Assert;
|
|
|
import org.springblade.sing.active.entity.ActiveHelp;
|
|
|
import org.springblade.sing.active.vo.ActiveHelpVO;
|
|
|
import org.springblade.sing.active.mapper.ActiveHelpMapper;
|
|
|
@@ -25,6 +26,7 @@ import org.springblade.sing.active.service.IActiveHelpService;
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
/**
|
|
|
* 活动记录 服务实现类
|
|
|
@@ -41,8 +43,11 @@ public class ActiveHelpServiceImpl extends BaseServiceImpl<ActiveHelpMapper, Act
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public ActiveHelp queryIndex(ActiveHelpVO activeHelpVO) {
|
|
|
|
|
|
+ Assert.notNull(activeHelpVO.getPhone(), "请添加手机号");
|
|
|
+
|
|
|
ActiveHelp activeHelp = baseMapper.selectOne(new LambdaQueryWrapper<ActiveHelp>().eq(ActiveHelp::getPhone,activeHelpVO.getPhone()));
|
|
|
|
|
|
if (activeHelp == null){
|