|
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
15
|
15
|
import com.yunzhi.gnyy.service.ITaPersonService;
|
16
|
16
|
|
17
|
17
|
import java.time.LocalDateTime;
|
|
18
|
+import java.util.Map;
|
18
|
19
|
|
19
|
20
|
/**
|
20
|
21
|
* <p>
|
|
@@ -130,12 +131,15 @@ public class TaPersonController extends BaseController {
|
130
|
131
|
*/
|
131
|
132
|
@RequestMapping(value="/wx/{clientId}/person/{id}/barcode",method= RequestMethod.GET)
|
132
|
133
|
@ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
|
133
|
|
- public ResponseBean getBarCode(@ApiParam("对象ID") @PathVariable String id) throws Exception{
|
|
134
|
+ public ResponseBean getBarCode(@ApiParam("对象ID") @PathVariable String id,
|
|
135
|
+ @ApiParam("接口参数") @RequestBody Map<String, Object> params) throws Exception{
|
134
|
136
|
TaPerson taPerson = iTaPersonService.getById(id);
|
135
|
137
|
if (null == taPerson || taPerson.getStatus() == Constants.STATUS_DELETE) {
|
136
|
138
|
return ResponseBean.error("人员不存在");
|
137
|
139
|
}
|
138
|
140
|
|
|
141
|
+ String queryStr = (String) params.get("queryStr");
|
|
142
|
+
|
139
|
143
|
String today = DateUtils.toString(LocalDateTime.now(), "yyyy-MM-dd");
|
140
|
144
|
|
141
|
145
|
SysSetting sysSetting = iSysSettingService.getById(Constants.SETTING_BARCODE_URL);
|