This commit is contained in:
cjw 2024-08-19 10:54:51 +08:00
parent 58c466b447
commit d7348a41c9
2 changed files with 9 additions and 10 deletions

View File

@ -33,7 +33,7 @@ public class CounselorExperienceVo implements Serializable {
*/ */
@ExcelProperty(value = "") @ExcelProperty(value = "")
private Long id; private Long id;
private Long counselorId; private Long counselorId;
@Translation(type = TransConstant.USER_ID_TO_NICKNAME) @Translation(type = TransConstant.USER_ID_TO_NICKNAME)

View File

@ -1,23 +1,22 @@
package org.dromara.scale.service.impl; package org.dromara.scale.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service; import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.scale.domain.CounselorExperience;
import org.dromara.scale.domain.bo.CounselorExperienceBo; import org.dromara.scale.domain.bo.CounselorExperienceBo;
import org.dromara.scale.domain.vo.CounselorExperienceVo; import org.dromara.scale.domain.vo.CounselorExperienceVo;
import org.dromara.scale.domain.CounselorExperience;
import org.dromara.scale.mapper.CounselorExperienceMapper; import org.dromara.scale.mapper.CounselorExperienceMapper;
import org.dromara.scale.service.ICounselorExperienceService; import org.dromara.scale.service.ICounselorExperienceService;
import org.springframework.stereotype.Service;
import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Collection;
/** /**
* 培训经历Service业务层处理 * 培训经历Service业务层处理
@ -71,7 +70,7 @@ public class CounselorExperienceServiceImpl implements ICounselorExperienceServi
private LambdaQueryWrapper<CounselorExperience> buildQueryWrapper(CounselorExperienceBo bo) { private LambdaQueryWrapper<CounselorExperience> buildQueryWrapper(CounselorExperienceBo bo) {
Map<String, Object> params = bo.getParams(); Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<CounselorExperience> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<CounselorExperience> lqw = Wrappers.lambdaQuery();
lqw.eq(StringUtils.isNotBlank(bo.getDescribe()), CounselorExperience::getDescribe, bo.getDescribe()); //lqw.eq(StringUtils.isNotBlank(bo.getDescribe()), CounselorExperience::getDescribe, bo.getDescribe());
return lqw; return lqw;
} }