Commit acfc8f24 by qwmqiuwenmin

fix

parent 5c1a7eb8
......@@ -96,7 +96,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
logger.info("【部门新增】corpid() = {},siteId={},dto={}",enterpriseDTO.getCorpid(),application.getSiteId(),JSON.toJSONString(dto));
JSONResponse jp = qywxDepartmentApiService.createDepartment(enterpriseDTO.getCorpid(), application.getSiteId(), dto);
logger.info("【部门新增】jp = {}",JSON.toJSONString(jp));
if(jp.getErrorCode() != 1) {
if(jp.getErrorCode() != 0) {
hr.setErrorCode(0);
hr.setMessage("微信新增部门失败");
return hr;
......@@ -130,7 +130,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
TabHaobanDepartment parent = departmentService.selectById(department.getParentDepartmentId());
dto.setParentid(Integer.valueOf(parent.getWxDepartmentId()));
JSONResponse jp = qywxDepartmentApiService.updateDepartment(enterpriseDTO.getCorpid(), application.getSiteId(), dto);
if(jp.getErrorCode() != 1) {
if(jp.getErrorCode() != 0) {
hr.setErrorCode(0);
hr.setMessage("微信修改部门失败");
return hr;
......@@ -167,7 +167,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
if(enterpriseDTO != null) {
if(application != null) {
JSONResponse jp = qywxDepartmentApiService.deleteDepartment(enterpriseDTO.getCorpid(), application.getSiteId(), Integer.parseInt(department.getWxDepartmentId()));
if(jp.getErrorCode() != 1) {
if(jp.getErrorCode() != 0) {
hr.setErrorCode(0);
hr.setMessage("微信删除部门失败");
return hr;
......
......@@ -103,7 +103,7 @@ public class StaffApiServiceImpl implements StaffApiService {
userDTO.setTo_invite(true);
}
JSONResponse jp = qywxUserApiService.createWorkWxUser(userDTO, enterpriseDTO.getCorpid(), application.getSiteId());
if(jp.getErrorCode() != 1) {
if(jp.getErrorCode() != 0) {
hr.setErrorCode(0);
hr.setDetailError("微信新增失败");
return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment