| Line 75... |
Line 75... |
| 75 |
+ " join FofoOrderItem foi on foi.orderId = fo.id join TagListing tl on tl.itemId = foi.itemId "
|
75 |
+ " join FofoOrderItem foi on foi.orderId = fo.id join TagListing tl on tl.itemId = foi.itemId "
|
| 76 |
+ " join Item i on i.id = tl.itemId"
|
76 |
+ " join Item i on i.id = tl.itemId"
|
| 77 |
+ " where fs.active = 1 and fs.internal = 0 and fo.cancelledTimestamp is null "
|
77 |
+ " where fs.active = 1 and fs.internal = 0 and fo.cancelledTimestamp is null "
|
| 78 |
+ " and fo.createTimestamp > :startDate and tl.mop between :startPrice and :endPrice and i.categoryId=10006 group by fs.id,i.catalogItemId,i.brand,i.modelName,i.modelNumber"),
|
78 |
+ " and fo.createTimestamp > :startDate and tl.mop between :startPrice and :endPrice and i.categoryId=10006 group by fs.id,i.catalogItemId,i.brand,i.modelName,i.modelNumber"),
|
| 79 |
|
79 |
|
| - |
|
80 |
@NamedQuery(name = "FofoOrder.selectPartnersSaleItemByCatalogIdFofoId", query = "select new com.spice.profitmandi.dao.model.FofoIdItemDetailModel("
|
| - |
|
81 |
+ " fs.warehouseId, fs.id,sum(foi.quantity),i.brand,i.modelName,i.modelNumber,i.catalogItemId)"
|
| - |
|
82 |
+ " from FofoStore fs join FofoOrder fo on fs.id = fo.fofoId "
|
| - |
|
83 |
+ " join FofoOrderItem foi on foi.orderId = fo.id join TagListing tl on tl.itemId = foi.itemId "
|
| - |
|
84 |
+ " join Item i on i.id = tl.itemId"
|
| - |
|
85 |
+ " where fs.active = 1 and fs.internal = 0 and fo.cancelledTimestamp is null and fo.createTimestamp > :startDate and i.catalogItemId in :catalogItemId and i.categoryId=10006 and fs.id = :fofoId group by i.catalogItemId, i.brand,i.modelName,i.modelNumber"),
|
| - |
|
86 |
|
| 80 |
})
|
87 |
})
|
| 81 |
public class FofoOrder implements Serializable {
|
88 |
public class FofoOrder implements Serializable {
|
| 82 |
|
89 |
|
| 83 |
private static final long serialVersionUID = 1L;
|
90 |
private static final long serialVersionUID = 1L;
|
| 84 |
|
91 |
|