|
|
@@ -131,7 +131,7 @@ public class WarningItemServiceImpl extends ServiceImpl<WarningItemMapper, Warni
|
|
|
@Override
|
|
|
public String generateItemCode(String warningType, String warningLevel) {
|
|
|
catalogRules.validateTypeAndLevel(warningType, warningLevel);
|
|
|
- if (!warningType.matches("[A-Za-z0-9_]{1,32}")) throw new ServiceException("预警类型编码仅支持字母、数字和下划线");
|
|
|
+ //if (!warningType.matches("[A-Za-z0-9_]{1,32}")) throw new ServiceException("预警类型编码仅支持字母、数字和下划线");
|
|
|
String dateStr = new SimpleDateFormat("yyyyMMdd").format(new Date());
|
|
|
String prefix = "WI-" + warningType.toUpperCase(Locale.ROOT) + "-L" + warningLevel + "-";
|
|
|
|