From 27553224dab0aea5a588eb001a6bdb137d1083f4 Mon Sep 17 00:00:00 2001 From: Jzow Date: Wed, 31 Jul 2024 02:49:28 +0800 Subject: [PATCH] update retail module code enum fix github ci/cd --- .../wansenai/utils/enums/RetailCodeEnum.java | 22 +++++++++---------- core/utils/src/test/java/EnumTest.java | 12 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/core/utils/src/main/java/com/wansenai/utils/enums/RetailCodeEnum.java b/core/utils/src/main/java/com/wansenai/utils/enums/RetailCodeEnum.java index 15dade98..6fcd9ee8 100644 --- a/core/utils/src/main/java/com/wansenai/utils/enums/RetailCodeEnum.java +++ b/core/utils/src/main/java/com/wansenai/utils/enums/RetailCodeEnum.java @@ -5,39 +5,39 @@ @Getter public enum RetailCodeEnum { - ADD_RETAIL_SHIPMENTS_SUCCESS("R0001", "添加零售出库单成功"), + ADD_RETAIL_SHIPMENTS_SUCCESS("R0001", "成功添加零售出库单据"), ADD_RETAIL_SHIPMENTS_SUCCESS_EN("R0001", "Successfully add retail outbound document"), - ADD_RETAIL_SHIPMENTS_ERROR("R0500", "系统异常,添加零售出库单失败"), + ADD_RETAIL_SHIPMENTS_ERROR("R0500", "系统异常,添加零售出库单据失败"), ADD_RETAIL_SHIPMENTS_ERROR_EN("R0500", "System exception, failed to add retail outbound document"), - UPDATE_RETAIL_SHIPMENTS_SUCCESS("R0002", "修改零售出库单成功"), + UPDATE_RETAIL_SHIPMENTS_SUCCESS("R0002", "成功修改零售出库单据"), UPDATE_RETAIL_SHIPMENTS_SUCCESS_EN("R0002", "Successfully modify retail outbound document"), - UPDATE_RETAIL_SHIPMENTS_ERROR("R0501", "系统异常,修改零售出库单失败"), + UPDATE_RETAIL_SHIPMENTS_ERROR("R0501", "系统异常,修改零售出库单据失败"), UPDATE_RETAIL_SHIPMENTS_ERROR_EN("R0501", "System exception, failed to modify retail outbound document"), - DELETE_RETAIL_SHIPMENTS_SUCCESS("R0003", "删除零售出库单成功"), + DELETE_RETAIL_SHIPMENTS_SUCCESS("R0003", "成功删除零售出库单据"), DELETE_RETAIL_SHIPMENTS_SUCCESS_EN("R0003", "Successfully delete retail outbound document"), - DELETE_RETAIL_SHIPMENTS_ERROR("R0502", "系统异常,删除零售出库单失败"), + DELETE_RETAIL_SHIPMENTS_ERROR("R0502", "系统异常,删除零售出库单据失败"), DELETE_RETAIL_SHIPMENTS_ERROR_EN("R0502", "System exception, failed to delete retail outbound document"), - ADD_RETAIL_REFUND_SUCCESS("R0004", "添加零售退货单成功"), + ADD_RETAIL_REFUND_SUCCESS("R0004", "成功添加零售退货单据"), ADD_RETAIL_REFUND_SUCCESS_EN("R0004", "Successfully add retail return document"), - ADD_RETAIL_REFUND_ERROR("R0503", "系统异常,添加零售退货单失败"), + ADD_RETAIL_REFUND_ERROR("R0503", "系统异常,添加零售退货单据失败"), ADD_RETAIL_REFUND_ERROR_EN("R0503", "System exception, failed to add retail return document"), - UPDATE_RETAIL_REFUND_SUCCESS("R0005", "修改零售退货单成功"), + UPDATE_RETAIL_REFUND_SUCCESS("R0005", "成功修改零售退货单据"), UPDATE_RETAIL_REFUND_SUCCESS_EN("R0005", "Successfully modify retail return document"), @@ -45,11 +45,11 @@ public enum RetailCodeEnum { UPDATE_RETAIL_REFUND_ERROR_EN("R0504", "System exception, failed to modify retail return document"), - DELETE_RETAIL_REFUND_SUCCESS("R0006", "删除零售货单成功"), + DELETE_RETAIL_REFUND_SUCCESS("R0006", "成功删除零售货单据"), DELETE_RETAIL_REFUND_SUCCESS_EN("R0006", "Successfully delete retail return document"), - DELETE_RETAIL_REFUND_ERROR("R0505", "系统异常,删除零售货单失败"), + DELETE_RETAIL_REFUND_ERROR("R0505", "系统异常,删除零售货单据失败"), DELETE_RETAIL_REFUND_ERROR_EN("R0505", "System exception, failed to delete retail return document"); diff --git a/core/utils/src/test/java/EnumTest.java b/core/utils/src/test/java/EnumTest.java index 3bd7f0b8..12d1d663 100644 --- a/core/utils/src/test/java/EnumTest.java +++ b/core/utils/src/test/java/EnumTest.java @@ -21,22 +21,22 @@ public class EnumTest { public void retailCodeEnumTest() { RetailCodeEnum successEnum = RetailCodeEnum.ADD_RETAIL_SHIPMENTS_SUCCESS; assertEquals("R0001", successEnum.getCode()); - assertEquals("添加零售出库单成功", successEnum.getMsg()); + assertEquals("成功添加零售出库单据", successEnum.getMsg()); RetailCodeEnum errorEnum = RetailCodeEnum.ADD_RETAIL_SHIPMENTS_ERROR; assertEquals("R0500", errorEnum.getCode()); - assertEquals("添加零售出库单失败", errorEnum.getMsg()); + assertEquals("系统异常,添加零售出库单据失败", errorEnum.getMsg()); RetailCodeEnum updateEnum = RetailCodeEnum.UPDATE_RETAIL_SHIPMENTS_ERROR; assertEquals("R0501", updateEnum.getCode()); - assertEquals("修改零售出库单失败", updateEnum.getMsg()); + assertEquals("系统异常,修改零售出库单据失败", updateEnum.getMsg()); RetailCodeEnum deleteSuccessEnum = RetailCodeEnum.DELETE_RETAIL_SHIPMENTS_SUCCESS; assertEquals("R0003", deleteSuccessEnum.getCode()); - assertEquals("删除零售出库单成功", deleteSuccessEnum.getMsg()); + assertEquals("成功删除零售出库单据", deleteSuccessEnum.getMsg()); - RetailCodeEnum deleteErrorEnum = RetailCodeEnum.DELETE_RETAIL_SHIPMENTS_ERROR; + RetailCodeEnum deleteErrorEnum = RetailCodeEnum.DELETE_RETAIL_SHIPMENTS_ERROR_EN; assertEquals("R0502", deleteErrorEnum.getCode()); - assertEquals("删除零售出库单失败", deleteErrorEnum.getMsg()); + assertEquals("System exception, failed to delete retail outbound document", deleteErrorEnum.getMsg()); } }