|
|
@ -563,6 +563,8 @@
|
|
|
|
JOIN ITEM I ON I.ITEM = ZSR.ITEM AND I.CURRENT_REVISION='true'
|
|
|
|
JOIN ITEM I ON I.ITEM = ZSR.ITEM AND I.CURRENT_REVISION='true'
|
|
|
|
LEFT JOIN ITEM_T IT ON I.HANDLE = IT.ITEM_BO AND IT.LOCALE = #{locale}
|
|
|
|
LEFT JOIN ITEM_T IT ON I.HANDLE = IT.ITEM_BO AND IT.LOCALE = #{locale}
|
|
|
|
LEFT JOIN Z_NWA_USER B ON ZSR.SITE = B.SITE AND ZSR.CREATE_USER = B.USER_NAME
|
|
|
|
LEFT JOIN Z_NWA_USER B ON ZSR.SITE = B.SITE AND ZSR.CREATE_USER = B.USER_NAME
|
|
|
|
|
|
|
|
JOIN SHOP_ORDER SO ON SO.shop_order=zsr.SHOP_order and so.site=zsr.site
|
|
|
|
|
|
|
|
LEFT JOIN CUSTOM_FIELDS PC ON PC.HANDLE = SO.HANDLE AND PC."ATTRIBUTE" = 'PRODUCT_CATEGORY'
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ew!=null">
|
|
|
|
<if test="ew!=null">
|
|
|
|
<if test="ew.entity!=null">
|
|
|
|
<if test="ew.entity!=null">
|
|
|
@ -598,6 +600,7 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="ew.entity.productCategory!=null and ew.entity.productCategory!=''"> AND PC.VALUE LIKE '%'|| #{ew.entity.productCategory}|| '%' </if>
|
|
|
|
<if test="startTime!=null"> AND ZSR.CREATED_DATE_TIME >=#{startTime}</if>
|
|
|
|
<if test="startTime!=null"> AND ZSR.CREATED_DATE_TIME >=#{startTime}</if>
|
|
|
|
<if test="endTime!=null"> AND ZSR.CREATED_DATE_TIME <=#{endTime}</if>
|
|
|
|
<if test="endTime!=null"> AND ZSR.CREATED_DATE_TIME <=#{endTime}</if>
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|