[步骤]
1.创建策略,条件指定sku,执行策略[结果]
1.没有过滤到数据[期望]


[步骤]
1.创建策略,条件指定sku,执行策略[结果]
1.没有过滤到数据[期望]


select t1.id, t1.sale_price, t1.country, t1.source_name, t1.customer_id, t1.source_id, t1.update_time, t1.msku, t1.asin, t1.sku, la.listing_price, t1.business_user_id, t1.business_user_name, t1.currency, lepa.rating_star, pmihr.inv_age_0_to_90_days, pmihr.inv_age_91_to_180_days, pmihr.inv_age_181_to_270_days, pmihr.inv_age_271_to_365_days, pmihr.inv_age_365_plus_days, pmihr.inv_age_90_plus_days, pmihr.inv_age_180_plus_days, t1.parent_asin, t1.listing_method, t1.publish_time, t1.seller_id, t1.marketplace_id, t1.warehouse, la.discount_start, la.discount_end, t1.delivery_type from t_amazon_listing_${tab} t1 left join t_amazon_listing_amount_${tab} la on t1.id=la.id left join plat_manage_inventory_health_report pmihr on pmihr.order_source_id=t1.source_id and pmihr.sku=t1.msku and pmihr.asin=t1.asin left join t_amazon_listing_tag_${tab} lt on t1.id=lt.listing_id left join t_amazon_listing_extra_asin_${tabCountry} lea on lea.marketplace_id = t1.marketplace_id AND lea.asin = t1.asin left join t_amazon_listing_extra_parent_asin_${tabCountry} lepa on lepa.marketplace_id = t1.marketplace_id AND lepa.asin = t1.asin AND lepa.asin_type = 0 where
t1.is_deleted=0 and t1.asin is not null and t1.asin !='' and t1.seller_id is not null and t1.marketplace_id is not null <if test="qry.sourceId != null"> and t1.source_id = #{qry.sourceId} </if> <if test="qry.sourceCountryCode != null and qry.sourceCountryCode != ''"> and t1.country = #{qry.sourceCountryCode,jdbcType=VARCHAR} </if> <if test="qry.minSellingPrice != null and qry.maxSellingPrice != null"> and la.listing_price between #{qry.minSellingPrice,jdbcType=DECIMAL} and #{qry.maxSellingPrice,jdbcType=DECIMAL} </if> <if test="qry.numDaysAvailableMin != null and qry.numDaysAvailableMax != null"> and t1.available_day between #{qry.numDaysAvailableMin,jdbcType=INTEGER} and #{qry.numDaysAvailableMax,jdbcType=INTEGER} </if> <if test="qry.libraryAgeMinL1 != null and qry.libraryAgeMaxL1 != null"> and pmihr.inv_age_0_to_90_days between #{qry.libraryAgeMinL1,jdbcType=INTEGER} and #{qry.libraryAgeMaxL1,jdbcType=INTEGER} </if> <if test="qry.libraryAgeMinL2 != null and qry.libraryAgeMaxL2 != null"> and pmihr.inv_age_91_to_180_days between #{qry.libraryAgeMinL2,jdbcType=INTEGER} and #{qry.libraryAgeMaxL2,jdbcType=INTEGER} </if> <if test="qry.libraryAgeMinL3 != null and qry.libraryAgeMaxL3 != null"> and pmihr.inv_age_181_to_270_days between #{qry.libraryAgeMinL3,jdbcType=INTEGER} and #{qry.libraryAgeMaxL3,jdbcType=INTEGER} </if> <if test="qry.libraryAgeMinL4 != null and qry.libraryAgeMaxL4 != null"> and pmihr.inv_age_271_to_365_days between #{qry.libraryAgeMinL4,jdbcType=INTEGER} and #{qry.libraryAgeMaxL4,jdbcType=INTEGER} </if> <if test="qry.libraryAgeMinL5 != null and qry.libraryAgeMaxL5 != null"> and pmihr.inv_age_365_plus_days between #{qry.libraryAgeMinL5,jdbcType=INTEGER} and #{qry.libraryAgeMaxL5,jdbcType=INTEGER} </if> <if test="qry.libraryAgeMinL6 != null and qry.libraryAgeMaxL6 != null"> and pmihr.inv_age_90_plus_days between #{qry.libraryAgeMinL6,jdbcType=INTEGER} and #{qry.libraryAgeMaxL6,jdbcType=INTEGER} </if> <if test="qry.libraryAgeMinL7 != null and qry.libraryAgeMaxL7 != null"> and pmihr.inv_age_180_plus_days between #{qry.libraryAgeMinL7,jdbcType=INTEGER} and #{qry.libraryAgeMaxL7,jdbcType=INTEGER} </if> <if test="qry.dayIssuedMin != null and qry.dayIssuedMax != null"> and TIMESTAMPDIFF(DAY,t1.publish_time,NOW()) between #{qry.dayIssuedMin,jdbcType=INTEGER} and #{qry.dayIssuedMax,jdbcType=INTEGER} </if> <if test="qry.asinFirstOrderMin != null and qry.asinFirstOrderMax != null"> and TIMESTAMPDIFF(DAY,lea.asin_first_order_time,NOW()) between #{qry.asinFirstOrderMin,jdbcType=INTEGER} and #{qry.asinFirstOrderMax,jdbcType=INTEGER} </if> <if test="qry.issuedTimeMin != null and qry.issuedTimeMax != null"> and t1.publish_time between #{qry.issuedTimeMin,jdbcType=TIMESTAMP} and #{qry.issuedTimeMax,jdbcType=TIMESTAMP} </if> <if test="qry.asinFirstOrderTimeMin != null and qry.asinFirstOrderTimeMax != null"> and lea.asin_first_order_time between #{qry.asinFirstOrderTimeMin,jdbcType=TIMESTAMP} and #{qry.asinFirstOrderTimeMax,jdbcType=TIMESTAMP} </if> <if test="qry.asinFirstTimeMin != null and qry.asinFirstTimeMax != null"> and lea.asin_first_arrival_time between #{qry.asinFirstTimeMin,jdbcType=TIMESTAMP} and #{qry.asinFirstTimeMax,jdbcType=TIMESTAMP} </if> <if test="qry.despatchMode != null"> and t1.delivery_type=#{qry.despatchMode,jdbcType=TINYINT} </if> <if test="qry.listingSoldNumMin != null and qry.listingSoldNumMax != null"> and t1.quality between #{qry.listingSoldNumMin,jdbcType=INTEGER} and #{qry.listingSoldNumMax,jdbcType=INTEGER} </if> <if test="qry.getSkus() != null and qry.getSkus().size()>0"> and t1.sku in <foreach close=")" collection="qry.getSkus()" item="item" open="(" separator=", "> #{item,jdbcType=BIGINT} </foreach> </if> <if test="qry.getOrderSourceSkuList() != null and qry.getOrderSourceSkuList().size()>0"> and t1.msku in <foreach close=")" collection="qry.getOrderSourceSkuList()" item="item" open="(" separator=", "> #{item,jdbcType=BIGINT} </foreach> </if> <if test="qry.getHolidaysIds() != null and qry.getHolidaysIds().size()>0"> AND lt.type = 1 and lt.tag_id in <foreach close=")" collection="qry.getHolidaysIds()" item="item" open="(" separator=", "> #{item,jdbcType=BIGINT} </foreach> </if> <if test="qry.getPublishTypes() != null and qry.getPublishTypes().size()>0"> and t1.listing_method in <foreach close=")" collection="qry.getPublishTypes()" item="item" open="(" separator=", "> #{item,jdbcType=BIGINT} </foreach> </if> <if test="qry.getOrderSourceSkuDenyList() != null and qry.getOrderSourceSkuDenyList().size()>0"> and t1.msku not in <foreach close=")" collection="qry.getOrderSourceSkuDenyList()" item="item" open="(" separator=", "> #{item,jdbcType=BIGINT} </foreach> </if> <if test="qry.getAddAdminIds() != null and qry.getAddAdminIds().size() > 0"> and t1.listing_person in <foreach close=")" collection="qry.getAddAdminIds()" item="item" open="(" separator=", "> #{item,jdbcType=INTEGER} </foreach> </if> <if test="qry.lastMaxId != null and qry.lastMaxId > 0"> and t1.id > #{qry.lastMaxId} </if>
确认为非bug
SELECT
t1.id,AND '100.0000'

