| | |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.vci.ubcs.code.service.UniversalInterfaceI; |
| | | import com.vci.ubcs.code.vo.webserviceModel.person.PersonData; |
| | | import com.vci.ubcs.code.vo.webserviceModel.person.ResultOrgData; |
| | | import org.apache.tools.ant.taskdefs.condition.Http; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.ServletRequest; |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | return result; |
| | | } |
| | | |
| | | /**** |
| | | * 人员集成接口 |
| | | * @param personData 数据信息 |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/syncDataForPerson") |
| | | public ResultOrgData syncDataForPerson(@RequestBody PersonData personData,HttpServletRequest request){ |
| | | this.setHttpToThreadLocal(request); |
| | | ResultOrgData result = new ResultOrgData(); |
| | | try { |
| | | result= universalInterfaceI.syncDataForPerson(personData); |
| | | }catch (Throwable e){ |
| | | e.printStackTrace(); |
| | | logger.error("ResultOrgData->"+e.getMessage()); |
| | | } |
| | | return result; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 设置request,到ThreadLocal中 |
| | | * @param request |