|
|
@ -9,6 +9,7 @@ import com.hai.common.exception.SysCode; |
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
import com.hai.entity.HighGasOrder; |
|
|
|
import com.hai.entity.HighGasOrder; |
|
|
|
|
|
|
|
import com.hai.enum_type.MerchantStoreSourceType; |
|
|
|
import com.hai.enum_type.UserObjectTypeEnum; |
|
|
|
import com.hai.enum_type.UserObjectTypeEnum; |
|
|
|
import com.hai.enum_type.UserRoleTypeEnum; |
|
|
|
import com.hai.enum_type.UserRoleTypeEnum; |
|
|
|
import com.hai.model.ResponseData; |
|
|
|
import com.hai.model.ResponseData; |
|
|
@ -91,6 +92,25 @@ public class OrderOilController { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.SEC_USER_EXPIRED, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.SEC_USER_EXPIRED, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
|
|
|
|
param.put("gasOrgId", gasOrgId); |
|
|
|
|
|
|
|
param.put("gasAgentId", gasAgentId); |
|
|
|
|
|
|
|
param.put("gasSalesmanId", gasAgentId); |
|
|
|
|
|
|
|
param.put("memCardType", memCardType); |
|
|
|
|
|
|
|
param.put("memCardNo", memCardNo); |
|
|
|
|
|
|
|
param.put("memPhone", memPhone); |
|
|
|
|
|
|
|
param.put("gasOilNo", gasOilNo); |
|
|
|
|
|
|
|
param.put("gasCarLicensePlate", gasCarLicensePlate); |
|
|
|
|
|
|
|
param.put("orderNo", orderNo); |
|
|
|
|
|
|
|
param.put("childOrderNo", childOrderNo); |
|
|
|
|
|
|
|
param.put("payType", payType); |
|
|
|
|
|
|
|
param.put("status", status); |
|
|
|
|
|
|
|
param.put("createTimeS", createTimeS); |
|
|
|
|
|
|
|
param.put("createTimeE", createTimeE); |
|
|
|
|
|
|
|
param.put("payTimeS", payTimeS); |
|
|
|
|
|
|
|
param.put("payTimeE", payTimeE); |
|
|
|
|
|
|
|
param.put("refundTimeS", refundTimeS); |
|
|
|
|
|
|
|
param.put("refundTimeE", refundTimeE); |
|
|
|
|
|
|
|
|
|
|
|
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) { |
|
|
|
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) { |
|
|
|
param.put("companyId", companyId); |
|
|
|
param.put("companyId", companyId); |
|
|
|
param.put("merId", merId); |
|
|
|
param.put("merId", merId); |
|
|
@ -101,6 +121,9 @@ public class OrderOilController { |
|
|
|
param.put("gasStaffName", gasStaffName); |
|
|
|
param.put("gasStaffName", gasStaffName); |
|
|
|
|
|
|
|
|
|
|
|
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) { |
|
|
|
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) { |
|
|
|
|
|
|
|
if (userInfoModel.getSecUser().getAdminFlag().equals(0)) { |
|
|
|
|
|
|
|
param.put("gasOrgId", userInfoModel.getBsOrganization().getId()); |
|
|
|
|
|
|
|
} |
|
|
|
param.put("companyId", userInfoModel.getBsCompany().getId()); |
|
|
|
param.put("companyId", userInfoModel.getBsCompany().getId()); |
|
|
|
param.put("merId", merId); |
|
|
|
param.put("merId", merId); |
|
|
|
param.put("storeId", storeId); |
|
|
|
param.put("storeId", storeId); |
|
|
@ -140,24 +163,6 @@ public class OrderOilController { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户身份"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户身份"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
param.put("gasOrgId", gasOrgId); |
|
|
|
|
|
|
|
param.put("gasAgentId", gasAgentId); |
|
|
|
|
|
|
|
param.put("gasSalesmanId", gasAgentId); |
|
|
|
|
|
|
|
param.put("memCardType", memCardType); |
|
|
|
|
|
|
|
param.put("memCardNo", memCardNo); |
|
|
|
|
|
|
|
param.put("memPhone", memPhone); |
|
|
|
|
|
|
|
param.put("gasOilNo", gasOilNo); |
|
|
|
|
|
|
|
param.put("gasCarLicensePlate", gasCarLicensePlate); |
|
|
|
|
|
|
|
param.put("orderNo", orderNo); |
|
|
|
|
|
|
|
param.put("childOrderNo", childOrderNo); |
|
|
|
|
|
|
|
param.put("payType", payType); |
|
|
|
|
|
|
|
param.put("status", status); |
|
|
|
|
|
|
|
param.put("createTimeS", createTimeS); |
|
|
|
|
|
|
|
param.put("createTimeE", createTimeE); |
|
|
|
|
|
|
|
param.put("payTimeS", payTimeS); |
|
|
|
|
|
|
|
param.put("payTimeE", payTimeE); |
|
|
|
|
|
|
|
param.put("refundTimeS", refundTimeS); |
|
|
|
|
|
|
|
param.put("refundTimeE", refundTimeE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(gasOrderService.getGasOrderList(param))); |
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(gasOrderService.getGasOrderList(param))); |
|
|
@ -210,13 +215,17 @@ public class OrderOilController { |
|
|
|
@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
@RequestParam(name = "childOrderNo", required = false) String childOrderNo, |
|
|
|
@RequestParam(name = "childOrderNo", required = false) String childOrderNo, |
|
|
|
@RequestParam(name = "memPhone", required = false) String memPhone, |
|
|
|
@RequestParam(name = "memPhone", required = false) String memPhone, |
|
|
|
|
|
|
|
@RequestParam(name = "memCardType", required = false) Integer memCardType, |
|
|
|
|
|
|
|
@RequestParam(name = "memCardNo", required = false) String memCardNo, |
|
|
|
@RequestParam(name = "gasOilType", required = false) Integer gasOilType, |
|
|
|
@RequestParam(name = "gasOilType", required = false) Integer gasOilType, |
|
|
|
|
|
|
|
@RequestParam(name = "payType", required = false) Integer payType, |
|
|
|
@RequestParam(name = "status", required = false) Integer status, |
|
|
|
@RequestParam(name = "status", required = false) Integer status, |
|
|
|
@RequestParam(name = "gasOrgId", required = false) Long gasOrgId, |
|
|
|
@RequestParam(name = "gasOrgId", required = false) Long gasOrgId, |
|
|
|
@RequestParam(name = "gasAgentId", required = false) Long gasAgentId, |
|
|
|
@RequestParam(name = "gasAgentId", required = false) Long gasAgentId, |
|
|
|
@RequestParam(name = "gasSalesmanId", required = false) Long gasSalesmanId, |
|
|
|
@RequestParam(name = "gasSalesmanId", required = false) Long gasSalesmanId, |
|
|
|
@RequestParam(name = "gasStaffName", required = false) String gasStaffName, |
|
|
|
@RequestParam(name = "gasStaffName", required = false) String gasStaffName, |
|
|
|
@RequestParam(name = "gasOilNo", required = false) String gasOilNo, |
|
|
|
@RequestParam(name = "gasOilNo", required = false) String gasOilNo, |
|
|
|
|
|
|
|
@RequestParam(name = "gasCarLicensePlate", required = false) String gasCarLicensePlate, |
|
|
|
@RequestParam(name = "createTimeS", required = false) Long createTimeS, |
|
|
|
@RequestParam(name = "createTimeS", required = false) Long createTimeS, |
|
|
|
@RequestParam(name = "createTimeE", required = false) Long createTimeE, |
|
|
|
@RequestParam(name = "createTimeE", required = false) Long createTimeE, |
|
|
|
@RequestParam(name = "payTimeS", required = false) Long payTimeS, |
|
|
|
@RequestParam(name = "payTimeS", required = false) Long payTimeS, |
|
|
@ -231,6 +240,25 @@ public class OrderOilController { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.SEC_USER_EXPIRED, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.SEC_USER_EXPIRED, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
|
|
|
|
param.put("gasOrgId", gasOrgId); |
|
|
|
|
|
|
|
param.put("gasAgentId", gasAgentId); |
|
|
|
|
|
|
|
param.put("gasSalesmanId", gasAgentId); |
|
|
|
|
|
|
|
param.put("memCardType", memCardType); |
|
|
|
|
|
|
|
param.put("memCardNo", memCardNo); |
|
|
|
|
|
|
|
param.put("memPhone", memPhone); |
|
|
|
|
|
|
|
param.put("gasOilNo", gasOilNo); |
|
|
|
|
|
|
|
param.put("gasCarLicensePlate", gasCarLicensePlate); |
|
|
|
|
|
|
|
param.put("orderNo", orderNo); |
|
|
|
|
|
|
|
param.put("childOrderNo", childOrderNo); |
|
|
|
|
|
|
|
param.put("payType", payType); |
|
|
|
|
|
|
|
param.put("status", status); |
|
|
|
|
|
|
|
param.put("createTimeS", createTimeS); |
|
|
|
|
|
|
|
param.put("createTimeE", createTimeE); |
|
|
|
|
|
|
|
param.put("payTimeS", payTimeS); |
|
|
|
|
|
|
|
param.put("payTimeE", payTimeE); |
|
|
|
|
|
|
|
param.put("refundTimeS", refundTimeS); |
|
|
|
|
|
|
|
param.put("refundTimeE", refundTimeE); |
|
|
|
|
|
|
|
|
|
|
|
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) { |
|
|
|
if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type0.getType())) { |
|
|
|
param.put("companyId", companyId); |
|
|
|
param.put("companyId", companyId); |
|
|
|
param.put("merId", merId); |
|
|
|
param.put("merId", merId); |
|
|
@ -241,6 +269,9 @@ public class OrderOilController { |
|
|
|
param.put("gasStaffName", gasStaffName); |
|
|
|
param.put("gasStaffName", gasStaffName); |
|
|
|
|
|
|
|
|
|
|
|
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) { |
|
|
|
} else if (userInfoModel.getSecUser().getObjectType().equals(UserObjectTypeEnum.type1.getType())) { |
|
|
|
|
|
|
|
if (userInfoModel.getSecUser().getAdminFlag().equals(0)) { |
|
|
|
|
|
|
|
param.put("gasOrgId", userInfoModel.getBsOrganization().getId()); |
|
|
|
|
|
|
|
} |
|
|
|
param.put("companyId", userInfoModel.getBsCompany().getId()); |
|
|
|
param.put("companyId", userInfoModel.getBsCompany().getId()); |
|
|
|
param.put("merId", merId); |
|
|
|
param.put("merId", merId); |
|
|
|
param.put("storeId", storeId); |
|
|
|
param.put("storeId", storeId); |
|
|
@ -280,21 +311,6 @@ public class OrderOilController { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户身份"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知用户身份"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
param.put("gasOrgId", gasOrgId); |
|
|
|
|
|
|
|
param.put("gasAgentId", gasAgentId); |
|
|
|
|
|
|
|
param.put("gasSalesmanId", gasAgentId); |
|
|
|
|
|
|
|
param.put("memPhone", memPhone); |
|
|
|
|
|
|
|
param.put("gasOilNo", gasOilNo); |
|
|
|
|
|
|
|
param.put("orderNo", orderNo); |
|
|
|
|
|
|
|
param.put("childOrderNo", childOrderNo); |
|
|
|
|
|
|
|
param.put("status", status); |
|
|
|
|
|
|
|
param.put("createTimeS", createTimeS); |
|
|
|
|
|
|
|
param.put("createTimeE", createTimeE); |
|
|
|
|
|
|
|
param.put("payTimeS", payTimeS); |
|
|
|
|
|
|
|
param.put("payTimeE", payTimeE); |
|
|
|
|
|
|
|
param.put("refundTimeS", refundTimeS); |
|
|
|
|
|
|
|
param.put("refundTimeE", refundTimeE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询数据
|
|
|
|
// 查询数据
|
|
|
|
List<HighGasOrder> orderList = gasOrderService.getGasOrderList(param); |
|
|
|
List<HighGasOrder> orderList = gasOrderService.getGasOrderList(param); |
|
|
|
|
|
|
|
|
|
|
@ -306,6 +322,7 @@ public class OrderOilController { |
|
|
|
model.setOrderNo(gasOrder.getOrderNo()); |
|
|
|
model.setOrderNo(gasOrder.getOrderNo()); |
|
|
|
model.setStoreName(gasOrder.getStoreName()); |
|
|
|
model.setStoreName(gasOrder.getStoreName()); |
|
|
|
model.setGasStaffName(gasOrder.getGasStaffName()); |
|
|
|
model.setGasStaffName(gasOrder.getGasStaffName()); |
|
|
|
|
|
|
|
model.setGasCarLicensePlate(gasOrder.getGasCarLicensePlate()); |
|
|
|
model.setMemPhone(gasOrder.getMemPhone()); |
|
|
|
model.setMemPhone(gasOrder.getMemPhone()); |
|
|
|
model.setGasRefuelPrice(gasOrder.getGasRefuelPrice()); |
|
|
|
model.setGasRefuelPrice(gasOrder.getGasRefuelPrice()); |
|
|
|
model.setGasOilLiters(gasOrder.getGasOilLiters()); |
|
|
|
model.setGasOilLiters(gasOrder.getGasOilLiters()); |
|
|
@ -333,6 +350,7 @@ public class OrderOilController { |
|
|
|
model.setGasSalesmanName(gasOrder.getGasSalesmanName()); |
|
|
|
model.setGasSalesmanName(gasOrder.getGasSalesmanName()); |
|
|
|
model.setGasAgentName(gasOrder.getGasAgentName()); |
|
|
|
model.setGasAgentName(gasOrder.getGasAgentName()); |
|
|
|
model.setGasOrgName(gasOrder.getGasOrgName()); |
|
|
|
model.setGasOrgName(gasOrder.getGasOrgName()); |
|
|
|
|
|
|
|
model.setChannelTypeName(MerchantStoreSourceType.getNameByType(gasOrder.getChannelType())); |
|
|
|
dataList.add(model); |
|
|
|
dataList.add(model); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -346,6 +364,7 @@ public class OrderOilController { |
|
|
|
Set<String> includeColumnFiledNames = new HashSet<String>(); |
|
|
|
Set<String> includeColumnFiledNames = new HashSet<String>(); |
|
|
|
includeColumnFiledNames.add("orderNo"); |
|
|
|
includeColumnFiledNames.add("orderNo"); |
|
|
|
includeColumnFiledNames.add("memPhone"); |
|
|
|
includeColumnFiledNames.add("memPhone"); |
|
|
|
|
|
|
|
includeColumnFiledNames.add("gasCarLicensePlate"); |
|
|
|
includeColumnFiledNames.add("gasRefuelPrice"); |
|
|
|
includeColumnFiledNames.add("gasRefuelPrice"); |
|
|
|
includeColumnFiledNames.add("gasOilLiters"); |
|
|
|
includeColumnFiledNames.add("gasOilLiters"); |
|
|
|
includeColumnFiledNames.add("gasDiscount"); |
|
|
|
includeColumnFiledNames.add("gasDiscount"); |
|
|
@ -367,6 +386,7 @@ public class OrderOilController { |
|
|
|
includeColumnFiledNames.add("payTime"); |
|
|
|
includeColumnFiledNames.add("payTime"); |
|
|
|
includeColumnFiledNames.add("refundTime"); |
|
|
|
includeColumnFiledNames.add("refundTime"); |
|
|
|
includeColumnFiledNames.add("cancelTime"); |
|
|
|
includeColumnFiledNames.add("cancelTime"); |
|
|
|
|
|
|
|
includeColumnFiledNames.add("channelTypeName"); |
|
|
|
|
|
|
|
|
|
|
|
if (!userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type3.getType()) |
|
|
|
if (!userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type3.getType()) |
|
|
|
&& !userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type10.getType())) { |
|
|
|
&& !userInfoModel.getSecRole().getRoleType().equals(UserRoleTypeEnum.type10.getType())) { |
|
|
|