| 所属项目 | 技术中心-需求池 |
|---|---|
| 所属模块 | 亚马逊 |
| 所属迭代 | 亚马逊产品线 - listingV1切换项目 |
| Bug类型 | 程序BUG |
| 严重程度 | 一般 |
| 优先级 | P1 |
| Bug状态 | 已关闭 |
| 业务部门 | |
| 开发责任人 | |
| 测试责任人 | |
| 解决时效 | 53.73 |
| 激活次数 | 0 |
| 激活日期 | |
| 当前指派 | Closed 于 2024-03-18 14:03:33 |
| 截止日期 | 0000-00-00 |
| 上线时间 | 0000-00-00 00:00:00 |
| 上线时效 | 17744600 |
| 关键词 | |
| 抄送给 |
| 由谁创建 | 劳世仙 于 2024-03-15 16:46:52 |
|---|---|
| 影响环境 |
测试环境-测试反馈 |
| 由谁解决 | 张粤利 于 2024-03-18 10:32:39 |
| 解决版本 | 主干 |
| 解决方案 | 非BUG-纯属误判 |
| 由谁关闭 | 劳世仙 于 2024-03-18 14:03:33 |
| 最后修改 | 劳世仙 于 2024-03-18 14:03:33 |
| 相关Bug |
|---|
t1.id,
t1.sale_price,
t1.country,
t1.source_name,
t1.customer_id,
t1.source_id,
t1.update_time,
t1.msku,
t1.asin,
t1.sku,
la.listing_price,
t1.business_user_id,
t1.business_user_name,
t1.currency,
lepa.rating_star,
pmihr.inv_age_0_to_90_days,
pmihr.inv_age_91_to_180_days,
pmihr.inv_age_181_to_270_days,
pmihr.inv_age_271_to_365_days,
pmihr.inv_age_365_plus_days,
pmihr.inv_age_90_plus_days,
pmihr.inv_age_180_plus_days,
t1.parent_asin,
t1.listing_method,
t1.publish_time,
t1.seller_id,
t1.marketplace_id,
t1.warehouse,
la.discount_start,
la.discount_end,
t1.delivery_type
FROM
t_amazon_listing_12 t1
LEFT JOIN t_amazon_listing_amount_12 la ON t1.id = la.id
LEFT JOIN plat_manage_inventory_health_report pmihr ON pmihr.order_source_id = t1.source_id
AND pmihr.sku = t1.msku
AND pmihr.asin = t1.asin
LEFT JOIN t_amazon_listing_tag_12 lt ON t1.id = lt.listing_id
LEFT JOIN t_amazon_listing_extra_asin_us lea ON lea.marketplace_id = t1.marketplace_id
AND lea.asin = t1.asin
LEFT JOIN t_amazon_listing_extra_parent_asin_us lepa ON lepa.marketplace_id = t1.marketplace_id
AND lepa.asin = t1.asin
AND lepa.asin_type = 0
WHERE
t1.is_deleted = 0
AND t1.msku IN (
'0044XYH11MTCH6',
'09OK2845T0OJJCK3XRI7',
'0D170ED3197E1VN16NOYLPC',
'1816518BO0X5515',
'1840547VP0G5515',
'1B19N745S2604K509MHATZ4',
'2024IR910BE',
'2110GCI17PK',
'22SGD09R58IPD',
'2EK24KUFW12K11C6H3O4F6IJ',
'31I8KR511218OB',
'3254KWXVXLO11RC7Y2NF1KE',
'3500215BYV06O7MNBQ7W7NEV',
'3I92T19O451101KYSIN',
'424V6IBBJE30BH015EO',
'42I22NLC259U6H11KJ7OZ1SJ8',
'4511I19AFDE7Y',
'45EXCE18W9F90ZL18F659',
'4DZM53J16K5C141AOHAHXG',
'6417210CCL8R3CGY6D',
'7O32EOE1404RH0VD1OR6',
'8N16QK257U22KC21GWGW',
'91308AXN6N422UPUMM9GBC',
'96L7H533315X3',
'A450083M212MK9UJTZ58',
'A5X14SPC2538MPC37EBNSUHA',
'ABO9G8PD23Y213114CZN6',
'C28W1915R3KJ',
'C3187142RK',
'D102K612488P',
'E2CWWIY5GK545213XVE',
'F27Y145439',
'F54YZEFV2317F3BN6NLAESGB',
'G31V2XMTE43V36O5185E',
'GYYK42858R13L63ZIRH',
'H4424JQR00CMN103',
'I25V0F64JNWCU31601TDZDL',
'I5032T09L14Q',
'ID4552L02MU16Y',
'IP02234515Y6',
'K06AR1004QGVR',
'K39I02QMM2D814SUZ',
'KI16043IBC833LGVQYU15JOK',
'M146P02BF0599W2R',
'MMLGU1442D36B0N40Z',
'O46V3161E10GQ',
'PI2651241OE',
'Q2I15WI0429BISZ5ZOCGXHA',
'R55V1384XPYW',
'RY3CL314118W40GEQ',
'TQPJ052IIENNBQ1488Z1Z05J',
'WCV1268XD0160',
'WUV51S116Y57NC4SKXYKF',
'Y505UHP51TR13R',
'Z1006N22GCQ5Z3017IYUYLM'
)
AND t1.asin IS NOT NULL
AND t1.asin != ''
AND t1.seller_id IS NOT NULL
AND t1.marketplace_id IS NOT NULL
AND t1.source_id = 6891
AND t1.country = 'US'
AND la.listing_price BETWEEN '1.0000'
AND '100.0000'
LIMIT 200