中铁十一局添加接口
This commit is contained in:
parent
d5f14634f5
commit
cf5e43b2fe
@ -33,7 +33,7 @@ import java.util.Map;
|
||||
* @version: V1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/xmgl/ztWorker")
|
||||
@RequestMapping("/xmgl/ztWorker")
|
||||
@Slf4j
|
||||
@Api(tags = "中铁十一局劳务人员外部接口调用")
|
||||
public class ZtWorkerController {
|
||||
@ -107,4 +107,21 @@ public class ZtWorkerController {
|
||||
return Result.success(JSONArray.parseArray(post));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 实时进出记录接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@OperLog(operModul = "中铁十一局劳务人员外部接口调用", operType = "分页查询", operDesc = "实时进出记录接口(按时间筛选)")
|
||||
@ApiOperation(value = "实时进出记录接口(按时间筛选)", notes = "实时进出记录接口(按时间筛选)", httpMethod = "POST")
|
||||
@PostMapping(value = "realtimeRecordsByTime")
|
||||
public Result<Object> realtimeRecordsByTime(@RequestBody Map<String, Object> requestMap) {
|
||||
requestMap.put("tenant_id", "1833147242533949441");
|
||||
requestMap.put("project_id", "1833149331474493441");
|
||||
requestMap.put("device_numbers", "E03C1CB2A0EF1607");
|
||||
String post = HttpUtil.post("http://spm3.1357.cn/hewu-api/api/realtime-records-by-time", JSON.toJSONString(requestMap));
|
||||
return Result.success(JSONArray.parseArray(post));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user