| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | 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.*; |
| | | |
| | | /** |
| | | * 申请人员部门控制器 |
| | |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/syncDataForPerson") |
| | | public ResultOrgData syncDataForPerson(@RequestParam PersonData personData) { |
| | | public ResultOrgData syncDataForPerson(@RequestBody PersonData personData) { |
| | | String result=""; |
| | | try { |
| | | return universalInterfaceI.syncDataForPerson(personData); |
| | |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/syncDataForOrg") |
| | | public ResultOrgData syncDataForOrg(@RequestParam OrgData orgData) { |
| | | public ResultOrgData syncDataForOrg(@RequestBody OrgData orgData) { |
| | | String result=""; |
| | | try { |
| | | return universalInterfaceI.syncDataForOrg(orgData); |