已经调试通了:接口添加部门、接口添加员工,员工信息也是存在的:{"Result":{"ResponseStatus":{"IsSuccess":true,"SuccessEntitys":[{"Id":156001,"Number":"TESTYG001"}]},"Id":156001,"Number":"TESTYG001"}}
在调试接口添加员工任岗信息时候报错了:
请求报文:
{"Creator":"","NeedUpDateFields":[""],"Model":{"FSTAFFID":0,"FMgrCenterID":{"FID":0,"FNumber":"","FName":""},"FEndDate":"","FCreateOrgId":{"FOrgID":0,"FNumber":"01","FName":"01"},"FNumber":"TESTYG001","FIsHR":false,"FPerson":{"FPERSONID":156001,"FNumber":"TESTYG001","FName":"TESTYG001"},"FStaffNumber":"TESTYG001","FUseOrgId":{"FOrgID":0,"FNumber":"01","FName":"01"},"FName":"测试员工","FDept":{"FDEPTID":0,"FNUMBER":"","FNAME":""},"FPosition":{"FPOSTID":0,"FNumber":"GW000001","FName":"GW000001"},"FStartDate":"2016-05-20 00:00:00.0","FHrBoId":{"FOrgID":0,"FNumber":"","FName":""},"FEmpInfoId":{"FID":156001,"FNumber":"TESTYG001","FName":"测试员工","FStaffNumber":"TESTYG001","FDocumentStatus":"C","FForbidStatus":"","FIsSHR":false}}}
返回报文:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"FName","Message":"此人员不存在"}],"SuccessEntitys":[]},"Id":""}}
推荐阅读