fix:1.修复上一次更新导致国际化英文丢失问题。
This commit is contained in:
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.api.setting.api.SettingAPI;
|
||||
import org.nl.config.language.LangProcess;
|
||||
import org.nl.enums.YesOrNoEnum;
|
||||
import org.nl.exception.BadRequestException;
|
||||
import org.nl.setting.modular.entity.Setting;
|
||||
@@ -29,7 +30,7 @@ public class SettingAPIProvider implements SettingAPI {
|
||||
public JSONObject querySettingParamByCode(String setting_code) {
|
||||
if (StrUtil.isBlank(setting_code)){
|
||||
log.info("设置编号不能为空");
|
||||
return null;
|
||||
throw new BadRequestException(LangProcess.msg("setting_code_empty"));
|
||||
}
|
||||
JSONObject result = new JSONObject();
|
||||
result.put("data",settingService.getOne(new LambdaQueryWrapper<>(Setting.class).eq(Setting::getSetting_code,setting_code)));
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
starting_point = Starting Point
|
||||
end_point = End Point
|
||||
successful = Operation Successful!
|
||||
failed = Operation Failed!
|
||||
latest = Already Latest!
|
||||
param_is_null = Parameter is null!
|
||||
password_error = Account or password error
|
||||
|
||||
# Schedule related
|
||||
schedule_speed_param_empty = Schedule delivery speed parameter cannot be empty
|
||||
schedule_charge_param_empty = Schedule charging parameter cannot be empty
|
||||
schedule_wifi_param_empty = Schedule wifi parameter cannot be empty
|
||||
schedule_wifi_param_error = Schedule network wifi operation failed
|
||||
schedule_task_code_empty = Task code cannot be empty
|
||||
schedule_destinations_empty = Destination cannot be empty
|
||||
schedule_operation_type_empty = Task operation type cannot be empty
|
||||
schedule_vehicle_number_empty = Vehicle number cannot be empty
|
||||
schedule_volume_empty = Volume cannot be empty
|
||||
schedule_report_location_empty = Report location cannot be empty
|
||||
schedule_report_vehicle_empty = Report vehicle number cannot be empty
|
||||
schedule_report_task_code_empty = Report task code cannot be empty
|
||||
schedule_report_stage_not_found = Report stage not found
|
||||
schedule_report_type_not_found = Report type not found
|
||||
schedule_operation_not_confirmed = Operation not confirmed
|
||||
|
||||
# Setting related
|
||||
setting_code_empty = Setting code cannot be empty
|
||||
setting_code_not_found = Setting code not found
|
||||
setting_speed_value_empty = Modify delivery speed, setting value cannot be empty
|
||||
setting_speed_failed = Failed to set schedule delivery speed
|
||||
setting_auto_charge_value_empty = Modify auto charge, setting value and enable value cannot be empty
|
||||
setting_free_charge_failed = Failed to set schedule free charge threshold
|
||||
setting_charge_call_value_empty = Modify charge call, setting value and enable value cannot be empty
|
||||
setting_usable_task_failed = Failed to set schedule usable task threshold
|
||||
setting_update_failed = Failed to update setting: {0}
|
||||
setting_volume_failed = Failed to update volume
|
||||
|
||||
# Task related
|
||||
task_type_not_exist = Task type does not exist
|
||||
task_schedule_create_failed = Failed to create schedule task
|
||||
task_create_failed = Failed to create task: {0}
|
||||
task_code_empty = Task code cannot be empty
|
||||
task_cancel_failed = Failed to cancel task: {0}
|
||||
task_pause_schedule_failed = Failed to pause schedule task
|
||||
task_pause_failed = Failed to pause task: {0}
|
||||
task_resume_schedule_failed = Failed to resume schedule task
|
||||
task_resume_failed = Failed to resume task: {0}
|
||||
task_station_code_empty = Station code cannot be empty
|
||||
task_report_not_arrived = Not reported arrival, cannot confirm arrival
|
||||
task_confirm_arrival_failed = Failed to confirm task arrival
|
||||
task_next_station_failed = Failed to go to next station: {0}
|
||||
create_cruise_task_error = Task type is not cruise type
|
||||
|
||||
# Anomaly related
|
||||
error_info = Error Information
|
||||
error_handling_info = Error Handling Information
|
||||
anomaly_file_not_selected = Please select file to upload
|
||||
anomaly_file_name_empty = File name is empty
|
||||
anomaly_file_format_error = Only ZIP format is supported
|
||||
anomaly_file_parse_failed = Failed to parse file: {0}
|
||||
anomaly_update_failed = Failed to update anomaly information
|
||||
|
||||
# File related
|
||||
file_size_exceed = File size exceeds limit
|
||||
|
||||
# Department related
|
||||
dept_parent_cannot_self = Parent cannot be self
|
||||
dept_has_users = Department has bound users, please unbind users first
|
||||
|
||||
# Dictionary related
|
||||
dict_code_exists = Dictionary [{0}] already exists
|
||||
dict_not_exist = Dictionary does not exist
|
||||
dict_label_exists = Label [{0}] already exists
|
||||
dict_no_permission = No permission to delete data, operation failed!
|
||||
|
||||
# Menu related
|
||||
menu_url_must_http = External link must start with http:// or https://
|
||||
menu_parent_cannot_self = Parent cannot be self or its subordinate
|
||||
|
||||
# Notice related
|
||||
notice_not_exist = This message does not exist!
|
||||
notice_send_failed = Failed to send message
|
||||
|
||||
# Parameter related
|
||||
param_code_not_match = Code cannot be the same
|
||||
param_code_exists = Parameter [{0}] already exists
|
||||
|
||||
# Role related
|
||||
role_name_empty = Role name cannot be empty!
|
||||
role_name_exists = Role name {0} already exists!
|
||||
|
||||
# User related
|
||||
user_code_not_exist = Verification code does not exist or has expired
|
||||
user_code_error = Verification code error
|
||||
user_account_password_error = Account or password error
|
||||
user_account_not_active = Account not activated
|
||||
user_old_password_error = Failed to modify, old password error
|
||||
user_password_not_match = Two passwords do not match
|
||||
user_password_error = Password error
|
||||
|
||||
# QR Code related
|
||||
qrcode_data_empty = QR code data cannot be empty
|
||||
qrcode_room_number_empty = QR code room number cannot be empty
|
||||
qrcode_generate_failed = Failed to generate QR code
|
||||
qrcode_room_exists = QR code already exists for this room, cannot generate again
|
||||
qrcode_room_exists_cannot_update = QR code already exists for this room, cannot update
|
||||
qrcode_update_failed = Failed to update QR code information
|
||||
qrcode_id_empty = QR code ID cannot be empty
|
||||
qrcode_delete_file_failed = Failed to delete QR code file
|
||||
qrcode_delete_failed = Failed to delete QR code
|
||||
qrcode_station_code_empty = Station code cannot be empty
|
||||
qrcode_create_failed_mode = In cruise mode, cannot create task
|
||||
qrcode_create_failed_exists_task = Task already exists for this destination
|
||||
|
||||
# Security related
|
||||
security_password_error = Password error
|
||||
|
||||
# System related
|
||||
system_get_menu_failed = Failed to get system menu
|
||||
|
||||
# Common
|
||||
unsupported_format = Unsupported compression format: {0}
|
||||
|
||||
# Validation related - Bean Validation annotations
|
||||
validation_task_type_empty = Task type cannot be empty
|
||||
validation_destinations_empty = Destination cannot be empty
|
||||
validation_password_empty = Password cannot be empty
|
||||
validation_location_empty = Location cannot be empty
|
||||
validation_vehicle_number_empty = Vehicle number cannot be empty
|
||||
validation_qrcode_id_empty = QR code ID cannot be empty
|
||||
validation_old_room_empty = Old room number cannot be empty
|
||||
validation_new_room_empty = New room number cannot be empty
|
||||
validation_qrcode_data_empty = QR code data cannot be empty
|
||||
validation_qrcode_width_empty = QR code width cannot be empty
|
||||
validation_qrcode_height_empty = QR code height cannot be empty
|
||||
validation_room_empty = Room number cannot be empty
|
||||
validation_page_num_empty = Page number cannot be empty
|
||||
validation_page_size_empty = Page size cannot be empty
|
||||
validation_schedule_task_code_empty = Schedule task code cannot be empty
|
||||
validation_schedule_one_click_type_empty = Schedule one-click task type cannot be empty
|
||||
validation_speed_empty = Speed cannot be empty
|
||||
validation_role_name_empty = Role name cannot be empty
|
||||
validation_dept_name_empty = Department name cannot be empty
|
||||
validation_dept_is_used_empty = Department status cannot be empty
|
||||
|
||||
Reference in New Issue
Block a user