forked from kidgrow-microservices-platform

zhaoxiaohao
2020-09-28 3256d326f6f9f92fca30cdaf3252a11bf49b66ad
kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/java/com/kidgrow/oprationcenter/service/impl/SaasClientPayServiceImpl.java
@@ -161,7 +161,11 @@
            List<String> list=new ArrayList<>();
            list.add(str);
            list.add(aliCode);
            return ResultBody.ok().data(list);
            Map<String,Object> map=new HashMap<>();
            map.put("list",list);
            double v = Double.parseDouble(modelByObject.getPayPrice().toString())/100;
            map.put("payPrice",v);
            return ResultBody.ok().data(map);
        }
        saasClientPay.setId(UUID.randomUUID().toString().replace("-",""));
        saasClientPay.setOutTradeNo(UUID.randomUUID().toString().replace("-",""));
@@ -174,10 +178,11 @@
        if(byObject==null){
            return ResultBody.failed().msg("该部门或医院没有开通单次支付");
        }
        saasClientPay.setPayPrice(byObject.getPayPrice());
        saasClientPay.setPayPrice(Double.valueOf(byObject.getPayPrice()).intValue());
//        saasClientPay.setPayPrice(1);
        saasClientPay.setPayKidgrow(byObject.getPayKidgrow());
        saasClientPay.setPayCustom(byObject.getPayCustom());
        saasClientPay.setPayKidgrow(Double.valueOf(byObject.getPayKidgrow()).intValue());
        saasClientPay.setPayCustom(Double.valueOf(byObject.getPayCustom()).intValue());
        saasClientPay.setPayStatus(0);
        String str="";
        Map<String, String> wxCode = this.getWxCode(saasClientPay, request);
@@ -192,7 +197,8 @@
        list.add(aliCode);
        Map<String,Object> map=new HashMap<>();
        map.put("list",list);
        map.put("payPrice",byObject.getPayPrice());
        double v = byObject.getPayPrice() / 100;
        map.put("payPrice",v);
        return ResultBody.ok().data(map);
    }
    /**