From 5508e700913d5e963543781429e1f8a721400976 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Thu, 2 Sep 2021 10:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E6=89=93=E5=8D=B0=E6=9D=A1=E7=A0=81?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/base/Const.go | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/models/base/Const.go b/models/base/Const.go index 11f7687..33f97a7 100644 --- a/models/base/Const.go +++ b/models/base/Const.go @@ -138,4 +138,32 @@ const ( TRIGGER_FROM_BARCODE = "自主条码" TRIGGER_DEPEND_ON_UNITSN = "UNITSN" -) \ No newline at end of file +) + + +var YEAR_MAP = map[int]string{ + 2018: "J", + 2019: "K", + 2020: "L", + 2021: "M", + 2022: "N", + 2023: "P", + 2024: "R", + 2025: "S", + 2026: "T", +} + +var MONTH_MAP = map[int]string{ + 1: "1", + 2: "2", + 3: "3", + 4: "4", + 5: "5", + 6: "6", + 7: "7", + 8: "8", + 9: "9", + 10: "A", + 11: "B", + 12: "C", +} \ No newline at end of file