Subversion Repositories SmartDukaan

Rev

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

Rev 27579 Rev 27586
Line 22... Line 22...
22
@Table(name = "fofo.fofo_order", schema = "fofo")
22
@Table(name = "fofo.fofo_order", schema = "fofo")
23
 
23
 
24
@NamedQueries({
24
@NamedQueries({
25
 
25
 
26
		@NamedQuery(name = "FofoOrder.SelectItemWiseTertiary", query = "select new com.spice.profitmandi.dao.model.ItemWiseTertiaryModel(foi.brand,"
26
		@NamedQuery(name = "FofoOrder.SelectItemWiseTertiary", query = "select new com.spice.profitmandi.dao.model.ItemWiseTertiaryModel(foi.brand,"
27
				+ "foi.modelName, foi.modelNumber, foi.quantity, foi.mop)"
27
				+ "foi.modelName, foi.modelNumber, foi.color, foi.quantity, foi.mop)"
28
				+ " from FofoOrder fo join FofoOrderItem foi on fo.id = foi.orderId where fo.cancelledTimestamp is null and fo.fofoId = :fofoId"
28
				+ " from FofoOrder fo join FofoOrderItem foi on fo.id = foi.orderId where fo.cancelledTimestamp is null and fo.fofoId = :fofoId"
29
				+ " and fo.createTimestamp between :startDate and :endDate"),
29
				+ " and fo.createTimestamp between :startDate and :endDate"),
30
 
30
 
31
})
31
})
32
public class FofoOrder implements Serializable {
32
public class FofoOrder implements Serializable {
Line 255... Line 255...
255
			return false;
255
			return false;
256
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
256
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
257
			return false;
257
			return false;
258
		return true;
258
		return true;
259
	}
259
	}
260
	
260
 
261
	@Override
261
	@Override
262
	public String toString() {
262
	public String toString() {
263
		return "FofoOrder [id=" + id + ", fofoId=" + fofoId + ", customerId=" + customerId + ", customerAddressId="
263
		return "FofoOrder [id=" + id + ", fofoId=" + fofoId + ", customerId=" + customerId + ", customerAddressId="
264
				+ customerAddressId + ", customerGstNumber=" + customerGstNumber + ", totalAmount=" + totalAmount
264
				+ customerAddressId + ", customerGstNumber=" + customerGstNumber + ", totalAmount=" + totalAmount
265
				+ ", invoiceNumber=" + invoiceNumber + ", cashback=" + cashback + ", createTimestamp=" + createTimestamp
265
				+ ", invoiceNumber=" + invoiceNumber + ", cashback=" + cashback + ", createTimestamp=" + createTimestamp
266
				+ ", cancelledTimestamp=" + cancelledTimestamp + ", billingTimestamp=" + billingTimestamp
266
				+ ", cancelledTimestamp=" + cancelledTimestamp + ", billingTimestamp=" + billingTimestamp
267
				+ ", orderItem=" + orderItem + ", dateOfBirth=" + dateOfBirth + "]";
267
				+ ", orderItem=" + orderItem + ", dateOfBirth=" + dateOfBirth + "]";
268
	}
268
	}
269
	
269
 
270
}
270
}