mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 11:49:49 +08:00
update
This commit is contained in:
@@ -77,8 +77,20 @@ public class OrderBasicInfoController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('order:order:list')")
|
@PreAuthorize("@ss.hasPermi('order:order:list')")
|
||||||
@GetMapping("/order/totalData")
|
@GetMapping("/order/totalData")
|
||||||
public AjaxResult getOrderTotalData(QueryOrderDTO orderBasicInfo) {
|
public AjaxResult getOrderTotalData(QueryOrderDTO dto) {
|
||||||
return AjaxResult.success(orderBasicInfoService.getOrderTotalData(orderBasicInfo));
|
// 权限过滤
|
||||||
|
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
|
||||||
|
if (authorizedMap == null) {
|
||||||
|
// 为空表示没有权限,返回空数组
|
||||||
|
return new AjaxResult();
|
||||||
|
}
|
||||||
|
String deptId = authorizedMap.getDeptId();
|
||||||
|
// 根据部门id查询merchantId
|
||||||
|
PileMerchantInfo pileMerchantInfo = pileMerchantInfoService.queryInfoByDeptId(deptId);
|
||||||
|
if (pileMerchantInfo != null) {
|
||||||
|
dto.setMerchantId(String.valueOf(pileMerchantInfo.getId()));
|
||||||
|
}
|
||||||
|
return AjaxResult.success(orderBasicInfoService.getOrderTotalData(dto));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user