|
@@ -6,6 +6,7 @@ import com.fjhx.victoriatourist.entity.abnormal.po.AbnormalInfo;
|
|
|
import com.fjhx.victoriatourist.mapper.abnormal.AbnormalInfoMapper;
|
|
|
import com.fjhx.victoriatourist.service.abnormal.AbnormalInfoService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.ruoyi.common.utils.wrapper.SqlField;
|
|
|
import com.ruoyi.system.utils.UserUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -30,8 +31,11 @@ public class AbnormalInfoServiceImpl extends ServiceImpl<AbnormalInfoMapper, Abn
|
|
|
public Page<AbnormalInfoVo> getPage(AbnormalInfoSelectDto dto) {
|
|
|
IWrapper<AbnormalInfo> wrapper = getWrapper();
|
|
|
wrapper.eq(AbnormalInfo::getType, dto.getType())
|
|
|
- .eq(AbnormalInfo::getStatus, dto.getStatus())
|
|
|
- .like(AbnormalInfo::getTitle, dto.getKeyword());
|
|
|
+ .eq(AbnormalInfo::getStatus, dto.getStatus());
|
|
|
+ wrapper.keyword(dto.getKeyword(),
|
|
|
+ new SqlField(AbnormalInfo::getTitle),
|
|
|
+ new SqlField(AbnormalInfo::getLinkCode)
|
|
|
+ );
|
|
|
|
|
|
wrapper.orderByDesc("ai", AbnormalInfo::getId);
|
|
|
Page<AbnormalInfoVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|