| | |
| | | apiFloorVo.setApiFloorDataVoList(BeanConvertUtil.covertBeanList(floorDtoList, ApiFloorDataVo.class)); |
| | | } |
| | | |
| | | apiFloorVo.setRecords((int) Math.ceil(total / row)); |
| | | apiFloorVo.setRecords((int) Math.ceil((double) total / (double) row)); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(JSONObject.toJSONString(apiFloorVo), HttpStatus.OK); |
| | | dataFlowContext.setResponseEntity(responseEntity); |
| New file |
| | |
| | | package com.java110.api.listener.floor; |
| | | |
| | | import org.junit.Test; |
| | | |
| | | import static org.junit.Assert.*; |
| | | |
| | | public class QueryFloorsListenerTest { |
| | | |
| | | @Test |
| | | public void soService() { |
| | | int a = 16; |
| | | int b = 16; |
| | | System.out.println(Math.ceil((double) a/(double) b)); |
| | | } |
| | | } |