|
@@ -2,6 +2,7 @@ package com.jeeplus.test.cw.reimbursementApproval.approvalType.service;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.jeeplus.core.domain.BaseEntity;
|
|
|
import com.jeeplus.flowable.common.handler.CollectionUtils;
|
|
|
import com.jeeplus.sys.service.dto.OfficeDTO;
|
|
@@ -74,17 +75,17 @@ public class CwReimbursementTypeService {
|
|
|
}
|
|
|
|
|
|
public List<CwReimbursementTypeInfo> list(CwReimbursementTypeInfo info) {
|
|
|
- LambdaQueryWrapper<CwReimbursementTypeInfo> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ QueryWrapper<CwReimbursementTypeInfo> wrapper = new QueryWrapper<>();
|
|
|
if (StringUtils.isNotEmpty(info.getName())) {
|
|
|
- wrapper.like(CwReimbursementTypeInfo::getName, info.getName());
|
|
|
+ wrapper.like("a.name", info.getName());
|
|
|
}
|
|
|
if (info.getSort() != null) {
|
|
|
- wrapper.like(CwReimbursementTypeInfo::getSort, info.getSort());
|
|
|
+ wrapper.like("a.sort", info.getSort());
|
|
|
}
|
|
|
// wrapper.eq(CwReimbursementTypeInfo::getBusinessType, "1");
|
|
|
|
|
|
- wrapper.eq(BaseEntity::getDelFlag, 0);
|
|
|
- wrapper.orderByAsc(CwReimbursementTypeInfo::getSort);
|
|
|
+ wrapper.eq("a.del_flag", 0);
|
|
|
+ wrapper.orderByAsc("a.sort");
|
|
|
return mapper.findList(wrapper);
|
|
|
}
|
|
|
|