From 8e4f20c7f78eadb1ff8af86c47dfde07aee38200 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 30 一月 2024 09:26:15 +0800 Subject: [PATCH] 11.27,9 --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/OperatorController.java | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/OperatorController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/OperatorController.java index 8b19bdb..aee838a 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/OperatorController.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/OperatorController.java @@ -398,6 +398,12 @@ operatorAuth.setShopProvince(shopProvince); operatorAuth.setShopProvinceCode(shopProvinceCode); operatorAuth.setShopCityCode(shopCityCode); + if(StringUtils.hasLength(province)&& province.equals("请选择省")){ + operatorAuth.setProvince(null); + } + if(StringUtils.hasLength(city)&& province.equals("请选择市")){ + operatorAuth.setCity(null); + } operatorAuth.setProvince(province); operatorAuth.setProvinceCode(provinceCode); operatorAuth.setShopDistrict(shopDistrict); @@ -443,7 +449,6 @@ " \"mobile\":\""+phone+"\"," + " }" + " ],"; - // todo 拼接 String biz_cards=" \"biz_cards\":[" + " {" + @@ -493,6 +498,9 @@ if (accountType.equals("bankCard")){ request.setBizContent(param + biz_cards+res); + }else{ + request.setBizContent(param + +res); } AntMerchantExpandIndirectZftCreateResponse response = null; try { @@ -507,6 +515,7 @@ String order_no = json1.getString("order_id"); System.err.println("订单号"+order_no); operatorAuth.setOrderNo(order_no); + operatorAuth.setRefuseReason(""); operatorAuthService.saveOrUpdate(operatorAuth); Integer userId = operatorService.getById(operatorId).getUserId(); OperatorUser user = operatorUserService.getOne(new QueryWrapper<OperatorUser>().eq("userId", userId)); @@ -517,6 +526,7 @@ }else{ user.setAlipayType(1); } + operatorUserService.saveOrUpdate(user); } else { if (response.getCode().equals("40004")){ String subMsg = response.getSubMsg(); @@ -575,15 +585,10 @@ */ @RequestMapping(value = "/proportion") @ResponseBody - public Object auth(Integer operatorIdOne ,String alipayProportion,String alipayNum,String wechatProportion, - String wechatNum) { - Integer id1 = operatorService.getOne(new QueryWrapper<TOperator>().eq("id", operatorIdOne)) - .getUserId(); - OperatorUser id = operatorUserService.getOne(new QueryWrapper<OperatorUser>().eq("userId", id1)); + public Object auth(Integer operatorIdOne ,String alipayProportion,String wechatProportion) { + OperatorUser id = operatorUserService.getOne(new QueryWrapper<OperatorUser>().eq("operatorId", operatorIdOne)); id.setAlipayProportion(alipayProportion); id.setWechatProportion(wechatProportion); - id.setAlipayNum(alipayNum); - id.setWechatNum(wechatNum); operatorUserService.updateById(id); return SUCCESS_TIP; } -- Gitblit v1.7.1