| | |
| | | @RestController |
| | | @RequestMapping("/employee") |
| | | public class EmployeeController extends BaseController { |
| | | //log4j日志 |
| | | private static Logger logger = LoggerFactory.getLogger(EmployeeController.class.getName()); |
| | | |
| | | /** |
| | | * 企业员工列表 |
| | |
| | | throw new PlatTipsException(PlatformCode.ERROR_BODY_DATA,"数据格式错误"); |
| | | } |
| | | |
| | | int pageNum; |
| | | int pageSize; |
| | | |
| | | if (parameter.getPageNum() == null || parameter.getPageNum() <= 0) { |
| | | pageNum = 1; |
| | | }else { |
| | | pageNum = parameter.getPageNum(); |
| | | parameter.setPageNum(1); |
| | | } |
| | | if (parameter.getPageSize() == null || parameter.getPageSize() <= 0 || parameter.getPageSize() >=100) { |
| | | pageSize = 20; |
| | | }else { |
| | | pageSize = parameter.getPageSize(); |
| | | parameter.setPageSize(20); |
| | | } |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | PageHelper.startPage(parameter.getPageNum(),parameter.getPageSize()); |
| | | SqlSentence sqlSentence = new SqlSentence(); |
| | | Map<String,Object> values = new HashMap<>(); |
| | | values.put("isDel", BaseEntity.NO); |