新增店铺装修路由-补充代码
This commit is contained in:
parent
2cb58bffa3
commit
de19921581
@ -476,6 +476,41 @@ public class CommonUtil {
|
|||||||
return result;
|
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) {
|
public static void main(String[] args) {
|
||||||
System.out.println("测试1分钱分配:");
|
System.out.println("测试1分钱分配:");
|
||||||
System.out.println(calculateProfitSharing(9800, new BigDecimal("0.94"), new BigDecimal("0.2"), new BigDecimal("0")));
|
System.out.println(calculateProfitSharing(9800, new BigDecimal("0.94"), new BigDecimal("0.2"), new BigDecimal("0")));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user