Commit 7f0873de by ZhangYunfei

新增条咨询中心→物流→条形码生成功能

parent 60f0f9b0
......@@ -10,7 +10,6 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
import java.util.Map;
......@@ -36,8 +35,8 @@ public class BarcodeGenerationController {
@Login
@PostMapping("/api/createQRcode")
public R createQRcode(@RequestBody Map<String,String> param) {
String url = this.barcodeGenerationService.createPicture(param.get("content"));
return R.ok().put("pictureUrl", url);
String url = this.barcodeGenerationService.createPicture(param.get("content"));
return R.ok().put("pictureUrl", url);
}
@Login
@ApiOperation(value = "SSCC方式获取GS1 AI标识符列表", response = GS1CodeListEntity.class)
......
......@@ -2,7 +2,6 @@ package io.office.modules.manage.service;
import io.office.modules.manage.entity.GS1CodeListEntity;
import org.springframework.stereotype.Service;
import java.util.List;
/**
......
......@@ -19,6 +19,7 @@ public class BarcodeGenerationServiceImpl implements BarcodeGenerationService {
private final Log logger = LogFactory.getLog(getClass());
public static final String prefix_host="http://localhost:9091/office/";
public static final String prefix_url= "barcodegeneration/api/gensvg?type=";
@Override
public String createPicture(String content) {
String url = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment