mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +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.pile.domain.PileMerchantInfo;
|
||||
import com.jsowell.pile.dto.CreateMerchantDTO;
|
||||
import com.jsowell.pile.dto.PageDTO;
|
||||
import com.jsowell.pile.service.IPileMerchantInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
@@ -122,10 +123,10 @@ public class PileMerchantInfoController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:merchant:query')")
|
||||
@GetMapping("/getFinancialMerchantList")
|
||||
public TableDataInfo getFinancialMerchantList(PageResponse pageResponse) {
|
||||
int pageNum = pageResponse.getPageNum() == 0 ? 1 : pageResponse.getPageNum();
|
||||
int pageSize = pageResponse.getPageSize() == 0 ? 10 : pageResponse.getPageSize();
|
||||
@PostMapping("/getFinancialMerchantList")
|
||||
public TableDataInfo getFinancialMerchantList(@RequestBody PageDTO dto) {
|
||||
int pageNum = dto.getPageNum() == 0 ? 1 : dto.getPageNum();
|
||||
int pageSize = dto.getPageSize() == 0 ? 10 : dto.getPageSize();
|
||||
// 权限过滤
|
||||
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
|
||||
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({
|
||||
url: '/pile/merchant/getFinancialMerchantList',
|
||||
method: 'get',
|
||||
params: param
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -244,7 +244,8 @@ export default {
|
||||
// 获取运营商列表
|
||||
getFinancialMerchantList() {
|
||||
const params = {
|
||||
|
||||
pageNum:1,
|
||||
pageSize:2
|
||||
}
|
||||
getFinancialMerchantList(params).then((response) => {
|
||||
console.log("response", response)
|
||||
|
||||
Reference in New Issue
Block a user