diff --git a/esua-epdc/epdc-gateway/src/main/resources/application.yml b/esua-epdc/epdc-gateway/src/main/resources/application.yml index dd39b39a7..45a2bcc3c 100644 --- a/esua-epdc/epdc-gateway/src/main/resources/application.yml +++ b/esua-epdc/epdc-gateway/src/main/resources/application.yml @@ -225,6 +225,7 @@ renren: - /heart/** - /oss/file/download - /ws/** + - /custom/epidemicSentryPost/downloadQRCode/** workLoginUrls: - /api/work/user/getToken #工作端-获取token - /api/work/user/login #工作端-登录 diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/pom.xml b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/pom.xml index 5da53a2cb..e0fbcb1b4 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/pom.xml +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/pom.xml @@ -24,4 +24,4 @@ ${project.artifactId} - + \ No newline at end of file diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/EpidemicSentryPostController.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/EpidemicSentryPostController.java index 4590f0e91..1b1620b76 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/EpidemicSentryPostController.java +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/EpidemicSentryPostController.java @@ -125,7 +125,7 @@ public class EpidemicSentryPostController { /** * @Description: 哨卡名称查询(未绑定网格id的) * @Param: [] - * @return: com.elink.esua.epdc.commons.tools.utils.Result>> + * @return: com.elink.esua.epdc.commons.tools.utils.Result>> * @Author: zy * @Date: 2020-02-14 */ @@ -164,7 +164,7 @@ public class EpidemicSentryPostController { /** * 生成哨卡单个小程序码 * - * @param [formDto] + * @param formDto * @return com.elink.esua.epdc.commons.tools.utils.Result * @author wangtong * @date 2020/2/14 17:46 @@ -177,7 +177,7 @@ public class EpidemicSentryPostController { /** * 生成哨卡多个小程序码 * - * @param [formDto] + * @param formDto * @return com.elink.esua.epdc.commons.tools.utils.Result * @author wangtong * @date 2020/2/14 17:46 @@ -187,4 +187,16 @@ public class EpidemicSentryPostController { return this.epidemicSentryPostService.createPostsCodes(formDto); } + /** + * 下载小程序码 + * + * @return com.elink.esua.epdc.commons.tools.utils.Result + * @author rongchao + * @date 2020/2/14 17:46 + */ + @GetMapping("downloadQRCode/{postId}") + public void downloadQRCode(@PathVariable("postId") String postId, HttpServletResponse response) { + epidemicSentryPostService.downloadQRCode(postId, response); + } + } \ No newline at end of file diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/EpidemicSentryPostService.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/EpidemicSentryPostService.java index e856fc7dc..5d151d63d 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/EpidemicSentryPostService.java +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/EpidemicSentryPostService.java @@ -25,6 +25,7 @@ import com.elink.esua.epdc.dto.form.CreateCodeFormDTO; import com.elink.esua.epdc.modules.epidemic.entity.EpidemicSentryPostEntity; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; import java.util.List; import java.util.Map; @@ -108,7 +109,7 @@ public interface EpidemicSentryPostService extends BaseService>> + * @return: com.elink.esua.epdc.commons.tools.utils.Result>> * @Author: zy * @Date: 2020-02-14 */ @@ -163,4 +164,15 @@ public interface EpidemicSentryPostService extends BaseService> listSentryPostName() { return baseDao.selectListSentryPostName();