Subversion Repositories SmartDukaan

Rev

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

Rev 27728 Rev 27738
Line 39... Line 39...
39
				+ "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
39
				+ "sum(case when foi.createTimestamp between  :lmtdStartDate and :lmtdEndDate then foi.quantity else 0 end))"
40
				+ " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
40
				+ " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
41
				+ " and foi.createTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId"
41
				+ " and foi.createTimestamp >= :lmtdStartDate and fs.warehouseId in :warehouseId"
42
				+ " group by foi.brand"),
42
				+ " group by foi.brand"),
43
 
43
 
-
 
44
		@NamedQuery(name = "FofoOrder.selectItemPartnerTertiaryByBrand", query = "select new com.spice.profitmandi.dao.model.BrandItemWiseTertiaryModel(foi.brand, i.modelName,"
-
 
45
				+ " i.modelNumber, i.color, foi.quantity*foi.mop, foi.quantity)"
-
 
46
				+ " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join "
-
 
47
				+ " Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
-
 
48
				+ " and foi.createTimestamp >= :startDate and foi.createTimestamp < :endDate and fs.warehouseId in :warehouseId and foi.brand = :brand"),
-
 
49
 
-
 
50
		@NamedQuery(name = "FofoOrder.selectTodayItemPartnerTertiaryByBrand", query = "select new com.spice.profitmandi.dao.model.BrandItemWiseTertiaryModel(foi.brand, i.modelName,"
-
 
51
				+ " i.modelNumber, i.color, foi.quantity*foi.mop, foi.quantity)"
-
 
52
				+ " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId join FofoOrderItem foi on foi.orderId = fo.id  join "
-
 
53
				+ " Item i on i.id = foi.itemId  where fo.cancelledTimestamp is null and fs.active = true "
-
 
54
				+ " and foi.createTimestamp >= :startDate and fs.warehouseId in :warehouseId and foi.brand = :brand"),
-
 
55
 
44
})
56
})
45
public class FofoOrder implements Serializable {
57
public class FofoOrder implements Serializable {
46
 
58
 
47
	private static final long serialVersionUID = 1L;
59
	private static final long serialVersionUID = 1L;
48
 
60