Bläddra i källkod

添加新管理端后台服务多语言资源文件处理

deng.yinping 8 månader sedan
förälder
incheckning
5b90ad8a4f

+ 22 - 7
main.py

@@ -2,13 +2,13 @@
 Author: deng.yinping deng.yinping@muchinfo.cn
 Date: 2024-12-06 15:02:12
 LastEditors: deng.yinping deng.yinping@muchinfo.cn
-LastEditTime: 2025-03-07 16:13:23
+LastEditTime: 2025-03-07 16:58:12
 FilePath: \MTP20_i18n_Tool\main.py
 Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 '''
 
-from src.common import CommonUti
 from src.tools import Tools
+from src.service_tools import Service_Tools
 
 output_folder_pc="output"
 json_folder_pc="C:/Workspaces/Code_Git/MTP20_WEB_GLOBAL/public/locales/"
@@ -17,10 +17,14 @@ oem_json_folder_pc = "C:/Workspaces/Code_Git/MTP20_WEB_GLOBAL/oem/"
 output_folder_manage="output_manage"
 json_folder_manage="C:/Workspaces/Code_Git/MTP2.0_NEWMANAGE_WEB\public/locales/"
 oem_json_folder_manage = "C:/Workspaces/Code_Git/MTP2.0_NEWMANAGE_WEB/oem/"
+
+output_folder_manage_service="output_manage_service"
+json_folder_manage_service="C:/Workspaces/Code_Git/MTP2.0_NEWMANAGE_SERVICE/mtp3-century/src/main/resources/"
+oem_json_folder_manage_service = ""
       
 if __name__ == "__main__":
     while True:    
-        platform = input("请选择平台 (pc, manage, exit): ")
+        platform = input("请选择平台 (pc, manage, service, exit): ")
         
         if platform == "exit":
             break
@@ -35,17 +39,28 @@ if __name__ == "__main__":
                 Tools.generate_excel(oem, inc_file, output_folder_pc, json_folder_pc, oem_json_folder_pc)
             elif type == "json":
                 # 生成交易前端json及增量
-                Tools.generate_json(oem, output_folder_pc, json_folder_pc, oem_json_folder_pc)
+                Tools.generate_json_files(oem, output_folder_pc, json_folder_pc, oem_json_folder_pc)
         elif platform == "manage":
             oem = "newmanage"
             inc_file = "20250306_newmanage_inc"
             print("inc_file:" + inc_file)
             if type == "excel":
-               # 生成新管理后台excel及增量
+               # 生成新管理端前端excel及增量
                Tools.generate_excel(oem, inc_file, output_folder_manage, json_folder_manage, oem_json_folder_manage)
             elif type == "json":
-                # 生成新管理后台json
-                Tools.generate_json(oem, output_folder_manage, json_folder_manage, oem_json_folder_manage)
+                # 生成新管理端前端json
+                Tools.generate_json_files(oem, output_folder_manage, json_folder_manage, oem_json_folder_manage)
+        elif platform == "service":
+            # 新管理端后台多语言
+            oem = "newmanage_service"
+            inc_file = "20250306_newmanage_service_inc"
+            print("inc_file:" + inc_file)
+            if type == "excel":
+               # 生成新管理端服务excel及增量
+               Service_Tools.generate_excel(oem, inc_file, output_folder_manage_service, json_folder_manage_service, oem_json_folder_manage_service)
+            elif type == "json":
+                # 生成新管理端服务properties
+                Service_Tools.generate_properties_files(oem, output_folder_manage_service, json_folder_manage_service, oem_json_folder_manage_service)
         else:
             print("输入错误,请重新输入...")
         

BIN
output/excels/20241024_tss.xlsx


BIN
output/excels/20241027_tss.xlsx


BIN
output/excels/20241122_tss_inc.xlsx


BIN
output_manage_service/excels/20250306_newmanage_service_inc.xlsx


BIN
output_manage_service/excels/newmanage_service.xlsx


BIN
output_manage_service/excels/newmanage_service_inc.xlsx


+ 135 - 0
output_manage_service/resources/message_en.properties

@@ -0,0 +1,135 @@
+message_code_system001=Operation successful
+message_code_system003=Modified successfully
+message_code_system004=Signed successfully
+message_code_system005=Termination successful
+message_code_system006=Successfully obtained verification code
+message_code_system007=Login succeeded
+message_code_system008=Successful withdrawal of funds
+message_code_system009=Deposit successful
+message_code_system010=User authentication passed
+message_code_system011=Clearance and recovery operation successful
+message_code_system012=Payment for goods successfully made
+message_code_system013=Pre sale lottery successful
+message_code_system014=Pre sale completed successfully
+message_code_system015=Pre sale application successful
+message_code_system016=The performance confirmation information has been sent and is being processed. Please check again later
+message_code_system017=Application successful
+message_code_system018=The contact information for performance has been sent. Please check again later
+message_code_system019=Execution succeeded
+message_code_system020=Batch import of position transfer successful
+message_code_system021=Submitted successfully, automatic transfer will be performed after market closure
+message_code_system022=The data has been reviewed or is currently being processed
+message_code_system023=No trader fund account found
+message_code_system024=Review Rejected
+message_code_system025=Non trading account cannot be closed for review
+message_code_system026=The fund account has not been terminated and cannot be closed
+message_code_system027=There is still {0} chance of error left, Account or password mismatch reaches {1} times, Login account will be locked for {2} minute {3}
+message_code_system028=This document is already on the blacklist!
+message_code_system029=The IP address cannot be a null value!
+message_code_system030=IP address duplication!
+message_error_code_system001=Token invalid, please log in again!
+message_error_code_system002=operation failed
+message_error_code_system003=The user does not have operational permissions
+message_error_code_system004=File upload failed, please contact the management personnel for handling!
+message_error_code_system005=Your application has been submitted, please check the results later。
+message_error_code_system006=Request timed out, please try again later
+message_error_code_system007=System maintenance in progress, please try again later
+message_error_code_system008=System exception, please contact the administrator
+message_error_code_system009=Authentication service is abnormal
+message_error_code_system010=The user account does not exist
+message_error_code_system011=Account or password error
+message_error_code_system012=The user account has been locked
+message_error_code_system013=The user password has expired
+message_error_code_system014=User account disabled
+message_error_code_system015=There are unprocessed breach requests that cannot be initiated repeatedly
+message_error_code_system016=The steps of the performance plan have been changed and an extension cannot be applied for
+message_error_code_system017=Deposit transfer market, please select the issuer of the product【{0}】
+message_error_code_system018=Please execute when the system completes processing successfully at the end of the day
+login_error_code_001=Account or password error
+login_error_code_002=Unauthorized access is not allowed! Please contact the administrator to handle it!
+login_error_code_003=Login locked!
+login_error_code_004=The account has been deactivated, please contact the administrator
+login_error_code_005=Login account already exists
+login_error_code_006=The user does not exist, please contact the management personnel for handling
+login_error_code_007=Do not allow disabling the current login account
+login_error_code_008=Cannot be the same as the old password
+login_error_code_009=Old password incorrect
+login_error_code_010=Character information is incorrect
+role_error_code_001=The role name already exists
+market_run_message_001=Forced offline sent
+organ_error_code_001=The role has been assigned and cannot be unregistered
+organ_error_code_002=There are subordinate institutions that cannot be deregistered
+organ_error_code_003=There are subordinate investors and cannot be cancelled
+organ_error_code_004=There are remaining funds that cannot be cancelled
+organ_error_code_005=There are remaining positions that cannot be cancelled
+organ_error_code_006=The ID number already has a normal record and cannot be restored
+organ_error_code_007=The phone number already has a normal record and cannot be restored
+organ_error_code_008=The higher-level organization is in an abnormal state and cannot be restored
+organ_error_code_009=The member does not have a broker role and cannot be restored
+organ_error_code_010=Duplicate code or institutional code
+organ_error_code_011=The ID number already exists
+organ_error_code_012=The ID number is already on the blacklist and cannot be used to open an account
+organ_error_code_013=The name already exists
+organ_error_code_014=Duplicate administrator login accounts
+organ_error_code_015=Addition failed, please contact the administrator
+organ_error_code_016=The phone number already exists
+organ_error_code_017=The company name already exists
+organ_error_code_018=The institution information has been changed, please refresh the data
+organ_error_code_019=The ID number or mobile phone number already exists
+organ_error_code_020=The reason for rejection cannot exceed 80 words
+organ_error_code_021=The investor's information has been changed, please refresh the data
+organ_error_code_022=Non pending review status, unable to withdraw
+organ_error_code_023=The member is in an abnormal state and cannot be approved for review
+organ_error_code_024=The affiliated institution is in an abnormal state and cannot be approved for review
+organ_error_code_025=The broker is in an abnormal state and cannot be approved for review
+organ_error_code_026=There are subordinate broker members, unable to delete
+organ_error_code_027=There is a subordinate warehouse that cannot be deleted
+organ_error_code_028=Market making member has signed up and cannot be deleted
+organ_error_code_029=Market making members are default quote providers and cannot be deleted
+organ_error_code_030=The market making member has configured a secondary counterparty relationship and cannot be deleted
+organ_error_code_031=Market making member referenced by over-the-counter options market making and cannot be deleted
+organ_error_code_032=There is a point type that cannot be deleted
+organ_error_code_033=The quotation agency has been cited and cannot be deleted
+organ_error_code_034=Superiors cannot do it for themselves
+organ_error_code_035=The ratio value cannot be greater than 100
+profit_shar_error_code_001=Please delete the profit sharing configuration first
+profit_shar_error_code_002=Please delete the group members first
+profit_shar_error_code_003=This expense type already has a profit sharing configuration
+query_error_code_001=Please select market inquiry
+query_error_code_002=Please select the start date for historical queries
+query_error_code_003=Please select the end date for historical queries
+query_error_code_004=Do not have this permission
+query_error_code_005=No data available for export
+query_error_code_006=Export failed, please contact the administrator!
+query_error_code_007=Please enter the fund account
+query_error_code_008=Market error or status not in open state
+query_error_code_009=parameter error
+query_error_code_010=The import file is empty
+report_error_code_001=Starting trading day {0},End trading day {1} Error in executing report re statistics
+settlement_message_001=Confirm payment completion: {0} Successful entry, {1} Article failed
+settlement_message_002=Data has changed, please refresh and try again
+pwd_error_code_001=Please fill in the old password
+pwd_error_code_002=Please fill in a new password
+pwd_error_code_003=Please fill in the new password for confirmation
+pwd_error_code_004=Two passwords are inconsistent
+pwd_error_code_005=Old password incorrect
+amount_error_code_001=The amount is 0, no processing will be done!
+traAcc_error_code_001=Duplicate login account, please click on 'Survive Again' and submit again!
+investor_error_code_001=No funds account found
+investor_error_code_002=Non investor accounts cannot be closed for review
+investor_error_code_003=The fund account cannot be closed as it has not been terminated
+investor_error_code_004=The account contains relevant information such as funds and positions, and cannot be cancelled
+investor_error_code_005=The fund account request has not been responded to.
+investor_error_code_006=Duplicate group names.
+investor_error_code_007=Please select investors.
+investor_error_code_008={0}Assigned groups.
+investor_error_code_009=Please remove all investors under this group first.
+investor_error_code_010=Please delete the personalized settings of this group first.
+investor_error_code_011=The ratio value cannot exceed 10000
+warehouse_error_code_01=Warehouse code up to 10 digits
+warehouse_error_code_02=Duplicate warehouse code
+warehouse_error_code_03=Duplicate warehouse name
+warehouse_error_code_04=Data error: Missing institutional data
+warehouse_error_code_05=This warehouse is already associated with a spot variety and cannot be cancelled
+message_notice_error_code_01=Please select at least one member!
+message_notice_error_code_02=Member not found!!!

+ 135 - 0
output_manage_service/resources/message_th.properties

@@ -0,0 +1,135 @@
+message_code_system001=ความสำเร็จในการดำเนินงาน
+message_code_system003=แก้ไขสำเร็จ
+message_code_system004=ความสำเร็จในการลงทะเบียน
+message_code_system005=ความสำเร็จในการยกเลิกสัญญา
+message_code_system006=รับ CAPTCHA สำเร็จ
+message_code_system007=เข้าสู่ระบบสำเร็จ
+message_code_system008=ความสำเร็จในการออกคิม
+message_code_system009=ความสำเร็จในการลงทุน
+message_code_system010=การรับรองผู้ใช้ ผ่าน
+message_code_system011=การดำเนินการกู้คืนตำแหน่งตัดประสบความสำเร็จ
+message_code_system012=ชำระเงินค่าสินค้าสำเร็จ
+message_code_system013=ประสบความสำเร็จในการเขย่าตัวเลขก่อนการขาย
+message_code_system014=ความสำเร็จในการขายพรีเซล
+message_code_system015=สมัครล่วงหน้าสำเร็จ
+message_code_system016=ข้อมูลการยืนยันการใช้สิทธิได้ถูกส่งแล้วและกำลังดำเนินการอยู่ โปรดตรวจสอบอีกครั้งในภายหลัง
+message_code_system017=สมัครสำเร็จ
+message_code_system018=ข้อมูลการติดต่อการปฏิบัติงานได้ถูกส่งไปแล้ว กรุณาสอบถามอีกครั้งในภายหลัง
+message_code_system019=ความสำเร็จในการดำเนินการ
+message_code_system020=การนำเข้าแบทช์การเปิดสถานะสำเร็จแล้ว
+message_code_system021=ส่งเรียบร้อยแล้วโอนเงินโดยอัตโนมัติหลังจากปิดตลาด
+message_code_system022=ข้อมูลนี้ได้รับการตรวจสอบแล้วเสร็จหรือประมวลผล
+message_code_system023=ไม่พบบัญชีเงินของผู้ค้า
+message_code_system024=การปฏิเสธการตรวจสอบ
+message_code_system025=บัญชีที่ไม่ใช่ตัวแทนจำหน่ายและไม่สามารถตรวจสอบได้โดยผู้ขาย
+message_code_system026=บัญชีเงินไม่ถูกยกเลิก ขายไม่ออก
+message_code_system027=เหลือโอกาสผิดพลาด {0} ครั้ง หมายเลขบัญชีหรือรหัสผ่านไม่ตรงกันถึง {1} ครั้ง หมายเลขบัญชีล็อกอินจะถูกล็อกไว้ {2} นาที {3}
+message_code_system028=บัญชีดำมีเอกสารนี้อยู่แล้ว!
+message_code_system029=ที่อยู่ IP ต้องไม่มีค่าว่าง!
+message_code_system030=ที่อยู่ IP ซ้ำกัน!
+message_error_code_system001=โทเค็นล้มเหลวโปรดเข้าสู่ระบบอีกครั้ง!
+message_error_code_system002=การดำเนินการล้มเหลว!
+message_error_code_system003=ไม่มีสิทธิ์ในการดำเนินงานของผู้ใช้รายนี้!
+message_error_code_system004=การอัพโหลดไฟล์ล้มเหลว กรุณาติดต่อเจ้าหน้าที่เพื่อดำเนินการ!
+message_error_code_system005=ส่งใบสมัครของคุณแล้ว โปรดตรวจสอบผลลัพธ์ในภายหลัง。
+message_error_code_system006=ขอหมดเวลาโปรดลองอีกครั้งในภายหลัง
+message_error_code_system007=ในระหว่างการบำรุงรักษาระบบ โปรดลองอีกครั้งในภายหลัง
+message_error_code_system008=ระบบผิดปกติ ติดต่อผู้ดูแลระบบ
+message_error_code_system009=บริการรับรองไม่ถูกต้อง
+message_error_code_system010=ไม่มีบัญชีผู้ใช้
+message_error_code_system011=บัญชีหรือรหัสผ่านไม่ถูกต้อง
+message_error_code_system012=บัญชีผู้ใช้ถูกล็อค
+message_error_code_system013=รหัสผ่านผู้ใช้ล้มเหลว
+message_error_code_system014=บัญชีผู้ใช้ถูกปิดใช้งาน
+message_error_code_system015=มีการยื่นขอผิดนัดที่ยังไม่ได้ดำเนินการและไม่สามารถเริ่มต้นซ้ำได้
+message_error_code_system016=ขั้นตอนการใช้สิทธิมีการเปลี่ยนแปลงและไม่สามารถขอขยายเวลาได้
+message_error_code_system017=ตลาดโอนเงินมัดจำ โปรดเลือกผู้ออกสินค้า【{0}】
+message_error_code_system018=โปรดดำเนินการเมื่อการประมวลผลสิ้นสุดวันที่ระบบสำเร็จ
+login_error_code_001=บัญชีหรือรหัสผ่านไม่ถูกต้อง
+login_error_code_002=ไม่สามารถเข้าถึงได้โดยไม่ได้รับอนุญาต! กรุณาติดต่อผู้ดูแลระบบเพื่อจัดการ!
+login_error_code_003=ล็อกอิน!
+login_error_code_004=บัญชีถูกปิดใช้งานโปรดติดต่อผู้ดูแลระบบ
+login_error_code_005=หมายเลขบัญชีล็อกอินมีอยู่แล้ว
+login_error_code_006=ผู้ใช้รายนี้ไม่มีอยู่จริงโปรดติดต่อผู้ดูแลระบบเพื่อจัดการ
+login_error_code_007=ไม่อนุญาตให้ปิดการใช้งานบัญชีที่ล็อกอินปัจจุบัน
+login_error_code_008=ไม่สามารถใช้รหัสผ่านเดิมได้
+login_error_code_009=รหัสผ่านเก่าผิดพลาด
+login_error_code_010=ข้อมูลตัวละครผิดพลาด
+role_error_code_001=ชื่อตัวละครมีอยู่แล้ว
+market_run_message_001=บังคับให้ออฟไลน์ถูกส่งแล้ว
+organ_error_code_001=บทบาทที่ได้รับมอบหมายและไม่สามารถออกจากระบบได้
+organ_error_code_002=มีหน่วยงานระดับล่างไม่สามารถออกจากระบบได้
+organ_error_code_003=มีนักลงทุนระดับล่างไม่สามารถออกจากระบบได้
+organ_error_code_004=มีเงินเหลือและไม่สามารถออกจากระบบได้
+organ_error_code_005=มีสถานะที่เหลือและไม่สามารถออกจากระบบได้
+organ_error_code_006=หมายเลขเอกสารได้รับการบันทึกตามปกติและไม่สามารถกู้คืนได้
+organ_error_code_007=หมายเลขโทรศัพท์มือถือมีการบันทึกปกติและไม่สามารถกู้คืนได้
+organ_error_code_008=หน่วยงานที่เหนือกว่าอยู่ในสภาพที่ไม่ปกติและไม่สามารถกู้คืนได้
+organ_error_code_009=สมาชิกที่สังกัดไม่มีบทบาทเป็นนายหน้าและไม่สามารถกู้คืนได้
+organ_error_code_010=รหัสหรือรหัสสถาบันซ้ำ
+organ_error_code_011=หมายเลขเอกสารมีอยู่แล้ว
+organ_error_code_012=หมายเลขเอกสารอยู่ในบัญชีดำและไม่สามารถเปิดบัญชีได้
+organ_error_code_013=มีชื่ออยู่แล้ว
+organ_error_code_014=ผู้ดูแลระบบ เข้าสู่ระบบ หมายเลขบัญชี ทำซ้ำ
+organ_error_code_015=เพิ่มล้มเหลว ติดต่อผู้ดูแลระบบ
+organ_error_code_016=มีหมายเลขโทรศัพท์มือถืออยู่แล้ว
+organ_error_code_017=ชื่อธุรกิจมีอยู่แล้ว
+organ_error_code_018=ข้อมูลของหน่วยงานมีการเปลี่ยนแปลง กรุณารีเฟรชข้อมูล
+organ_error_code_019=มีหมายเลขเอกสารหรือหมายเลขโทรศัพท์มือถืออยู่แล้ว
+organ_error_code_020=ตรวจสอบปฏิเสธเหตุผล ไม่เกิน 80 คำ
+organ_error_code_021=ข้อมูลนักลงทุนมีการเปลี่ยนแปลงโปรดรีเฟรชข้อมูล
+organ_error_code_022=ไม่มีสถานะรอการตรวจสอบและไม่สามารถถอนได้
+organ_error_code_023=สมาชิกที่สังกัดอยู่ในสถานะไม่ปกติและไม่สามารถตรวจสอบผ่าน
+organ_error_code_024=หน่วยงานที่สังกัดอยู่ในสถานะไม่ปกติไม่สามารถตรวจสอบผ่าน
+organ_error_code_025=โบรกเกอร์ที่อยู่ในสถานะไม่ปกติและไม่สามารถตรวจสอบได้ ผ่าน
+organ_error_code_026=มีสมาชิกเป็นนายหน้าซื้อขายหลักทรัพย์ระดับล่างและไม่สามารถลบได้
+organ_error_code_027=มีคลังสินค้าระดับล่างและไม่สามารถลบออกได้
+organ_error_code_028=สมาชิกผู้ดูแลสภาพคล่องได้ลงนามและไม่สามารถลบได้
+organ_error_code_029=สมาชิกผู้ดูแลสภาพคล่องเป็นผู้อ้างอิงเริ่มต้นและไม่สามารถลบได้
+organ_error_code_030=สมาชิกผู้ดูแลสภาพคล่องได้กำหนดค่าความสัมพันธ์ของคู่แข่งระดับที่สองและไม่สามารถลบได้
+organ_error_code_031=สมาชิก Marketmaker ถูกอ้างอิงโดย OTC Options Marketmaker และไม่สามารถลบได้
+organ_error_code_032=มีประเภทของคะแนนและไม่สามารถลบออกได้
+organ_error_code_033=อ้างสถาบันไม่สามารถลบได้
+organ_error_code_034=ผู้บังคับบัญชาไม่สามารถทำเพื่อตนเองได้
+organ_error_code_035=ค่าอัตราส่วนต้องไม่เกิน 100
+profit_shar_error_code_001=กรุณาลบการกำหนดค่าการแบ่งงานก่อน
+profit_shar_error_code_002=กรุณาลบคนกลุ่มออกก่อน
+profit_shar_error_code_003=มีการกำหนดค่าการแบ่งประเภทของค่าธรรมเนียมนี้อยู่แล้ว
+query_error_code_001=กรุณาเลือกสอบถามข้อมูลตลาด
+query_error_code_002=สอบถามประวัติ กรุณาเลือกวันที่เริ่มต้น
+query_error_code_003=สอบถามประวัติ กรุณาเลือกวันสิ้นสุด
+query_error_code_004=ไม่มีสิทธิ์นี้
+query_error_code_005=ไม่มีข้อมูลที่จะส่งออก
+query_error_code_006=ส่งออกล้มเหลว, ติดต่อผู้ดูแลระบบ!
+query_error_code_007=กรุณากรอกบัญชีเงินทุน
+query_error_code_008=ข้อผิดพลาดของตลาดหรือสถานะไม่เปิดตลาด
+query_error_code_009=พารามิเตอร์ผิดพลาด
+query_error_code_010=แฟ้มนำเข้าว่างเปล่า
+report_error_code_001=วันเริ่มต้นการซื้อขาย{0},สิ้นสุดวันซื้อขาย {1} เกิดข้อผิดพลาดในการนับรายงานการดำเนินการอีกครั้ง
+settlement_message_001=ยืนยันการชำระเงินเสร็จสิ้น: {0} ความสำเร็จของบาร์, {1} แถบล้มเหลว
+settlement_message_002=ข้อมูลมีการเปลี่ยนแปลงโปรดรีเฟรชลองอีกครั้ง
+pwd_error_code_001=กรุณากรอกรหัสผ่านเก่า
+pwd_error_code_002=กรุณากรอกรหัสผ่านใหม่
+pwd_error_code_003=กรุณากรอกรหัสผ่านใหม่เพื่อยืนยัน
+pwd_error_code_004=รหัสผ่านไม่สอดคล้องกันสองครั้ง
+pwd_error_code_005=รหัสผ่านเก่าผิดพลาด
+amount_error_code_001=จำนวนเงินเป็น 0 ไม่มีการประมวลผล!
+traAcc_error_code_001=เข้าสู่ระบบบัญชีซ้ำ, กรุณาแตะ Resurve และส่งอีกครั้ง!
+investor_error_code_001=ไม่พบบัญชีเงิน
+investor_error_code_002=บัญชีที่ไม่ใช่นักลงทุนและไม่สามารถตรวจสอบได้โดยผู้ขาย
+investor_error_code_003=บัญชีเงินไม่ถูกยกเลิก ขายไม่ออก
+investor_error_code_004=บัญชีมีข้อมูลที่เกี่ยวข้อง เช่น เงินทุน การเปิดโพซิชั่น และไม่สามารถออกจากระบบได้
+investor_error_code_005=ไม่มีการตอบสนองต่อการร้องขอบัญชีเงินทุน.
+investor_error_code_006=ชื่อกลุ่มซ้ำ.
+investor_error_code_007=กรุณาเลือกนักลงทุน.
+investor_error_code_008={0}การจัดกลุ่มที่ได้รับมอบหมาย.
+investor_error_code_009=โปรดลบนักลงทุนทั้งหมดภายใต้กลุ่มนี้ก่อน.
+investor_error_code_010=โปรดลบการตั้งค่าส่วนบุคคลของกลุ่มนั้นก่อน.
+investor_error_code_011=ค่าอัตราส่วนต้องไม่เกิน 10,000
+warehouse_error_code_01=รหัสคลังสินค้า สูงสุด 10 หลัก
+warehouse_error_code_02=รหัสคลังสินค้าซ้ำ
+warehouse_error_code_03=ชื่อคลังสินค้าซ้ำกัน
+warehouse_error_code_04=ข้อผิดพลาดของข้อมูล: ข้อมูลสถาบันหายไป
+warehouse_error_code_05=คลังสินค้านี้มีความสัมพันธ์กับพันธุ์สปอตและไม่สามารถออกจากระบบได้
+message_notice_error_code_01=กรุณาเลือกสมาชิกอย่างน้อยหนึ่งคน!
+message_notice_error_code_02=ไม่พบสมาชิก!!!

+ 135 - 0
output_manage_service/resources/message_vi.properties

@@ -0,0 +1,135 @@
+message_code_system001=Hoạt động thành công
+message_code_system003=Sửa đổi thành công
+message_code_system004=Đăng ký thành công
+message_code_system005=Hủy hợp đồng thành công
+message_code_system006=Nhận CAPTCHA thành công
+message_code_system007=Đăng nhập thành công
+message_code_system008=Rút tiền thành công
+message_code_system009=Nhập tiền thành công
+message_code_system010=Chứng nhận người dùng thông qua
+message_code_system011=Hoạt động khôi phục kho thành công
+message_code_system012=Thanh toán tiền hàng thành công
+message_code_system013=Bán trước thành công
+message_code_system014=Pre-sale thành công
+message_code_system015=Ứng dụng Pre-sale thành công
+message_code_system016=Xác nhận hiệu suất Thông tin đã được gửi và xử lý, vui lòng kiểm tra lại sau
+message_code_system017=Ứng dụng thành công
+message_code_system018=Thông tin liên hệ thực hiện đã được gửi, vui lòng kiểm tra lại sau
+message_code_system019=Thực hiện thành công
+message_code_system020=Nhập khẩu hàng loạt Giữ vị trí sang tên thành công
+message_code_system021=Gửi thành công, chuyển tự động sau khi đóng cửa
+message_code_system022=Dữ liệu này đã được xem xét hoặc xử lý.
+message_code_system023=Không tìm thấy tài khoản tiền của nhà giao dịch
+message_code_system024=Kiểm toán từ chối
+message_code_system025=Tài khoản không phải là đại lý, không thể được kiểm toán bởi người bán
+message_code_system026=Tài khoản chưa bị hủy, không thể bán
+message_code_system027=Còn {0} cơ hội lỗi, tài khoản hoặc mật khẩu không khớp đạt {1} lần, tài khoản đăng nhập sẽ bị khóa {2} phút {3}
+message_code_system028=Danh sách đen đã có giấy tờ này!
+message_code_system029=Địa chỉ IP không thể là null!
+message_code_system030=Địa chỉ IP lặp lại!
+message_error_code_system001=Mã thông báo hết hiệu lực, xin vui lòng đăng nhập lại!
+message_error_code_system002=Hoạt động thất bại
+message_error_code_system003=Không có quyền hành động cho người dùng đó!
+message_error_code_system004=Tải lên tập tin không thành công, vui lòng liên hệ với quản lý để xử lý!
+message_error_code_system005=Đơn đăng ký của bạn đã được nộp, vui lòng kiểm tra kết quả sau.
+message_error_code_system006=Thời gian chờ yêu cầu, vui lòng thử lại sau
+message_error_code_system007=Đang bảo trì hệ thống, vui lòng thử lại sau
+message_error_code_system008=ngoại lệ hệ thống, vui lòng liên hệ với quản trị viên
+message_error_code_system009=dịch vụ chứng nhận không hoạt động
+message_error_code_system010=Tài khoản người dùng không tồn tại
+message_error_code_system011=Lỗi tài khoản hoặc mật khẩu
+message_error_code_system012=Tài khoản người dùng đã bị khóa
+message_error_code_system013=Mật khẩu người dùng bị lỗi
+message_error_code_system014=Tài khoản người dùng bị vô hiệu hóa
+message_error_code_system015=Có một yêu cầu vi phạm chưa được xử lý và không thể lặp lại
+message_error_code_system016=Các bước lập kế hoạch thực hiện đã thay đổi và không thể yêu cầu gia hạn
+message_error_code_system017=thị trường chuyển nhượng tiền gửi, vui lòng chọn nhà phát hành sản phẩm [{0}]
+message_error_code_system018=Vui lòng thực hiện khi hệ thống xử lý thành công vào cuối ngày
+login_error_code_001=Lỗi tài khoản hoặc mật khẩu
+login_error_code_002=Không được phép, không thể truy cập! Vui lòng liên hệ với quản trị viên để xử lý!
+login_error_code_003=Khóa đăng nhập!
+login_error_code_004=Tài khoản đã bị vô hiệu hóa, vui lòng liên hệ với quản trị viên
+login_error_code_005=Tài khoản đăng nhập đã tồn tại
+login_error_code_006=Người dùng này không tồn tại, vui lòng liên hệ với quản trị viên để xử lý
+login_error_code_007=Không cho phép hủy kích hoạt tài khoản đăng nhập hiện tại
+login_error_code_008=không thể giống với mật khẩu cũ
+login_error_code_009=lỗi mật khẩu cũ
+login_error_code_010=Thông tin nhân vật bị lỗi
+role_error_code_001=Tên nhân vật đã tồn tại
+market_run_message_001=Buộc ngoại tuyến đã được gửi
+organ_error_code_001=vai trò được gán và không thể đăng xuất
+organ_error_code_002=Có một tổ chức cấp dưới và không thể đăng xuất
+organ_error_code_003=Có nhà đầu tư cấp dưới và không thể đăng xuất
+organ_error_code_004=Có tiền còn lại và không thể đăng xuất
+organ_error_code_005=Có vị trí còn lại và không thể đăng xuất
+organ_error_code_006=Số tài liệu đã được ghi lại bình thường và không thể phục hồi
+organ_error_code_007=Số điện thoại đã được ghi lại bình thường và không thể phục hồi
+organ_error_code_008=Cơ quan mẹ là bất thường và không thể phục hồi
+organ_error_code_009=Thành viên không có vai trò môi giới và không thể phục hồi
+organ_error_code_010=trùng lặp mã hoặc mã tổ chức
+organ_error_code_011=Số tài liệu đã tồn tại
+organ_error_code_012=Số tài liệu đã có trong danh sách đen và không thể mở tài khoản
+organ_error_code_013=Tên đã tồn tại
+organ_error_code_014=trùng lặp tài khoản đăng nhập admin
+organ_error_code_015=Lỗi mới, vui lòng liên hệ với quản trị viên
+organ_error_code_016=Số điện thoại đã tồn tại
+organ_error_code_017=Tên doanh nghiệp đã tồn tại
+organ_error_code_018=Thông tin cơ quan đã thay đổi, vui lòng làm mới dữ liệu
+organ_error_code_019=Số tài liệu hoặc số điện thoại di động đã tồn tại
+organ_error_code_020=lý do từ chối kiểm toán không được vượt quá 80 từ
+organ_error_code_021=Thông tin nhà đầu tư này đã thay đổi, vui lòng làm mới dữ liệu
+organ_error_code_022=Không được xem xét, không thể rút lại
+organ_error_code_023=Thành viên không bình thường và không thể kiểm tra
+organ_error_code_024=Tổ chức không hoạt động và không thể kiểm tra
+organ_error_code_025=Nhà môi giới thuộc sở hữu là không bình thường và không thể được kiểm tra để vượt qua
+organ_error_code_026=Thành viên môi giới cấp dưới tồn tại, không thể xóa
+organ_error_code_027=Tồn tại kho cấp dưới và không thể xóa
+organ_error_code_028=Thành viên tạo lập thị trường đã đăng ký và không thể xóa
+organ_error_code_029=Thành viên tạo thị trường là nhà cung cấp mặc định và không thể xóa
+organ_error_code_030=Thành viên tạo thị trường đã cấu hình quan hệ đối tác cấp hai và không thể xóa
+organ_error_code_031=Thành viên tạo lập thị trường được tham chiếu bởi các nhà tạo lập thị trường tùy chọn OTC và không thể xóa
+organ_error_code_032=Có loại tích phân và không thể xóa
+organ_error_code_033=Trích dẫn cơ quan và không thể xóa
+organ_error_code_034=Cấp trên không thể tự
+organ_error_code_035=Giá trị tỷ lệ không được lớn hơn 100
+profit_shar_error_code_001=Vui lòng xóa cấu hình chia trước
+profit_shar_error_code_002=Vui lòng xóa nhóm đầu tiên
+profit_shar_error_code_003=Đã có cấu hình chia cho loại phí này
+query_error_code_001=Vui lòng chọn truy vấn thị trường
+query_error_code_002=Truy vấn lịch sử Vui lòng chọn ngày bắt đầu
+query_error_code_003=Truy vấn lịch sử Vui lòng chọn ngày kết thúc
+query_error_code_004=Không có quyền này
+query_error_code_005=Không thể xuất dữ liệu
+query_error_code_006=Xuất không thành công, vui lòng liên hệ với quản trị viên!
+query_error_code_007=Vui lòng nhập tài khoản nạp tiền
+query_error_code_008=lỗi thị trường hoặc trạng thái không mở
+query_error_code_009=lỗi tham số
+query_error_code_010=file nhập rỗng
+report_error_code_001=Ngày giao dịch bắt đầu {0}, Ngày kết thúc {1} Báo cáo thực hiện Thống kê lại lỗi
+settlement_message_001=Xác nhận thanh toán đã hoàn thành: {0} thanh toán thành công, {1} thanh toán thất bại
+settlement_message_002=Thay đổi dữ liệu, hãy làm mới và thử lại
+pwd_error_code_001=Vui lòng điền mật khẩu cũ
+pwd_error_code_002=Vui lòng điền mật khẩu mới
+pwd_error_code_003=Vui lòng điền mật khẩu mới để xác nhận
+pwd_error_code_004=Hai lần mật khẩu không phù hợp
+pwd_error_code_005=Lỗi mật khẩu cũ
+amount_error_code_001=Số tiền bằng 0, không xử lý!
+traAcc_error_code_001=Đăng nhập vào tài khoản trùng lặp, vui lòng nhấp vào Resist và gửi lại!
+investor_error_code_001=Không tìm thấy tài khoản
+investor_error_code_002=Tài khoản không phải là nhà đầu tư, không thể được kiểm toán bởi người bán.
+investor_error_code_003=Tài khoản chưa bị hủy, không thể bán.
+investor_error_code_004=Tài khoản tồn tại tiền, vị trí mở và các thông tin khác, không thể đăng xuất.
+investor_error_code_005=Yêu cầu tài khoản không được trả lời.
+investor_error_code_006=trùng lặp tên gói.
+investor_error_code_007=Vui lòng chọn nhà đầu tư.
+investor_error_code_008={0} Nhóm được phân bổ.
+investor_error_code_009=Vui lòng xóa tất cả các nhà đầu tư trong nhóm.
+investor_error_code_010=Vui lòng xóa cá nhân hóa nhóm trước.
+investor_error_code_011=Giá trị tỷ lệ không được lớn hơn 10.000
+warehouse_error_code_01=tối đa 10 chữ số trong mã kho
+warehouse_error_code_02=trùng lặp mã kho
+warehouse_error_code_03=trùng lặp tên kho
+warehouse_error_code_04=Lỗi dữ liệu: Thiếu dữ liệu tổ chức
+warehouse_error_code_05=Kho đã được liên kết với giống giao ngay và không thể đăng xuất
+message_notice_error_code_01=Vui lòng chọn ít nhất một thành viên!
+message_notice_error_code_02=Không tìm thấy thành viên!!!

+ 135 - 0
output_manage_service/resources/message_zh-cn.properties

@@ -0,0 +1,135 @@
+message_code_system001=操作成功
+message_code_system003=修改成功
+message_code_system004=签约成功
+message_code_system005=解约成功
+message_code_system006=获取验证码成功
+message_code_system007=登录成功
+message_code_system008=出金成功
+message_code_system009=入金成功
+message_code_system010=用户认证通过
+message_code_system011=斩仓恢复操作成功
+message_code_system012=支付货款成功
+message_code_system013=预售摇号成功
+message_code_system014=预售完成成功
+message_code_system015=预售申请成功
+message_code_system016=履约确认信息已发送并处理中,稍后请重新查询
+message_code_system017=申请成功
+message_code_system018=履约联络信息已发送,稍后请重新查询
+message_code_system019=执行成功
+message_code_system020=批量导入持仓过户成功
+message_code_system021=提交成功,闭市后自动进行转移
+message_code_system022=该数据已经审核完成或处理中
+message_code_system023=没有找到交易商资金账户
+message_code_system024=审核拒绝
+message_code_system025=非交易商账户,不能销户审核
+message_code_system026=资金账户未解约,不能销户
+message_code_system027=还剩{0}次错误机会,账号或密码不匹配达到{1}次,登录账号将锁定{2}分钟{3}
+message_code_system028=黑名单已有此证件!
+message_code_system029=IP地址不能为空值!
+message_code_system030=IP地址重复!
+message_error_code_system001=令牌失效,请重新登录!
+message_error_code_system002=操作失败
+message_error_code_system003=没有该用户的操作权限!
+message_error_code_system004=文件上传失败,请联系管理人员处理!
+message_error_code_system005=您的申请已提交,请稍后查询结果。
+message_error_code_system006=请求超时,请稍后重试
+message_error_code_system007=系统维护中,请稍后再试
+message_error_code_system008=系统异常,请联系管理员
+message_error_code_system009=认证服务不正常
+message_error_code_system010=用户账户不存在
+message_error_code_system011=账户或密码错误
+message_error_code_system012=用户账户已被锁
+message_error_code_system013=用户密码已失效
+message_error_code_system014=用户账户已禁用
+message_error_code_system015=存在未处理的违约申请,不能重复发起
+message_error_code_system016=履约计划步骤已发生变更,无法申请延期
+message_error_code_system017=定金转让市场,请选择商品发行方【{0}】
+message_error_code_system018=请于系统日终处理成功时执行
+login_error_code_001=账户或密码错误
+login_error_code_002=未经允许,不可访问!请联系管理员处理!
+login_error_code_003=登录锁定!
+login_error_code_004=账户已停用,请联系管理员
+login_error_code_005=登录账号已存在
+login_error_code_006=该用户不存在,请联系管理人员处理
+login_error_code_007=不允许停用当前登录账户
+login_error_code_008=不能与旧密码相同
+login_error_code_009=旧密码错误
+login_error_code_010=角色信息有误
+role_error_code_001=角色名已存在
+market_run_message_001=强制下线已发送
+organ_error_code_001=已分配角色,无法注销
+organ_error_code_002=存在下级机构,无法注销
+organ_error_code_003=存在下级投资者,无法注销
+organ_error_code_004=有剩余资金,无法注销
+organ_error_code_005=有剩余持仓,无法注销
+organ_error_code_006=证件号码已存在正常记录,无法恢复
+organ_error_code_007=手机号已存在正常记录,无法恢复
+organ_error_code_008=上级机构为非正常状态,无法恢复
+organ_error_code_009=所属会员没有经纪角色,无法恢复
+organ_error_code_010=代码或机构代码重复
+organ_error_code_011=证件号码已存在
+organ_error_code_012=证件号码已存在黑名单中,不能开户
+organ_error_code_013=名称已存在
+organ_error_code_014=管理员登录帐号重复
+organ_error_code_015=新增失败,请联系管理员
+organ_error_code_016=手机号已存在
+organ_error_code_017=企业名称已存在
+organ_error_code_018=该机构信息已变更,请刷新数据
+organ_error_code_019=证件号码或手机号已存在
+organ_error_code_020=审核拒绝原因不能超过80个字
+organ_error_code_021=该投资者信息已变更,请刷新数据
+organ_error_code_022=非待审核状态,无法撤回
+organ_error_code_023=所属会员为非正常状态,无法审核通过
+organ_error_code_024=所属机构为非正常状态,无法审核通过
+organ_error_code_025=所属经纪人为非正常状态,无法审核通过
+organ_error_code_026=存在下级经纪会员,无法删除
+organ_error_code_027=存在下级仓库,无法删除
+organ_error_code_028=做市会员已签约,无法删除
+organ_error_code_029=做市会员是默认报价商,无法删除
+organ_error_code_030=做市会员已配置二级对手关系,无法删除
+organ_error_code_031=做市会员被场外期权做市引用,无法删除
+organ_error_code_032=存在积分类型,无法删除
+organ_error_code_033=报价机构被引用,无法删除
+organ_error_code_034=上级不能为自己
+organ_error_code_035=比率值不能大于100
+profit_shar_error_code_001=请先删除分润配置
+profit_shar_error_code_002=请先删除分组人员
+profit_shar_error_code_003=该费用类型已存在分润配置
+query_error_code_001=请选择市场查询
+query_error_code_002=历史查询请选择开始日期
+query_error_code_003=历史查询请选择结束日期
+query_error_code_004=没有此权限
+query_error_code_005=无数据可导出
+query_error_code_006=导出失败,请联系管理员!
+query_error_code_007=请输入资金账户
+query_error_code_008=市场错误或状态不为开市状态
+query_error_code_009=参数错误
+query_error_code_010=导入文件为空
+report_error_code_001=起始交易日{0},结束交易日{1}执行报表重新统计出错
+settlement_message_001=确认付款完成: {0} 条成功, {1} 条失败
+settlement_message_002=数据有变更,请刷新重试
+pwd_error_code_001=请填写旧密码
+pwd_error_code_002=请填写新密码
+pwd_error_code_003=请填写新密码确认
+pwd_error_code_004=两次密码不一致
+pwd_error_code_005=旧密码错误
+amount_error_code_001=金额为 0,不做处理!
+traAcc_error_code_001=登录账户重复,请点击重新生存并再次提交!
+investor_error_code_001=没有找到资金账户
+investor_error_code_002=非投资者账户,不能销户审核.
+investor_error_code_003=资金账户未解约,不能销户.
+investor_error_code_004=账户存在资金、持仓等相关信息,不能注销.
+investor_error_code_005=资金账户请求没有回应.
+investor_error_code_006=分组名重复.
+investor_error_code_007=请选择投资者.
+investor_error_code_008={0}已分配分组.
+investor_error_code_009=请先移除该分组下所有投资者.
+investor_error_code_010=请先删除该分组的个性化设置.
+investor_error_code_011=比率值不能大于10000
+warehouse_error_code_01=仓库代码最多10位
+warehouse_error_code_02=仓库代码重复
+warehouse_error_code_03=仓库名称重复
+warehouse_error_code_04=数据错误:机构数据缺失
+warehouse_error_code_05=该仓库已关联现货品种,不能注销
+message_notice_error_code_01=请至少选择一个会员!
+message_notice_error_code_02=未找到会员!!!

+ 135 - 0
output_manage_service/resources/message_zh-tw.properties

@@ -0,0 +1,135 @@
+message_code_system001=操作成功
+message_code_system003=修改成功
+message_code_system004=簽約成功
+message_code_system005=解約成功
+message_code_system006=獲取驗證碼成功
+message_code_system007=登入成功
+message_code_system008=出金成功
+message_code_system009=入金成功
+message_code_system010=用戶認證通過
+message_code_system011=斬倉恢復操作成功
+message_code_system012=支付貨款成功
+message_code_system013=預售搖號成功
+message_code_system014=預售完成成功
+message_code_system015=預售申請成功
+message_code_system016=履約確認資訊已發送並處理中,稍後請重新查詢
+message_code_system017=申請成功
+message_code_system018=履約聯絡資訊已發送,稍後請重新查詢
+message_code_system019=執行成功
+message_code_system020=批量導入持倉過戶成功
+message_code_system021=提交成功,閉市後自動進行轉移
+message_code_system022=該數據已經稽核完成或處理中
+message_code_system023=沒有找到交易商資金帳戶
+message_code_system024=稽核拒絕
+message_code_system025=非交易商帳戶,不能銷戶稽核
+message_code_system026=資金帳戶未解約,不能銷戶
+message_code_system027=還剩{0}次錯誤機會,帳號或密碼不匹配達到{1}次,登入帳號將鎖定{2}分鐘{3}
+message_code_system028=黑名單已有此證件!
+message_code_system029=IP地址不能為空值!
+message_code_system030=IP地址重複!
+message_error_code_system001=權杖失效,請重新登入!
+message_error_code_system002=操作失敗
+message_error_code_system003=沒有該用戶的操作許可權!
+message_error_code_system004=文件上傳失敗,請聯系管理人員處理!
+message_error_code_system005=您的申請已提交,請稍後查詢結果。
+message_error_code_system006=請求超時,請稍後重試
+message_error_code_system007=系統維護中,請稍後再試
+message_error_code_system008=系統异常,請聯系管理員
+message_error_code_system009=認證服務不正常
+message_error_code_system010=用戶帳戶不存在
+message_error_code_system011=帳戶或密碼錯誤
+message_error_code_system012=用戶帳戶已被鎖
+message_error_code_system013=用戶密碼已失效
+message_error_code_system014=用戶帳戶已禁用
+message_error_code_system015=存在未處理的違約申請,不能重複發起
+message_error_code_system016=履約計畫步驟已發生變更,無法申請延期
+message_error_code_system017=定金轉讓市場,請選擇商品發行方【{0}】
+message_error_code_system018=請於系統日終處理成功時執行
+login_error_code_001=帳戶或密碼錯誤
+login_error_code_002=未經允許,不可訪問! 請聯系管理員處理!
+login_error_code_003=登入鎖定!
+login_error_code_004=帳戶已停用,請聯系管理員
+login_error_code_005=登入帳號已存在
+login_error_code_006=該用戶不存在,請聯系管理人員處理
+login_error_code_007=不允許停用當前登入帳戶
+login_error_code_008=不能與舊密碼相同
+login_error_code_009=舊密碼錯誤
+login_error_code_010=角色資訊有誤
+role_error_code_001=角色名已存在
+market_run_message_001=強制下線已發送
+organ_error_code_001=已分配角色,無法註銷
+organ_error_code_002=存在下級機构,無法註銷
+organ_error_code_003=存在下級投資者,無法註銷
+organ_error_code_004=有剩餘資金,無法註銷
+organ_error_code_005=有剩餘持倉,無法註銷
+organ_error_code_006=證件號碼已存在正常記錄,無法恢復
+organ_error_code_007=手機號已存在正常記錄,無法恢復
+organ_error_code_008=上級機构為非正常狀態,無法恢復
+organ_error_code_009=所屬會員沒有經紀角色,無法恢復
+organ_error_code_010=程式碼或機构程式碼重複
+organ_error_code_011=證件號碼已存在
+organ_error_code_012=證件號碼已存在黑名單中,不能開戶
+organ_error_code_013=名稱已存在
+organ_error_code_014=管理員登錄帳號重複
+organ_error_code_015=新增失敗,請聯系管理員
+organ_error_code_016=手機號已存在
+organ_error_code_017=企業名稱已存在
+organ_error_code_018=該機构資訊已變更,請重繪數據
+organ_error_code_019=證件號碼或手機號已存在
+organ_error_code_020=稽核拒絕原因不能超過80個字
+organ_error_code_021=該投資者資訊已變更,請重繪數據
+organ_error_code_022=非待稽核狀態,無法撤回
+organ_error_code_023=所屬會員為非正常狀態,無法稽核通過
+organ_error_code_024=所屬機构為非正常狀態,無法稽核通過
+organ_error_code_025=所屬經紀人為非正常狀態,無法稽核通過
+organ_error_code_026=存在下級經紀會員,無法删除
+organ_error_code_027=存在下級倉庫,無法删除
+organ_error_code_028=做市會員已簽約,無法删除
+organ_error_code_029=做市會員是默認報價商,無法删除
+organ_error_code_030=做市會員已配寘二級對手關係,無法删除
+organ_error_code_031=做市會員被場外期權做市引用,無法删除
+organ_error_code_032=存在積分類型,無法删除
+organ_error_code_033=報價機构被引用,無法删除
+organ_error_code_034=上級不能為自己
+organ_error_code_035=比率值不能大於100
+profit_shar_error_code_001=請先删除分潤配寘
+profit_shar_error_code_002=請先删除分組人員
+profit_shar_error_code_003=該費用類型已存在分潤配寘
+query_error_code_001=請選擇市場査詢
+query_error_code_002=歷史査詢請選擇開始日期
+query_error_code_003=歷史査詢請選擇結束日期
+query_error_code_004=沒有此許可權
+query_error_code_005=無數據可匯出
+query_error_code_006=匯出失敗,請聯系管理員!
+query_error_code_007=請輸入資金帳戶
+query_error_code_008=市場錯誤或狀態不為開市狀態
+query_error_code_009=參數錯誤
+query_error_code_010=導入檔案為空
+report_error_code_001=起始交易日{0},結束交易日{1}執行報表重新統計出錯
+settlement_message_001=確認付款完成:{0}條成功,{1}條失敗
+settlement_message_002=數據有變更,請重繪重試
+pwd_error_code_001=請填寫舊密碼
+pwd_error_code_002=請填寫新密碼
+pwd_error_code_003=請填寫新密碼確認
+pwd_error_code_004=兩次密碼不一致
+pwd_error_code_005=舊密碼錯誤
+amount_error_code_001=金額為0,不做處理!
+traAcc_error_code_001=登入帳戶重複,請點擊重新生存並再次提交!
+investor_error_code_001=沒有找到資金帳戶
+investor_error_code_002=非投資者帳戶,不能銷戶稽核.
+investor_error_code_003=資金帳戶未解約,不能銷戶.
+investor_error_code_004=帳戶存在資金、持倉等相關資訊,不能註銷.
+investor_error_code_005=資金帳戶請求沒有回應.
+investor_error_code_006=分組名重複.
+investor_error_code_007=請選擇投資者.
+investor_error_code_008={0}已分配分組.
+investor_error_code_009=請先移除該分組下所有投資者.
+investor_error_code_010=請先删除該分組的個性化設定.
+investor_error_code_011=比率值不能大於10000
+warehouse_error_code_01=倉庫程式碼最多10比特
+warehouse_error_code_02=倉庫程式碼重複
+warehouse_error_code_03=倉庫名稱重複
+warehouse_error_code_04=數據錯誤:機构數據缺失
+warehouse_error_code_05=該倉庫已關聯現貨品種,不能註銷
+message_notice_error_code_01=請至少選擇一個會員!
+message_notice_error_code_02=未找到會員!!!

BIN
src/__pycache__/service_tools.cpython-311.pyc


+ 94 - 0
src/service_tools.py

@@ -0,0 +1,94 @@
+
+from src.common import CommonUti
+import os
+
+class Service_Tools:
+        
+    @staticmethod
+    def generate_excel(oem, inc_file, output_folder, json_folder, oem_json_folder):
+        '''
+        根据properties文件生成excel文件
+        '''
+        Service_Tools.generate_excle(oem, output_folder, json_folder, oem_json_folder)
+        # 增量更新,在生成excel里标注新增的key为黄色
+        CommonUti.update_excel_by_inc(oem, output_folder, inc_file)
+        
+    @staticmethod
+    def generate_properties(oem, output_folder, json_folder, oem_json_folder):
+        '''
+        根据excel生成properties文件
+        '''
+        dic_cn, dic_en, dic_th, dic_tw, dic_vi = CommonUti.read_from_excel(oem, output_folder)
+        Service_Tools.generate_excle(oem, dic_cn, 'zh-cn', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_excle(oem, dic_en, 'en', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_excle(oem, dic_th, 'th', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_excle(oem, dic_tw, 'zh-tw', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_excle(oem, dic_vi, 'vi', output_folder, json_folder, oem_json_folder)
+        
+    @staticmethod
+    def generate_excle(oem, output_folder, json_folder, oem_json_folder):
+        # 据JSON生成excel文件
+        zh_data = Service_Tools.read_data_from_properties(
+            oem, json_folder, oem_json_folder, 'zh-cn')
+        en_data = Service_Tools.read_data_from_properties(
+            oem, json_folder, oem_json_folder, 'en')
+        th_data = Service_Tools.read_data_from_properties(
+            oem, json_folder, oem_json_folder, 'th')
+        tw_data = Service_Tools.read_data_from_properties(
+            oem, json_folder, oem_json_folder, 'zh-tw')
+        vi_data = Service_Tools.read_data_from_properties(
+            oem, json_folder, oem_json_folder, 'vi')
+
+        CommonUti.generate_excle_by_oem(
+            oem, output_folder, zh_data, en_data, th_data, tw_data, vi_data)
+    
+    @staticmethod
+    def read_data_from_properties(oem, json_folder, oem_json_folder, lang):
+        common_file = json_folder + 'message_' + lang + '.properties'
+       
+        # 处理OEM数据
+        properties_dict = {}
+        with open(common_file, 'r', encoding='utf-8') as f:
+            for line in f:
+                line = line.strip()  # 去除首尾空白字符
+                if not line or line.startswith(('#', '!')):  # 跳过空行和注释
+                    continue
+                # 分割键值对(处理可能存在多个等号的情况)
+                key_value = line.split('=', 1) if '=' in line else line.split(':', 1)
+                if len(key_value) != 2:
+                    continue  # 无效行跳过
+                key, value = key_value[0].strip(), key_value[1].strip()
+                # 处理转义字符(例如 \n 或 \t)
+                value = value.encode('utf-8').decode('unicode_escape')
+                properties_dict[key] = value
+                
+        return properties_dict
+
+    
+    @staticmethod
+    def generate_properties_files(oem, output_folder, json_folder, oem_json_folder):
+        '''
+        根据excel生成JSON文件
+        '''
+        dic_cn, dic_en, dic_th, dic_tw, dic_vi = CommonUti.read_from_excel(oem, output_folder)
+        Service_Tools.generate_properties(oem, dic_cn, 'zh-cn', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_properties(oem, dic_en, 'en', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_properties(oem, dic_th, 'th', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_properties(oem, dic_tw, 'zh-tw', output_folder, json_folder, oem_json_folder)
+        Service_Tools.generate_properties(oem, dic_vi, 'vi', output_folder, json_folder, oem_json_folder)
+        
+    @staticmethod
+    def generate_properties(oem, excel_dic, lang, output_folder, json_folder, oem_json_folder): 
+        # OEM输出文件地址
+        oem_output = output_folder + '/resources/message_' + lang + '.properties'
+      
+        if os.path.exists(oem_output):  # 检查文件是否存在[4,10](@ref)
+            os.remove(oem_output)       # 存在则删除[9,10](@ref)
+            
+        with open(oem_output, 'w', encoding='utf-8') as f:
+            for key, value in excel_dic.items():
+                # 处理转义字符(如 \n → \\n,等号 → \=)
+                escaped_value = value.replace('\n', '\\n').replace('=', '\\=')
+                f.write(f"{key}={escaped_value}\n")
+                
+        print("%s JSON文件已成功输出到 %s" % (lang, oem_output))

+ 2 - 2
src/tools.py

@@ -21,8 +21,8 @@ class Tools:
         # 增量更新,在生成excel里标注新增的key为黄色
         CommonUti.update_excel_by_inc(oem, output_folder, inc_file)
         
-    
-    def generate_json(oem, output_folder, json_folder, oem_json_folder):
+    @staticmethod
+    def generate_json_files(oem, output_folder, json_folder, oem_json_folder):
         '''
         根据excel生成JSON文件
         '''