|
@@ -15,6 +15,7 @@ import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
import com.github.zuihou.base.controller.SuperController;
|
|
|
import com.github.zuihou.base.R;
|
|
|
+import com.github.zuihou.common.util.StringUtil;
|
|
|
import com.github.zuihou.database.mybatis.conditions.query.LbqWrapper;
|
|
|
import com.github.zuihou.database.mybatis.conditions.query.QueryWrap;
|
|
|
import com.github.zuihou.log.annotation.SysLog;
|
|
@@ -23,6 +24,7 @@ import com.github.zuihou.security.model.SysUser;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import com.github.zuihou.security.annotation.PreAuth;
|
|
@@ -54,10 +56,10 @@ public class ScheduleUserChangeController extends SuperController<ScheduleUserCh
|
|
|
ScheduleUserChange bean = BeanUtil.toBean(data, ScheduleUserChange.class);
|
|
|
//Wraps.lbQ(station); 这种写法值 不能和 ${ew.customSqlSegment} 一起使用
|
|
|
// ${ew.customSqlSegment} 语法一定要手动eq like 等
|
|
|
- wrapper.like(ScheduleUserChange::getApplyDesc, bean.getApplyDesc())
|
|
|
- .eq(ScheduleUserChange::getApplyTime, bean.getApplyTime())
|
|
|
- .eq(ScheduleUserChange::getAuditStatus, bean.getAuditStatus())
|
|
|
- .orderByDesc(ScheduleUserChange::getCreateTime);
|
|
|
+ wrap.like(StringUtils.isNotBlank(bean.getApplyDesc()) ,"applyDesc", bean.getApplyDesc())
|
|
|
+// .eq(ScheduleUserChange::getApplyTime, bean.getApplyTime())
|
|
|
+ .eq(StringUtils.isNotBlank(bean.getAuditStatus()),"audit_status", bean.getAuditStatus())
|
|
|
+ .orderByDesc("create_time");
|
|
|
IPage<ScheduleUserChange> list = baseService.pageList(page, wrapper);
|
|
|
System.out.println(list);
|
|
|
|