|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.glxp.api.service.thrsys.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.glxp.api.dao.thrsys.ThrBusTypeOriginDao;
|
|
|
|
@ -85,7 +86,9 @@ public class ThrBusTypeOriginServiceImpl implements IThrBusTypeOriginService {
|
|
|
|
|
@Override
|
|
|
|
|
public ThrBusTypeOriginEntity findByAction(String action) {
|
|
|
|
|
QueryWrapper<ThrBusTypeOriginEntity> query = new QueryWrapper<>();
|
|
|
|
|
query.like("action", action);
|
|
|
|
|
if(StrUtil.isNotEmpty(action)){
|
|
|
|
|
query.like("action", action);
|
|
|
|
|
}
|
|
|
|
|
List<ThrBusTypeOriginEntity> list = thrBusTypeOriginDao.selectList(query);
|
|
|
|
|
if (CollUtil.isNotEmpty(list)) {
|
|
|
|
|
return list.get(0);
|
|
|
|
|