修改手机号,登录手机号和线索手机号一直
This commit is contained in:
@@ -23,6 +23,7 @@ import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
@@ -51,6 +52,15 @@ public class LineInfoDAO {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public Boolean getLineInfoByMobile(String mobile) {
|
||||
Example example = new Example(LineInfoDO.class);
|
||||
example.createCriteria().andEqualTo("mobile", mobile);
|
||||
List<LineInfoDO> lineInfoDOS = lineInfoMapper.selectByExample(example);
|
||||
if(CollectionUtils.isNotEmpty(lineInfoDOS)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public Integer updateLineInfo(LineInfoDO param){
|
||||
if(Objects.isNull(param.getId())){
|
||||
|
||||
Reference in New Issue
Block a user