Merge branch 'master' into dev

dev-discount
胡锐 2 years ago
commit b2e934536d
  1. 44
      hai-bweb/src/main/java/com/bweb/controller/HighOpenApiController.java
  2. 20
      hai-bweb/src/main/java/com/bweb/controller/OutRechargeOrderController.java
  3. 5
      hai-cweb/src/main/java/com/cweb/controller/OutRechargeOrderController.java
  4. 2
      hai-service/src/main/java/com/hai/dao/OutRechargeOrderMapperExt.java
  5. 4
      hai-service/src/main/resources/dev/commonConfig.properties

@ -95,18 +95,18 @@ public class HighOpenApiController {
public ResponseData getGuizhouSinopecList(HttpServletRequest request) { public ResponseData getGuizhouSinopecList(HttpServletRequest request) {
try { try {
// String ip = ""; String ip = "";
// // 有的user可能使用代理,为处理用户使用代理的情况,使用x-forwarded-for // 有的user可能使用代理,为处理用户使用代理的情况,使用x-forwarded-for
// if (request.getHeader("x-forwarded-for") == null) { if (request.getHeader("x-forwarded-for") == null) {
// ip = request.getRemoteAddr(); ip = request.getRemoteAddr();
// } else { } else {
// ip = request.getHeader("x-forwarded-for"); ip = request.getHeader("x-forwarded-for");
// } }
//
// if (!secConfigService.isConfig("IP_WHITE" , ip)) { if (!secConfigService.isConfig("IP_WHITE" , ip)) {
// log.error("getGuizhouSinopec error!", "非法ip地址,请联系管理人员!"); log.error("getGuizhouSinopec error!", "非法ip地址,请联系管理人员!");
// throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "非法ip地址,请联系管理人员!"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "非法ip地址,请联系管理人员!");
// } }
// 获取token // 获取token
String token = huiLianTongConfig.getToken(); String token = huiLianTongConfig.getToken();
@ -140,16 +140,16 @@ public class HighOpenApiController {
ip = request.getHeader("x-forwarded-for"); ip = request.getHeader("x-forwarded-for");
} }
// if (!secConfigService.isConfig("IP_WHITE" , ip)) { if (!secConfigService.isConfig("IP_WHITE" , ip)) {
// log.error("getGuizhouSinopec error!", "非法ip地址,请联系管理人员!"); log.error("getGuizhouSinopec error!", "非法ip地址,请联系管理人员!");
// throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "非法ip地址,请联系管理人员!"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "非法ip地址,请联系管理人员!");
// } }
// 获取token // 获取token
String token = huiLianTongConfig.getToken(); String token = huiLianTongConfig.getToken();
// 查询电子卡券类型 // 查询电子卡券类型
JSONObject data = HuiLianTongConfig.getCouState(token, object.getString("orderNo")); JSONObject data = HuiLianTongConfig.getCouState(token, object.getString("couNo"));
if (!data.getString("result").equals("success")) { if (!data.getString("result").equals("success")) {
log.error("HighOpenApiController -> insertCoupon() error!","查询电子券状态失败"); log.error("HighOpenApiController -> insertCoupon() error!","查询电子券状态失败");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "查询电子券状态失败"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "查询电子券状态失败");
@ -175,11 +175,11 @@ public class HighOpenApiController {
} else { } else {
ip = request.getHeader("x-forwarded-for"); ip = request.getHeader("x-forwarded-for");
} }
//
// if (!secConfigService.isConfig("IP_WHITE" , ip)) { if (!secConfigService.isConfig("IP_WHITE" , ip)) {
// log.error("couJointDist error!", "非法ip地址,请联系管理人员!"); log.error("couJointDist error!", "非法ip地址,请联系管理人员!");
// throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "非法ip地址,请联系管理人员!"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "非法ip地址,请联系管理人员!");
// } }
// 获取token // 获取token
String token = huiLianTongConfig.getToken(); String token = huiLianTongConfig.getToken();

@ -51,6 +51,7 @@ import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.function.IntFunction;
@Controller @Controller
@RequestMapping(value = "/outRechargeOrder") @RequestMapping(value = "/outRechargeOrder")
@ -134,6 +135,7 @@ public class OutRechargeOrderController {
@RequestParam(name = "payStatus", required = false) Integer payStatus, @RequestParam(name = "payStatus", required = false) Integer payStatus,
@RequestParam(name = "rechargeStatus", required = false) String rechargeStatus, @RequestParam(name = "rechargeStatus", required = false) String rechargeStatus,
@RequestParam(name = "orderNo", required = false) String orderNo, @RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "companyId", required = false) Long companyId,
@RequestParam(name = "operatorType", required = false) String operatorType, @RequestParam(name = "operatorType", required = false) String operatorType,
@RequestParam(name = "laborUnionCard", required = false) String laborUnionCard, @RequestParam(name = "laborUnionCard", required = false) String laborUnionCard,
@RequestParam(name = "rechargeContent", required = false) String rechargeContent, @RequestParam(name = "rechargeContent", required = false) String rechargeContent,
@ -154,7 +156,16 @@ public class OutRechargeOrderController {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("companyId", userInfoModel.getBsCompany().getId()); if (companyId != null) {
map.put("companyId", companyId);
} else if (userInfoModel.getSecRole().getRoleType() != 1){
if (userInfoModel.getSecRole().getRoleType() == 7) {
map.put("companyId", 23);
} else {
map.put("companyId", userInfoModel.getBsCompany().getId());
}
}
map.put("rechargeStatus", rechargeStatus); map.put("rechargeStatus", rechargeStatus);
map.put("payStatus", payStatus); map.put("payStatus", payStatus);
map.put("orderNo", orderNo); map.put("orderNo", orderNo);
@ -189,6 +200,7 @@ public class OutRechargeOrderController {
public ResponseData exportOrderList( public ResponseData exportOrderList(
@RequestParam(name = "payStatus", required = false) Integer payStatus, @RequestParam(name = "payStatus", required = false) Integer payStatus,
@RequestParam(name = "rechargeStatus", required = false) String rechargeStatus, @RequestParam(name = "rechargeStatus", required = false) String rechargeStatus,
@RequestParam(name = "companyId", required = false) Long companyId,
@RequestParam(name = "orderNo", required = false) String orderNo, @RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "operatorType", required = false) String operatorType, @RequestParam(name = "operatorType", required = false) String operatorType,
@RequestParam(name = "laborUnionCard", required = false) String laborUnionCard, @RequestParam(name = "laborUnionCard", required = false) String laborUnionCard,
@ -209,7 +221,11 @@ public class OutRechargeOrderController {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("companyId", userInfoModel.getBsCompany().getId()); if (companyId != null) {
map.put("companyId", companyId);
} else if (userInfoModel.getSecRole().getRoleType() != 1){
map.put("companyId", userInfoModel.getBsCompany().getId());
}
map.put("rechargeStatus", rechargeStatus); map.put("rechargeStatus", rechargeStatus);
map.put("payStatus", payStatus); map.put("payStatus", payStatus);
map.put("orderNo", orderNo); map.put("orderNo", orderNo);

@ -133,7 +133,10 @@ public class OutRechargeOrderController {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("userId", userInfoModel.getHighUser().getId().toString()); map.put("userId", userInfoModel.getHighUser().getId().toString());
map.put("payStatus", status.toString()); if (status != null) {
map.put("payStatus", status.toString());
}
map.put("orderNo", orderNo); map.put("orderNo", orderNo);
PageHelper.startPage(pageNum, pageSize); PageHelper.startPage(pageNum, pageSize);

@ -134,7 +134,7 @@ public interface OutRechargeOrderMapperExt {
@Select(value = { @Select(value = {
"<script>", "<script>",
"select sum(order_price) orderPrice, sum(pay_real_price) payRealPrice , count(*) count ", "select sum(order_price) orderPrice, sum(pay_real_price) payRealPrice , count(*) count ",
"from out_recharge_order where pay_status in (2,3) and Identification_code = #{code}", "from out_recharge_order where pay_status in (102,100) and company_id = 23",
"</script>" "</script>"
}) })
@Results({ @Results({

@ -35,8 +35,8 @@ unionPayChannelid=D01X00000801226
unionPayMerid=83169055983W000 unionPayMerid=83169055983W000
unionPayTermid=XS000103 unionPayTermid=XS000103
unionPaySignKey=1dfk0i0fl7ild07l2k5oj8dddikkivd0 unionPaySignKey=1dfk0i0fl7ild07l2k5oj8dddikkivd0
unionPayNotifyUrl=https://hsg.dctpay.com/crest/unionPay/notify unionPayNotifyUrl=https://hsgcs.dctpay.com/crest/unionPay/notify
unionPayTelNotifyUrl=https://hsg.dctpay.com/crest/unionPay/notifyTel unionPayTelNotifyUrl=https://hsgcs.dctpay.com/crest/unionPay/notifyTel
unionStagingPayUrl=https://mtest.eycard.cn/ unionStagingPayUrl=https://mtest.eycard.cn/
unionStagingPayOrgId=ORG000000000001 unionStagingPayOrgId=ORG000000000001

Loading…
Cancel
Save