puzhibing
2023-08-25 dccf96f22efad58f24fe496391c13339bd840d35
user/guns-admin/src/main/java/com/supersavedriving/user/modular/api/OrderController.java
@@ -68,6 +68,15 @@
    @Autowired
    private ISystemConfigService systemConfigService;
    @Autowired
    private IRechargeRecordService rechargeRecordService;
    @Autowired
    private IAccountChangeDetailService accountChangeDetailService;
    @Autowired
    private IDivisionRecordService divisionRecordService;
@@ -91,14 +100,11 @@
                BranchOffice branchOffice = districtCode1.get(0);
                Integer id = branchOffice.getId();
                SystemConfig systemConfig = systemConfigService.selectOne(new EntityWrapper<SystemConfig>().eq("type", 8).eq("companyId", id));
                SystemConfig systemConfig9 = systemConfigService.selectOne(new EntityWrapper<SystemConfig>().eq("type", 9).eq("companyId", id));
                if(systemConfig!=null && systemConfig9!=null){
                if(systemConfig!=null){
                    String content = systemConfig.getContent();
                    JSONObject jsonObject = JSONObject.parseObject(content);
                    String num1 = jsonObject.get("num1").toString();
                    String content9 = systemConfig9.getContent();
                    JSONObject jsonObject9 = JSONObject.parseObject(content9);
                    String num9 = jsonObject9.get("num1").toString();
                    String num9 = jsonObject.get("num3").toString();
                    if("1".equals(num1)){
                        i=1;
                    }
@@ -109,6 +115,9 @@
                        i=3;
                    }
                }
                if(i == 0){
                    i = 4;
                }
            }
            return ResponseWarpper.success(i);
        }catch (Exception e){
@@ -116,14 +125,6 @@
            return new ResponseWarpper(500, e.getMessage());
        }
    }
    @Autowired
    private IRechargeRecordService rechargeRecordService;
    @Autowired
    private IAccountChangeDetailService accountChangeDetailService;
    @Autowired
    private IDivisionRecordService divisionRecordService;