Subversion Repositories SmartDukaan

Rev

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

Rev 28825 Rev 29452
Line 50... Line 50...
50
		@NamedQuery(name = "ActivatedImei.selectActivatedUpdationDate", query = "select new com.spice.profitmandi.dao.model.ActivationImeiUpdationModel(fs.warehouseId,li.brand, "
50
		@NamedQuery(name = "ActivatedImei.selectActivatedUpdationDate", query = "select new com.spice.profitmandi.dao.model.ActivationImeiUpdationModel(fs.warehouseId,li.brand, "
51
				+ " Max(ai.createTimestamp))"
51
				+ " Max(ai.createTimestamp))"
52
				+ " from ActivatedImei ai join LineItemImeiView lim on ai.serialNumber = lim.serialNumber join LineItem li on li.id = lim.lineItemId join Order o on o.id = li.orderId "
52
				+ " from ActivatedImei ai join LineItemImeiView lim on ai.serialNumber = lim.serialNumber join LineItem li on li.id = lim.lineItemId join Order o on o.id = li.orderId "
53
				+ "	join FofoStore fs on fs.id = o.retailerId group by li.brand,fs.warehouseId"),
53
				+ "	join FofoStore fs on fs.id = o.retailerId group by li.brand,fs.warehouseId"),
54
 
54
 
-
 
55
		@NamedQuery(name = "ActivatedImei.selectVivoImeiAndActivationTimeStamp", query = "select new com.spice.profitmandi.dao.model.VivoImeiAndActivationTimeStampModel(ii.serialNumber, ai.activationTimestamp) "
-
 
56
				+ " from InventoryItem ii left join ActivatedImei ai on ii.serialNumber = ai.serialNumber join Item i on i.id = ii.itemId "
-
 
57
				+ "	where ii.lastScanType in('PURCHASE','SALE','SALE_RET','PURCHASE_RET') and i.brand = 'Vivo' and ai.activationTimestamp is null"),
-
 
58
 
55
})
59
})
56
public class ActivatedImei {
60
public class ActivatedImei {
57
	@Id
61
	@Id
58
	@Column(name = "serial_number", unique = true)
62
	@Column(name = "serial_number", unique = true)
59
	private String serialNumber;
63
	private String serialNumber;