| | |
| | | return R.fail("该公司已发布"); |
| | | } |
| | | // 判断水母报告和 公司名称是否一致 |
| | | String link = dto.getLink(); |
| | | String sign = extractSnFromUrl(link); |
| | | boolean b = checkName(dto.getCompanyName(), sign); |
| | | if(b){ |
| | | return R.fail("水母报告和公司名称不一致"); |
| | | if(dto.getTaxpayerType()!=3){ |
| | | if(dto.getLink()==null){ |
| | | return R.fail("请上传水母报告"); |
| | | } |
| | | String link = dto.getLink(); |
| | | String sign = extractSnFromUrl(link); |
| | | boolean b = checkName(dto.getCompanyName(), sign); |
| | | if(b){ |
| | | return R.fail("水母报告和公司名称不一致"); |
| | | } |
| | | } |
| | | |
| | | String companyId = tbCompanyService.pushCompany(dto, userId); |
| | | return R.ok(companyId); |
| | | } |
| | |
| | | return R.fail("订单状态不能修改"); |
| | | } |
| | | // 判断水母报告和 公司名称是否一致 |
| | | String link = dto.getLink(); |
| | | String sign = extractSnFromUrl(link); |
| | | boolean b = checkName(dto.getCompanyName(), sign); |
| | | if(b){ |
| | | return R.fail("水母报告和公司名称不一致"); |
| | | if(dto.getTaxpayerType()!=3){ |
| | | if(dto.getLink()==null){ |
| | | return R.fail("请上传水母报告"); |
| | | } |
| | | String link = dto.getLink(); |
| | | String sign = extractSnFromUrl(link); |
| | | boolean b = checkName(dto.getCompanyName(), sign); |
| | | if(b){ |
| | | return R.fail("水母报告和公司名称不一致"); |
| | | } |
| | | } |
| | | tbCompanyService.editCompany(dto,company,userId); |
| | | return R.ok(dto.getId()); |
| | |
| | | return R.fail("参数错误"); |
| | | } |
| | | TbCompany company = tbCompanyService.getById(companyId); |
| | | |
| | | String link = company.getLink(); |
| | | String[] split = link.split("="); |
| | | String sign =split [split.length-1]; |
| | | Object report = getReport(sign); |
| | | return R.ok(report); |
| | | if(link!=null){ |
| | | String sign = extractSnFromUrl(link); |
| | | Object report = getReport(sign); |
| | | return R.ok(report); |
| | | }else { |
| | | return R.ok(new Object()); |
| | | } |
| | | |
| | | } |
| | | |
| | | |