|
@@ -22,16 +22,16 @@ import org.springframework.stereotype.Service;
|
|
|
public class ProEconEquipmentmodelServiceImpl extends ServiceImpl<ProEconEquipmentmodelMapper, ProEconEquipmentmodel> implements IProEconEquipmentmodelService {
|
|
|
|
|
|
@Override
|
|
|
- public IPage<ProEconEquipmentmodel> list(String id, String nem_code, String name, String pageNum, String pageSize) {
|
|
|
+ public IPage<ProEconEquipmentmodel> list(String id, String nemCode, String name, String pageNum, String pageSize) {
|
|
|
QueryWrapper<ProEconEquipmentmodel> qw = new QueryWrapper<>();
|
|
|
if (StringUtils.isNotEmpty(id)) {
|
|
|
- qw.eq("id", id);
|
|
|
+ qw.lambda().eq(ProEconEquipmentmodel::getId, id);
|
|
|
}
|
|
|
- if (StringUtils.isNotEmpty(nem_code)) {
|
|
|
- qw.like(nem_code, "code");
|
|
|
+ if (StringUtils.isNotEmpty(nemCode)) {
|
|
|
+ qw.lambda().like(ProEconEquipmentmodel::getNemCode,nemCode);
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(name)) {
|
|
|
- qw.like(name, "name");
|
|
|
+ qw.lambda().like( ProEconEquipmentmodel::getName,name);
|
|
|
}
|
|
|
Page<ProEconEquipmentmodel> page = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
|
|
|
IPage<ProEconEquipmentmodel> companysPage = getBaseMapper().selectPage(page, qw);
|