chore(i18n): 国际化日志消息文本

- 将AppMeasureHandler中的钢卷焊缝跟踪信号日志消息翻译为英文
- 将MatmapUtil中的钢卷焊缝跟踪日志消息翻译为英文
- 移除MessageReceiveSchedule类中的@AllArgsConstructor注解
- 更新SegmentTrackerService中的焊缝位置匹配逻辑日志消息为英文
- 将StripPositionService中的设备位置日志消息翻译为英文
This commit is contained in:
2026-01-09 09:31:53 +08:00
parent b36787f01f
commit c179c22f25
5 changed files with 4 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ import com.fizz.business.service.ProStoppageService;
import com.fizz.business.domain.ProStoppage; import com.fizz.business.domain.ProStoppage;
import com.kangaroohy.milo.model.ReadWriteEntity; import com.kangaroohy.milo.model.ReadWriteEntity;
import com.kangaroohy.milo.service.MiloService; import com.kangaroohy.milo.service.MiloService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.BeanUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
@@ -30,7 +29,6 @@ import static com.fizz.business.service.manager.OpcMessageIdsManager.*;
@Slf4j @Slf4j
@Component @Component
@AllArgsConstructor
@ConditionalOnProperty(prefix = "kangaroohy.milo", name = "enabled", havingValue = "true") @ConditionalOnProperty(prefix = "kangaroohy.milo", name = "enabled", havingValue = "true")
public class MessageReceiveSchedule extends BaseSchedule { public class MessageReceiveSchedule extends BaseSchedule {

View File

@@ -75,7 +75,7 @@ public class AppMeasureHandler implements OpcMessageHandler<AppMeasureMessage> {
int count = LOG_COUNTER.incrementAndGet(); int count = LOG_COUNTER.incrementAndGet();
if (count % 10 == 0) { if (count % 10 == 0) {
logDataService.logInfo("WELDER", logDataService.logInfo("WELDER",
"接收到钢卷焊缝跟踪信号:当前焊缝长度 lengthAtWelder{} 当前钢卷信息 coilId{}", "Received the coil weld tracking signal: Current weld length lengthAtWelder:{} Current coil information coilId:{}",
lengthAtWelder, coilId); lengthAtWelder, coilId);
} }

View File

@@ -372,7 +372,7 @@ public class SegmentTrackerService {
if (LogRateLimiter.shouldLog("TRACK:" + coilId, 5000)) { if (LogRateLimiter.shouldLog("TRACK:" + coilId, 5000)) {
log.info("焊缝位置匹配逻辑,当前焊缝长度{}", headPos); log.info("焊缝位置匹配逻辑,当前焊缝长度{}", headPos);
logDataService.logInfo("MATMAP-TRACK", "CoilId=" + coilId + " ..."); logDataService.logInfo("MATMAP-TRACK", "CoilId=" + coilId + "Weld position matching logic, current weld length ="+headPos);
} }
Set<DeviceEnum> prevReached = coilReachedDevices.computeIfAbsent(coilId, Set<DeviceEnum> prevReached = coilReachedDevices.computeIfAbsent(coilId,

View File

@@ -60,7 +60,7 @@ public class StripPositionService {
// 可选:持久化关键信息(只针对关键设备或每隔一段时间) // 可选:持久化关键信息(只针对关键设备或每隔一段时间)
if (device == DeviceEnum.WELDER || device == DeviceEnum.COAT || device == DeviceEnum.TR) { if (device == DeviceEnum.WELDER || device == DeviceEnum.COAT || device == DeviceEnum.TR) {
logDataService.logInfo("POSITION", logDataService.logInfo("POSITION",
String.format("设备:%s | 区域:%s | Base:%.3f | Cel:%.3f | Cxl:%.3f | Result:%.3f", String.format("Equipment:%s | area:%s | Base:%.3f | Cel:%.3f | Cxl:%.3f | Result:%.3f",
device.getDesc(), device.getSectionType(), base, cel, cxl, result)); device.getDesc(), device.getSectionType(), base, cel, cxl, result));
} }

View File

@@ -79,7 +79,7 @@ public class MatmapUtil {
matmap.setPlanId(planId); matmap.setPlanId(planId);
log.info("钢卷焊缝跟踪matId{}位置id{}",matId,index); log.info("钢卷焊缝跟踪matId{}位置id{}",matId,index);
logDataService.logInfo("MATMAP-SAVE","钢卷焊缝跟踪:matId"+matId+"位置id"+index,"planId="+planId); logDataService.logInfo("MATMAP-SAVE","Coil weld tracking: matId"+matId+", Location ID:"+index,"planId="+planId);
redisCacheManager.setMatmap(index, matmap); redisCacheManager.setMatmap(index, matmap);
} }