mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
update
This commit is contained in:
@@ -77,8 +77,20 @@ public class OrderBasicInfoController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('order:order:list')")
|
||||
@GetMapping("/order/totalData")
|
||||
public AjaxResult getOrderTotalData(QueryOrderDTO orderBasicInfo) {
|
||||
return AjaxResult.success(orderBasicInfoService.getOrderTotalData(orderBasicInfo));
|
||||
public AjaxResult getOrderTotalData(QueryOrderDTO dto) {
|
||||
// 权限过滤
|
||||
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