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

修改接口

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