广告管理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
@@ -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();