更新清分数据对运营商ID的判断
This commit is contained in:
parent
f005f0f431
commit
2f6129a832
@ -106,12 +106,12 @@ public class XhpcClearingHistoryOrderController extends BaseController {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("tenantId", loginUser.getTenantId());
|
||||
if(StringUtils.isEmpty(operatorId)){
|
||||
operatorId = loginUser.getSysUser().getOperatorId().toString();
|
||||
operatorId = loginUser.getSysUser().getOperatorId() + "";
|
||||
}
|
||||
params.put("operatorId", operatorId);
|
||||
|
||||
if(params.get("operatorId") == null){
|
||||
throw new CustomException("缺少运营商ID");
|
||||
if(params.get("operatorId") == null || StringUtils.isEmpty(params.get("operatorId").toString()) || "null".equals(params.get("operatorId").toString())){
|
||||
throw new CustomException("运营商ID错误,请登陆运营商账户再试");
|
||||
}
|
||||
return getDataTable(orderService.getOrderPage(params));
|
||||
}
|
||||
@ -124,12 +124,12 @@ public class XhpcClearingHistoryOrderController extends BaseController {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("tenantId", loginUser.getTenantId());
|
||||
if(StringUtils.isEmpty(operatorId)){
|
||||
operatorId = loginUser.getSysUser().getOperatorId().toString();
|
||||
operatorId = loginUser.getSysUser().getOperatorId() + "";
|
||||
}
|
||||
params.put("operatorId", operatorId);
|
||||
|
||||
if(params.get("operatorId") == null){
|
||||
throw new CustomException("缺少运营商ID");
|
||||
if(params.get("operatorId") == null || StringUtils.isEmpty(params.get("operatorId").toString()) || "null".equals(params.get("operatorId").toString())){
|
||||
throw new CustomException("运营商ID错误,请登陆运营商账户再试");
|
||||
}
|
||||
|
||||
return R.ok(orderService.getOperatorData(params));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user