mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-07 11:29:58 +08:00
update
This commit is contained in:
@@ -15,6 +15,7 @@ import com.jsowell.common.util.StringUtils;
|
|||||||
import com.jsowell.common.util.poi.ExcelUtil;
|
import com.jsowell.common.util.poi.ExcelUtil;
|
||||||
import com.jsowell.pile.domain.PileMerchantInfo;
|
import com.jsowell.pile.domain.PileMerchantInfo;
|
||||||
import com.jsowell.pile.dto.CreateMerchantDTO;
|
import com.jsowell.pile.dto.CreateMerchantDTO;
|
||||||
|
import com.jsowell.pile.dto.PageDTO;
|
||||||
import com.jsowell.pile.service.IPileMerchantInfoService;
|
import com.jsowell.pile.service.IPileMerchantInfoService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
@@ -122,10 +123,10 @@ public class PileMerchantInfoController extends BaseController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('pile:merchant:query')")
|
@PreAuthorize("@ss.hasPermi('pile:merchant:query')")
|
||||||
@GetMapping("/getFinancialMerchantList")
|
@PostMapping("/getFinancialMerchantList")
|
||||||
public TableDataInfo getFinancialMerchantList(PageResponse pageResponse) {
|
public TableDataInfo getFinancialMerchantList(@RequestBody PageDTO dto) {
|
||||||
int pageNum = pageResponse.getPageNum() == 0 ? 1 : pageResponse.getPageNum();
|
int pageNum = dto.getPageNum() == 0 ? 1 : dto.getPageNum();
|
||||||
int pageSize = pageResponse.getPageSize() == 0 ? 10 : pageResponse.getPageSize();
|
int pageSize = dto.getPageSize() == 0 ? 10 : dto.getPageSize();
|
||||||
// 权限过滤
|
// 权限过滤
|
||||||
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
|
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
|
||||||
if (authorizedMap == null) {
|
if (authorizedMap == null) {
|
||||||
|
|||||||
16
jsowell-pile/src/main/java/com/jsowell/pile/dto/PageDTO.java
Normal file
16
jsowell-pile/src/main/java/com/jsowell/pile/dto/PageDTO.java
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package com.jsowell.pile.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*
|
||||||
|
* @author Lemon
|
||||||
|
* @Date 2023/7/7 13:27
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class PageDTO {
|
||||||
|
private Integer pageSize;
|
||||||
|
private Integer pageNum;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -53,10 +53,10 @@ export function getMerchantList(query) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 财务管理页面获取运营商列表
|
// 财务管理页面获取运营商列表
|
||||||
export function getFinancialMerchantList(param) {
|
export function getFinancialMerchantList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/pile/merchant/getFinancialMerchantList',
|
url: '/pile/merchant/getFinancialMerchantList',
|
||||||
method: 'get',
|
method: 'post',
|
||||||
params: param
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -244,7 +244,8 @@ export default {
|
|||||||
// 获取运营商列表
|
// 获取运营商列表
|
||||||
getFinancialMerchantList() {
|
getFinancialMerchantList() {
|
||||||
const params = {
|
const params = {
|
||||||
|
pageNum:1,
|
||||||
|
pageSize:2
|
||||||
}
|
}
|
||||||
getFinancialMerchantList(params).then((response) => {
|
getFinancialMerchantList(params).then((response) => {
|
||||||
console.log("response", response)
|
console.log("response", response)
|
||||||
|
|||||||
Reference in New Issue
Block a user