| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | | import java.time.ZoneId; |
| | |
| | | String seq_date = simpleDateFormat.format(new Date()); |
| | | try { |
| | | // AllocationResp allocationResp = AllocationExample.create(allocationReq); |
| | | Map<String, Object> fenzhang = FenZhangUtil.fenzhang(req_seq_id, seq_date, String.valueOf(sum), enterpriseWithdrawal2.getHuifuId()); |
| | | BigDecimal sum1 = new BigDecimal(sum).setScale(2, RoundingMode.HALF_UP); |
| | | |
| | | |
| | | Map<String, Object> fenzhang = FenZhangUtil.fenzhang(req_seq_id, seq_date, String.valueOf(sum1), enterpriseWithdrawal2.getHuifuId()); |
| | | String resp_code = fenzhang.get("resp_code").toString(); |
| | | if(!"00000000".equals(resp_code)){ |
| | | continue; |
| | |
| | | // allocationReq.setOrderAmount(1l); |
| | | // allocationReq.setPassword(code); |
| | | try { |
| | | Map<String, Object> fenzhang = FenZhangUtil.fenzhang(req_seq_id, seq_date, String.valueOf(sum), userWithdrawal.getHuiFuId()); |
| | | Map<String, Object> fenzhang = FenZhangUtil.fenzhang(req_seq_id, seq_date, String.valueOf(sum), userWithdrawal.getHuifuId()); |
| | | // AllocationResp allocationResp = AllocationExample.create(allocationReq); |
| | | System.out.println(tDriver.getId() + "::" + tDriver.getName() + "-----分账状态" + fenzhang.toString() + "--------------"); |
| | | String resp_code = fenzhang.get("resp_code").toString(); |