| | |
| | | |
| | | import com.java110.user.dao.IPrivilegeUserV1ServiceDao; |
| | | import com.java110.intf.user.IPrivilegeUserV1InnerServiceSMO; |
| | | import com.java110.dto.privilegeUser.PrivilegeUserDto; |
| | | import com.java110.po.privilegeUser.PrivilegeUserPo; |
| | | import com.java110.dto.privilege.PrivilegeUserDto; |
| | | import com.java110.po.privilege.PrivilegeUserPo; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.user.UserDto; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | return privilegeUsers; |
| | | } |
| | | |
| | | @Override |
| | | public int queryStaffsNoRoleCount(@RequestBody PrivilegeUserDto privilegeUserDto) { |
| | | return privilegeUserV1ServiceDaoImpl.queryStaffsNoRoleCount(BeanConvertUtil.beanCovertMap(privilegeUserDto)); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserDto> queryStaffsNoRoleInfos(@RequestBody PrivilegeUserDto privilegeUserDto) { |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = privilegeUserDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | privilegeUserDto.setPage((page - 1) * privilegeUserDto.getRow()); |
| | | } |
| | | |
| | | List<UserDto> privilegeUsers = BeanConvertUtil.covertBeanList(privilegeUserV1ServiceDaoImpl.queryStaffsNoRoleInfos(BeanConvertUtil.beanCovertMap(privilegeUserDto)), UserDto.class); |
| | | |
| | | return privilegeUsers; |
| | | } |
| | | |
| | | } |