Commit 7f0873de by ZhangYunfei

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

parent 60f0f9b0
...@@ -10,7 +10,6 @@ import io.swagger.annotations.ApiOperation; ...@@ -10,7 +10,6 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -36,8 +35,8 @@ public class BarcodeGenerationController { ...@@ -36,8 +35,8 @@ public class BarcodeGenerationController {
@Login @Login
@PostMapping("/api/createQRcode") @PostMapping("/api/createQRcode")
public R createQRcode(@RequestBody Map<String,String> param) { public R createQRcode(@RequestBody Map<String,String> param) {
String url = this.barcodeGenerationService.createPicture(param.get("content")); String url = this.barcodeGenerationService.createPicture(param.get("content"));
return R.ok().put("pictureUrl", url); return R.ok().put("pictureUrl", url);
} }
@Login @Login
@ApiOperation(value = "SSCC方式获取GS1 AI标识符列表", response = GS1CodeListEntity.class) @ApiOperation(value = "SSCC方式获取GS1 AI标识符列表", response = GS1CodeListEntity.class)
......
...@@ -2,7 +2,6 @@ package io.office.modules.manage.service; ...@@ -2,7 +2,6 @@ package io.office.modules.manage.service;
import io.office.modules.manage.entity.GS1CodeListEntity; import io.office.modules.manage.entity.GS1CodeListEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
/** /**
......
...@@ -19,6 +19,7 @@ public class BarcodeGenerationServiceImpl implements BarcodeGenerationService { ...@@ -19,6 +19,7 @@ public class BarcodeGenerationServiceImpl implements BarcodeGenerationService {
private final Log logger = LogFactory.getLog(getClass()); private final Log logger = LogFactory.getLog(getClass());
public static final String prefix_host="http://localhost:9091/office/"; public static final String prefix_host="http://localhost:9091/office/";
public static final String prefix_url= "barcodegeneration/api/gensvg?type="; public static final String prefix_url= "barcodegeneration/api/gensvg?type=";
@Override @Override
public String createPicture(String content) { public String createPicture(String content) {
String url = ""; 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