广告管理service、controller单元测试完善

This commit is contained in:
gaoqr
2025-10-28 15:49:51 +08:00
parent 8d6ce2a915
commit a091b7d574
12 changed files with 602 additions and 298 deletions
@@ -52,20 +52,4 @@ public class RabbitMqConstants {
* 生产单导入死信路由键
*/
public static final String ORDER_IMPORT_DEAD_LETTER_ROUTING_KEY = "order_import_dead_letter_routing_key";
/**
* 广告状态修改 延迟队列
*/
public static final String SYSTEM_ADVERTISEMENT_UPDATE_DELAYED_QUEUE = "system_advertisement_update_delayed_queue";
/**
* 广告状态修改 延迟交换机
*/
public static final String SYSTEM_ADVERTISEMENT_UPDATE_DELAYED_EXCHANGE = "system_advertisement_update_delayed_exchange";
/**
* 广告状态修改 延迟路由键
*/
public static final String SYSTEM_ADVERTISEMENT_UPDATE_DELAYED_ROUTING_KEY = "system_advertisement_update_delayed_routing_key";
}
@@ -50,7 +50,7 @@ public class RandomUtils {
}
// 如果是 type、status 结尾的字段,返回 tinyint 范围
if (CharSequenceUtil.endWithAnyIgnoreCase(attributeMetadata.getAttributeName(),
"type", "status", "category", "scope", "result")) {
"type", "status", "category", "scope", "result", "sort")) {
return RandomUtil.randomInt(0, TINYINT_MAX + 1);
}
return RandomUtil.randomInt();