|
@ -1553,6 +1553,11 @@ public class MedicineOrderService extends BaseJpaService<Mediicineorder, Mediici
|
|
|
|
|
|
public List<Map<String,Object>> getSumAmount(String belongCommunity, String equNum, String startTime, String endTime,int page,int size) {
|
|
|
List<Map<String,Object>> mapList=new ArrayList<>();
|
|
|
Map<String,Object> countMap = new HashMap<>();
|
|
|
//第几页
|
|
|
countMap.put("page",page);
|
|
|
//多少条
|
|
|
countMap.put("size",size);
|
|
|
page = (page - 1) * size;
|
|
|
//查询出所有的设备
|
|
|
Iterable <Mediicinedevice> mediicinedevices = deviceDao.findDeviceAll(page,size);
|
|
@ -1565,7 +1570,9 @@ public class MedicineOrderService extends BaseJpaService<Mediicineorder, Mediici
|
|
|
" 1=1 " ;
|
|
|
Logger.getAnonymousLogger().info("finalCountSql="+countSql);
|
|
|
int decCount = jdbcTemplate.queryForObject(countSql,Integer.class);
|
|
|
Map<String,Object> countMap = new HashMap<>();
|
|
|
//总页数
|
|
|
int total=decCount/size+(decCount%size>0?1:0);
|
|
|
countMap.put("total",total);
|
|
|
countMap.put("count",decCount);
|
|
|
mapList.add(countMap);
|
|
|
|