|
|
@@ -8,6 +8,7 @@ import com.ym.mec.biz.dal.dto.TenantPreJoinDto;
|
|
|
import com.ym.mec.biz.dal.entity.SysArea;
|
|
|
import com.ym.mec.biz.dal.entity.SysUserTsign;
|
|
|
import com.ym.mec.biz.dal.entity.TenantPreJoin;
|
|
|
+import com.ym.mec.biz.dal.vo.TenantPreJoinVo;
|
|
|
import com.ym.mec.biz.service.SysUserTsignService;
|
|
|
import com.ym.mec.biz.service.TenantPreJoinService;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
@@ -50,23 +51,10 @@ public class TenantPreJoinServiceImpl extends ServiceImpl<TenantPreJoinDao, Tena
|
|
|
* @param param 条件
|
|
|
*/
|
|
|
@Override
|
|
|
- public PageInfo<TenantPreJoin> queryPage(Map<String, Object> param) {
|
|
|
- Page<TenantPreJoin> pageInfo = PageUtil.getPageInfo(param);
|
|
|
- //模糊搜索的字段
|
|
|
- Object search = param.get("search");
|
|
|
- //分页查询
|
|
|
- IPage<TenantPreJoin> page = this.page(pageInfo,
|
|
|
- new WrapperUtil<TenantPreJoin>()
|
|
|
- .hasEq("state_", param.get("state"))
|
|
|
- .hasGe("created_time_", param.get("startTime"))
|
|
|
- .hasLe("created_time_", param.get("endTime"))
|
|
|
- .queryWrapper()
|
|
|
- .and(Objects.nonNull(search),
|
|
|
- o -> o.eq("tsign_name_", search)
|
|
|
- .or().eq("enterprise_liable_name_", search)
|
|
|
- .or().eq("contacts_", search)
|
|
|
- ));
|
|
|
- return PageUtil.pageInfo(page);
|
|
|
+ public PageInfo<TenantPreJoinVo> queryPage(Map<String, Object> param) {
|
|
|
+ Page<TenantPreJoinVo> pageInfo = PageUtil.getPageInfo(param);
|
|
|
+ pageInfo.setDesc("a.created_time_");
|
|
|
+ return PageUtil.pageInfo(baseMapper.queryPage(pageInfo, param));
|
|
|
}
|
|
|
|
|
|
@Override
|