| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Object report = getReport("ZZD20250321019744801521301"); |
| | | System.out.println(report); |
| | | } |
| | | @ApiOperation(value = "立即发布",tags = {"发布模块"}) |
| | | @PostMapping("/pushCompany") |
| | | public synchronized R<?> pushCompany(@Valid @RequestBody PushCompanyDto dto) { |
| | |
| | | } |
| | | // 判断水母报告和 公司名称是否一致 |
| | | String link = dto.getLink(); |
| | | String sign = link.split("=")[1]; |
| | | String[] split = link.split("="); |
| | | String sign =split [split.length-1]; |
| | | boolean b = checkName(dto.getCompanyName(), sign); |
| | | if(b){ |
| | | return R.fail("水母报告和公司名称不一致"); |
| | |
| | | } |
| | | // 判断水母报告和 公司名称是否一致 |
| | | String link = dto.getLink(); |
| | | String sign = link.split("=")[1]; |
| | | String[] split = link.split("="); |
| | | String sign =split [split.length-1]; |
| | | boolean b = checkName(dto.getCompanyName(), sign); |
| | | if(b){ |
| | | return R.fail("水母报告和公司名称不一致"); |
| | |
| | | } |
| | | TbCompany company = tbCompanyService.getById(companyId); |
| | | String link = company.getLink(); |
| | | String sign = link.split("=")[1]; |
| | | String[] split = link.split("="); |
| | | String sign =split [split.length-1]; |
| | | Object report = getReport(sign); |
| | | return R.ok(report); |
| | | } |