Commit 58b39065 authored by 王淑君's avatar 王淑君

修改接口

parent 59943dab
...@@ -64,10 +64,11 @@ public class SysUserController extends PaginationController<SysUser> { ...@@ -64,10 +64,11 @@ public class SysUserController extends PaginationController<SysUser> {
@GetMapping("/gets") @GetMapping("/gets")
@ApiOperation(value = "|personnels|同步人员", notes = "同步人员信息") @ApiOperation(value = "|personnels|同步人员", notes = "同步人员信息")
public Result synchronizedUsers(@RequestParam String corpId) throws ParseException { public Result synchronizedUsers(@RequestParam String corpId) throws ParseException {
return Result.builder(new PersistModel('1'), int line = userServiceImpl.synchronizedUsers(corpId);
MessageConstant.MESSAGE_ALERT_SUCCESS, return Result.builder(new PersistModel(line),
MessageConstant.MESSAGE_ALERT_ERROR, MessageConstant.MESSAGE_ALERT_SUCCESS,
userServiceImpl.synchronizedUsers(corpId)); MessageConstant.MESSAGE_ALERT_ERROR,
corpId);
} }
......
...@@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length; ...@@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank; import org.hibernate.validator.constraints.NotBlank;
import org.rcisoft.core.entity.IdEntity; import org.rcisoft.core.entity.IdEntity;
import org.rcisoft.sys.role.entity.SysRole; import org.rcisoft.sys.role.entity.SysRole;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import javax.persistence.Entity; import javax.persistence.Entity;
......
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