From de19921581acd12d891f7b9e6cdbb0535f329c45 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Sat, 22 Nov 2025 10:51:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BA=97=E9=93=BA=E8=A3=85?= =?UTF-8?q?=E4=BF=AE=E8=B7=AF=E7=94=B1-=E8=A1=A5=E5=85=85=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../suisung/mall/common/utils/CommonUtil.java | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/mall-common/src/main/java/com/suisung/mall/common/utils/CommonUtil.java b/mall-common/src/main/java/com/suisung/mall/common/utils/CommonUtil.java index f46995aa..7ccb6d9c 100644 --- a/mall-common/src/main/java/com/suisung/mall/common/utils/CommonUtil.java +++ b/mall-common/src/main/java/com/suisung/mall/common/utils/CommonUtil.java @@ -476,6 +476,41 @@ public class CommonUtil { return result; } + /** + * 获取shopApp的lable + * @param tpl_id + * @return + */ + public static String getTplLable(Integer tpl_id) { + String tpl_label=""; + if (tpl_id == 101) { + tpl_label = "shop1"; + } + if (tpl_id == 102) { + tpl_label = "shop2"; + } + if (tpl_id == 103) { + tpl_label = "shop3"; + } + if (tpl_id == 104) { + tpl_label = "shop4"; + } + if (tpl_id == 105) { + tpl_label = "shop5"; + } + if (tpl_id == 106) { + tpl_label = "shop6"; + } + if (tpl_id == 107) { + tpl_label = "shop7"; + } + if (tpl_id == 109) { + tpl_label = "shop9"; + } + return tpl_label; + } + + public static void main(String[] args) { System.out.println("测试1分钱分配:"); System.out.println(calculateProfitSharing(9800, new BigDecimal("0.94"), new BigDecimal("0.2"), new BigDecimal("0")));