| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 在线制图 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综合展示\\在线制图") |
| | | @RestController |
| | | @SuppressWarnings("ALL") |
| | | @RequestMapping("/export") |
| | | public class ExportController extends BaseController { |
| | | @Autowired |
| | |
| | | @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<String> insertMap(@RequestBody ExportEntity entity, HttpServletRequest req) { |
| | | try { |
| | | boolean flag = entity.getXmin() == 0 && entity.getYmin() == 0 && entity.getXmax() == 0 && entity.getYmax() == 0; |
| | | if (StringHelper.isEmpty(entity.getLayers()) || StringHelper.isEmpty(entity.getToken()) || flag) { |
| | | boolean flag = entity.getXmin() == null && entity.getYmin() == null && entity.getXmax() == null && entity.getYmax() == null; |
| | | if (StringHelper.isEmpty(entity.getToken()) || flag) { |
| | | return fail("参数不完整"); |
| | | } |
| | | |