Commit 3a856bbc by lzxry

对不同部门计算方式分类

parent 08972830
......@@ -104,7 +104,14 @@ public class ShareIncomeServiceImpl implements ShareIncomeService {
try (Stream<Contract> streamContract = contracts.parallelStream()) {
streamContract.forEachOrdered(v -> {
this.shareIncome4Contract(v, start, end);
switch (platform){
case "type_one":this.shareIncome4Contract(v, start, end);
break;
case "type_two":this.shareIncome4Contract(v, start, end);
break;
}
v.setMyBodyName(bodiesNameMap.get(v.getMyBodyCode()));
});
}
......
package util;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
import java.util.HashMap;
import java.util.Map;
/**
* @author liyin
* @description
* @date
*/
public class ContractBranchUtil {
private static Map<String,String> map = new HashMap<>();
static {
map.put("dmp", "type_one");
map.put("fake", "type_one");
map.put("adi", "type_one");
map.put("ads", "type_one");
map.put("abtest", "type_one");
map.put("tkio", "type_two");
}
public static String getValue(String key){
return map.get(key);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment