张延森 hace 3 años
padre
commit
16c3a2b1fe
Se han modificado 2 ficheros con 4 adiciones y 8 borrados
  1. 1
    1
      pom.xml
  2. 3
    7
      src/main/java/com/yunzhi/gnyy/controller/TaPersonController.java

+ 1
- 1
pom.xml Ver fichero

@@ -10,7 +10,7 @@
10 10
 	</parent>
11 11
 	<groupId>com.yunzhi</groupId>
12 12
 	<artifactId>gnyy</artifactId>
13
-	<version>0.0.3</version>
13
+	<version>0.0.4</version>
14 14
 	<name>qrcode</name>
15 15
 	<description>Demo project for Spring Boot</description>
16 16
 

+ 3
- 7
src/main/java/com/yunzhi/gnyy/controller/TaPersonController.java Ver fichero

@@ -129,8 +129,8 @@ public class TaPersonController extends BaseController {
129 129
      * 获取条码
130 130
      * @param id  实体ID
131 131
      */
132
-    @RequestMapping(value="/wx/{clientId}/person/{id}/barcode",method= RequestMethod.GET)
133
-    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
132
+    @RequestMapping(value="/wx/{clientId}/person/{id}/barcode",method= RequestMethod.POST)
133
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "POST", response = ResponseBean.class)
134 134
     public ResponseBean getBarCode(@ApiParam("对象ID") @PathVariable String id,
135 135
                                    @ApiParam("接口参数") @RequestBody Map<String, Object> params) throws Exception{
136 136
         TaPerson taPerson = iTaPersonService.getById(id);
@@ -143,11 +143,7 @@ public class TaPersonController extends BaseController {
143 143
         String today = DateUtils.toString(LocalDateTime.now(), "yyyy-MM-dd");
144 144
 
145 145
         SysSetting sysSetting = iSysSettingService.getById(Constants.SETTING_BARCODE_URL);
146
-        String url = String.format("%s?createDate=%s&idNo=%s",
147
-                sysSetting.getContent(),
148
-                StringUtils.urlEncode(today),
149
-                StringUtils.urlEncode(taPerson.getIdNo()));
150
-
146
+        String url = String.format("%s?%s", sysSetting.getContent(), queryStr);
151 147
         return ResponseBean.success(httpUtils.get(url));
152 148
     }
153 149
 }