feat:校验
This commit is contained in:
@@ -55,14 +55,15 @@ public class LineInfoDAO {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public Boolean getLineInfoByMobile(String mobile) {
|
||||
|
||||
public LineInfoDO getLineByMobile(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;
|
||||
return lineInfoMapper.selectOneByExample(example);
|
||||
}
|
||||
|
||||
public Boolean getLineInfoByMobile(String mobile) {
|
||||
return Objects.nonNull(getLineByMobile(mobile));
|
||||
}
|
||||
|
||||
public Integer updateLineInfo(LineInfoDO param){
|
||||
|
||||
Reference in New Issue
Block a user