debug:型号查询单个
This commit is contained in:
parent
807c3ef9d3
commit
adeea2b37e
|
@ -1,5 +1,6 @@
|
||||||
package com.ruoyi.ss.model.service.impl;
|
package com.ruoyi.ss.model.service.impl;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
import com.ruoyi.common.utils.ServiceUtil;
|
import com.ruoyi.common.utils.ServiceUtil;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
@ -156,7 +157,12 @@ public class ModelServiceImpl implements ModelService
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SmModelVO selectOne(SmModelQuery query) {
|
public SmModelVO selectOne(SmModelQuery query) {
|
||||||
return modelMapper.selectOne(query);
|
PageHelper.startPage(1,1);
|
||||||
|
List<SmModelVO> list = this.selectSmModelList(query);
|
||||||
|
if (CollectionUtils.isEmptyElement(list)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return list.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user