| | |
| | | throw new ServiceException("公司不存在"); |
| | | } |
| | | BusinessVO vo = new BusinessVO(); |
| | | // 先查企业工商信息 更新数据 |
| | | JSONObject jsonObject = getQiChaChaBasicDetailsCompany(company.getCompanyName()); |
| | | company.setOperName(jsonObject.getString("OperName")); |
| | | company.setBelongOrg(jsonObject.getString("BelongOrg")); |
| | | company.setRegistrationStatus(jsonObject.getString("Status")); |
| | | company.setRegisteredCapital(jsonObject.getString("RegisteredCapital")); |
| | | company.setPaidInFunds(jsonObject.getString("PaidUpCapital")); |
| | | companyMapper.updateById(company); |
| | | BeanUtils.copyProperties(company, vo); |
| | | vo.setPlace(company.getCity()+company.getProvince()+company.getArea()); |
| | | |
| | | JSONObject area = (JSONObject) jsonObject.get("Area"); |
| | | vo.setPlace(area.getString("Province")+"-"+area.getString("City")+"-"+area.getString("County")); |
| | | vo.setCompanyCategoryName(jsonObject.getString("EconKind")); |
| | | |
| | | String name = companyTypeService.getById(company.getCompanyCategory()).getName(); |
| | | vo.setCompanyCategoryName(name); |
| | | |
| | | //todo 再查企业工商信息 覆盖掉之前的 |
| | | |
| | | |
| | | return vo; |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * 经营异常核查 |
| | | * @param companyName |
| | | * @return |
| | | * VerifyResult int 数据是否存在(1-存在,0-不存在) |
| | | * Data List<Object> 数据信息 |
| | | * Data:[{ |
| | | * AddReason 列入经营异常名录原因 |
| | | * AddDate 列入日期 |
| | | * RomoveReason 移出经营异常名录原因(保留字段) |
| | | * RemoveDate 移出日期(保留字段) |
| | | * DecisionOffice 作出决定机关 |
| | | * RemoveDecisionOffice 移出决定机关(保留字段) |
| | | * }] |
| | | * Status |
| | | * Message |
| | | * OrderNumber |
| | | * 查询工商信息 |
| | | */ |
| | | public JSONObject getQiChaChaBasicDetailsCompany(String companyName){ |
| | | Object cacheObject = redisCache.getCacheObject("qichacha_" +"basic_"+ companyName); |
| | |
| | | public R change(String id) { |
| | | // System.err.println(getReport("ZZD20250508017232394218445")); |
| | | ChangeVO changeVO = new ChangeVO(); |
| | | /* Company companyInfo = companyMapper.selectById(id); |
| | | Company companyInfo = companyMapper.selectById(id); |
| | | if (null == companyInfo || companyInfo.getIsDelete() != 0) { |
| | | throw new ServiceException("公司不存在"); |
| | | }*/ |
| | | // JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | } |
| | | JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | if (!"1001".equals(jsonObject.getString("code"))){ |
| | | return R.fail(jsonObject.get("msg")); |
| | | } |
| | |
| | | @Override |
| | | public R tax(String id) { |
| | | TaxVO taxVO = new TaxVO(); |
| | | /* Company companyInfo = companyMapper.selectById(id); |
| | | Company companyInfo = companyMapper.selectById(id); |
| | | if (null == companyInfo || companyInfo.getIsDelete() != 0) { |
| | | throw new ServiceException("公司不存在"); |
| | | }*/ |
| | | // JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | } |
| | | JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | if (!"1001".equals(jsonObject.getString("code"))){ |
| | | return R.fail(jsonObject.get("msg")); |
| | | } |
| | |
| | | @Override |
| | | public R invoice(String id) { |
| | | InvoiceVO vo = new InvoiceVO(); |
| | | /* Company companyInfo = companyMapper.selectById(id); |
| | | Company companyInfo = companyMapper.selectById(id); |
| | | if (null == companyInfo || companyInfo.getIsDelete() != 0) { |
| | | throw new ServiceException("公司不存在"); |
| | | }*/ |
| | | // JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | } |
| | | JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | if (!"1001".equals(jsonObject.getString("code"))){ |
| | | return R.fail(jsonObject.get("msg")); |
| | | } |