|
@@ -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
|
}
|