Commit 36430a9b by 王璐琦

fix(strategy): 修正取消客户产品标签任务和类型解析逻辑

- 将取消客户产品标签任务处理的退单时间由15天调整为16天
- 修改取消客户产品标签任务类注释中的退单日期说明
- 将电动踏板和小桌板的商品类型配置从单个整数属性改为字符串类型,支持多类型配置
- 相应调整解析商品类型ID集合的逻辑,避免将整数转换为字符串造成的错误
- 保持其他商品类型配置和解析逻辑一致,确保标签同步功能正常运行
1 parent 2ecfd32e
...@@ -7,9 +7,9 @@ import lombok.extern.slf4j.Slf4j; ...@@ -7,9 +7,9 @@ import lombok.extern.slf4j.Slf4j;
import org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf; import org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
/** /**
* @ClassName CancelCustomerProductTagJob * @ClassName CancelCustomerProductTagJob
* @Description 取消客户产品标签任务 - 15日退单数据 * @Description 取消客户产品标签任务 - 16日退单数据
* @Author lqWang * @Author lqWang
* @Date 2026/6/23 10:16 * @Date 2026/6/23 10:16
*/ */
......
...@@ -556,11 +556,11 @@ public class InspectionCustomerTagSyncService { ...@@ -556,11 +556,11 @@ public class InspectionCustomerTagSyncService {
//车衣大类 //车衣大类
String carCoverTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.carCover","4,12,161,14,6,162,127"); String carCoverTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.carCover","4,12,161,14,6,162,127");
//电动踏板 //电动踏板
Integer electricPedalTypeId = OrePropertyConfigurer.getProperty("smartcarlife.customer.tag.goodsType.electricPedal",Integer.class,163); String electricPedalTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.electricPedal","163");
//底盘护板 //底盘护板
String groundGuardBoardTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.groundGuardBoard","129,166"); String groundGuardBoardTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.groundGuardBoard","129,166");
//小桌板 //小桌板
Integer smallTableBoardId = OrePropertyConfigurer.getProperty("smartcarlife.customer.tag.goodsType.smallTableBoard",Integer.class,167); String smallTableBoardTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.smallTableBoard","167");
//脚垫 //脚垫
String footMatTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.footMat","2,125,130"); String footMatTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.footMat","2,125,130");
...@@ -603,9 +603,9 @@ public class InspectionCustomerTagSyncService { ...@@ -603,9 +603,9 @@ public class InspectionCustomerTagSyncService {
// 3. 品类ID集合 → 产品标签枚举映射 // 3. 品类ID集合 → 产品标签枚举映射
Set<Integer> solarFilmTypes = parseTypeIds(solarFilmTypesStr); Set<Integer> solarFilmTypes = parseTypeIds(solarFilmTypesStr);
Set<Integer> carCoverTypes = parseTypeIds(carCoverTypesStr); Set<Integer> carCoverTypes = parseTypeIds(carCoverTypesStr);
Set<Integer> electricPedalTypes = parseTypeIds(String.valueOf(electricPedalTypeId)); Set<Integer> electricPedalTypes = parseTypeIds(electricPedalTypesStr);
Set<Integer> groundGuardBoardTypes = parseTypeIds(groundGuardBoardTypesStr); Set<Integer> groundGuardBoardTypes = parseTypeIds(groundGuardBoardTypesStr);
Set<Integer> smallTableBoardTypes = parseTypeIds(String.valueOf(smallTableBoardId)); Set<Integer> smallTableBoardTypes = parseTypeIds(smallTableBoardTypesStr);
Set<Integer> footMatTypes = parseTypeIds(footMatTypesStr); Set<Integer> footMatTypes = parseTypeIds(footMatTypesStr);
Map<Set<Integer>, String> goodsTypeEnumMap = new LinkedHashMap<>(); Map<Set<Integer>, String> goodsTypeEnumMap = new LinkedHashMap<>();
...@@ -692,7 +692,7 @@ public class InspectionCustomerTagSyncService { ...@@ -692,7 +692,7 @@ public class InspectionCustomerTagSyncService {
} }
/** /**
* @description: 取消客户产品标签 - 默认15天内退款订单 * @description: 取消客户产品标签 - 默认16天内退款订单
* @param: [jobParameter] * @param: [jobParameter]
* @return: void * @return: void
* @author: lqWang * @author: lqWang
...@@ -709,7 +709,7 @@ public class InspectionCustomerTagSyncService { ...@@ -709,7 +709,7 @@ public class InspectionCustomerTagSyncService {
if (StrUtil.isBlank(jobParameter)) { if (StrUtil.isBlank(jobParameter)) {
endLocalDate = LocalDate.now(); endLocalDate = LocalDate.now();
startLocalDate = endLocalDate.minusDays(15); startLocalDate = endLocalDate.minusDays(16);
} else { } else {
JSONObject params = JSONUtil.parseObj(jobParameter); JSONObject params = JSONUtil.parseObj(jobParameter);
String startDateStr = params.getStr("startDate"); String startDateStr = params.getStr("startDate");
...@@ -745,19 +745,19 @@ public class InspectionCustomerTagSyncService { ...@@ -745,19 +745,19 @@ public class InspectionCustomerTagSyncService {
//车衣大类 //车衣大类
String carCoverTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.carCover","4,12,161,14,6,162,127"); String carCoverTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.carCover","4,12,161,14,6,162,127");
//电动踏板 //电动踏板
Integer electricPedalTypeId = OrePropertyConfigurer.getProperty("smartcarlife.customer.tag.goodsType.electricPedal",Integer.class,163); String electricPedalTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.electricPedal","163");
//底盘护板 //底盘护板
String groundGuardBoardTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.groundGuardBoard","129,166"); String groundGuardBoardTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.groundGuardBoard","129,166");
//小桌板 //小桌板
Integer smallTableBoardId = OrePropertyConfigurer.getProperty("smartcarlife.customer.tag.goodsType.smallTableBoard",Integer.class,167); String smallTableBoardTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.smallTableBoard","167");
//脚垫 //脚垫
String footMatTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.footMat","2,125,130"); String footMatTypesStr = OrePropertyConfigurer.getString("smartcarlife.customer.tag.goodsType.footMat","2,125,130");
Set<Integer> solarFilmTypes = parseTypeIds(solarFilmTypesStr); Set<Integer> solarFilmTypes = parseTypeIds(solarFilmTypesStr);
Set<Integer> carCoverTypes = parseTypeIds(carCoverTypesStr); Set<Integer> carCoverTypes = parseTypeIds(carCoverTypesStr);
Set<Integer> electricPedalTypes = parseTypeIds(String.valueOf(electricPedalTypeId)); Set<Integer> electricPedalTypes = parseTypeIds(electricPedalTypesStr);
Set<Integer> groundGuardBoardTypes = parseTypeIds(groundGuardBoardTypesStr); Set<Integer> groundGuardBoardTypes = parseTypeIds(groundGuardBoardTypesStr);
Set<Integer> smallTableBoardTypes = parseTypeIds(String.valueOf(smallTableBoardId)); Set<Integer> smallTableBoardTypes = parseTypeIds(smallTableBoardTypesStr);
Set<Integer> footMatTypes = parseTypeIds(footMatTypesStr); Set<Integer> footMatTypes = parseTypeIds(footMatTypesStr);
Map<Set<Integer>, String> goodsTypeEnumMap = new LinkedHashMap<>(); Map<Set<Integer>, String> goodsTypeEnumMap = new LinkedHashMap<>();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!