|
@@ -13,6 +13,7 @@ import com.ym.mec.biz.service.*;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
|
import com.ym.mec.common.page.PageUtil;
|
|
|
import com.ym.mec.common.page.WrapperUtil;
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import com.ym.mec.thirdparty.adapay.Payment;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -55,6 +56,10 @@ public class TenantOrderRecordServiceImpl extends ServiceImpl<TenantOrderRecordD
|
|
|
|
|
|
@Override
|
|
|
public PageInfo<TenantOrderRecord> queryPage(TenantOrderRecordDto dto) {
|
|
|
+ Integer tenantId = TenantContextHolder.getTenantId();
|
|
|
+ if (dto.getTenantId() == null) {
|
|
|
+ dto.setTenantId(tenantId.toString());
|
|
|
+ }
|
|
|
Page<TenantOrderRecord> pageInfo = PageUtil.getPage(dto.getPage(), dto.getRows());
|
|
|
pageInfo.setDesc("a.created_time_ ");
|
|
|
WrapperUtil.toListOptional(dto.getTenantId())
|