Subversion Repositories SmartDukaan

Rev

Rev 24275 | Rev 24287 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24275 Rev 24285
Line 1613... Line 1613...
1613
		}
1613
		}
1614
	}
1614
	}
1615
 
1615
 
1616
	@Override
1616
	@Override
1617
	public float getSales(int fofoId, LocalDateTime startDate, LocalDateTime endDate) {
1617
	public float getSales(int fofoId, LocalDateTime startDate, LocalDateTime endDate) {
1618
		// TODO Auto-generated method stub
1618
		Float sales = fofoOrderRepository.selectSaleSumGroupByFofoIds(startDate, startDate).get(fofoId);
1619
		return 0;
1619
		return sales == null ? 0f : sales;
1620
	}
1620
	}
1621
 
1621
 
1622
	@Override
1622
	@Override
1623
	public float getSales(int fofoId, LocalDate onDate) {
1623
	public float getSales(int fofoId, LocalDate onDate) {
1624
		LocalDateTime startTime = LocalDateTime.of(onDate, LocalTime.MIDNIGHT).minusDays(1);
1624
		LocalDateTime startTime = LocalDateTime.of(onDate, LocalTime.MIDNIGHT);
1625
		LocalDateTime endTime = LocalDateTime.of(onDate, LocalTime.MIDNIGHT);
1625
		LocalDateTime endTime = LocalDateTime.of(onDate, LocalTime.MIDNIGHT).plusDays(1);
1626
		Float sales = fofoOrderRepository.selectSaleSumGroupByFofoIds(startTime, endTime).get(fofoId);
-
 
1627
		return sales == null ? 0f : sales;
1626
		return this.getSales(fofoId, startTime, endTime);
1628
	}
1627
	}
1629
 
1628
 
1630
	@Override
1629
	@Override
1631
	public float getSales(LocalDateTime onDate) {
1630
	public float getSales(LocalDateTime onDate) {
1632
		// TODO Auto-generated method stub
1631
		// TODO Auto-generated method stub