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")));