| | |
| | | } |
| | | private String smid = "2088330203191220";//平台支付宝商户号 |
| | | |
| | | public static void main(String[] args) { |
| | | BigDecimal bigDecimal = new BigDecimal("100"); |
| | | |
| | | |
| | | String s = "1"; |
| | | double v = Double.parseDouble(s); |
| | | double v1 = v * 0.01; |
| | | |
| | | BigDecimal bigDecimal1 = new BigDecimal(String.valueOf(v1)); |
| | | BigDecimal multiply = bigDecimal1.multiply(bigDecimal); |
| | | System.err.println(v); |
| | | System.err.println(v1); |
| | | System.err.println(multiply); |
| | | } |
| | | // public static void main(String[] args) { |
| | | // BigDecimal bigDecimal = new BigDecimal("100"); |
| | | // |
| | | // |
| | | // String s = "1"; |
| | | // double v = Double.parseDouble(s); |
| | | // double v1 = v * 0.01; |
| | | // |
| | | // BigDecimal bigDecimal1 = new BigDecimal(String.valueOf(v1)); |
| | | // BigDecimal multiply = bigDecimal1.multiply(bigDecimal); |
| | | // System.err.println(v); |
| | | // System.err.println(v1); |
| | | // System.err.println(multiply); |
| | | // } |
| | | public ResultUtil AlipayPayment(String code, BigDecimal request) { |
| | | // 二级商户商户号 |
| | | String smidUser; |
| | |
| | | @Autowired |
| | | private TCoursePackageService packageService; |
| | | |
| | | |
| | | @Autowired |
| | | private TCoursePackagePaymentService packagePaymentService; |
| | | @Autowired |
| | | private CoursePackageStudentService coursePackageStudentService; |
| | | |