|
|
@@ -39,23 +39,12 @@ public class CreativeUserLayerDataHelperV2 {
|
|
|
public static Double getCopc(String model, String cid, String layer) {
|
|
|
if (null != cidMap) {
|
|
|
String key = String.format(keyFormat, model, cid, layer);
|
|
|
- Double resultLayer = null;
|
|
|
- Double resultSum = null;
|
|
|
if (cidMap.containsKey(key)) {
|
|
|
- resultLayer = cidMap.get(key);
|
|
|
- }
|
|
|
- if (resultLayer != null && resultLayer.intValue() > 0) {
|
|
|
- return resultLayer;
|
|
|
+ return cidMap.get(key);
|
|
|
}
|
|
|
key = String.format(keyFormat, model, cid, "sum");
|
|
|
if (cidMap.containsKey(key)) {
|
|
|
- resultSum = cidMap.get(key);
|
|
|
- }
|
|
|
- if (resultSum != null && resultSum.intValue() > 0) {
|
|
|
- return resultSum;
|
|
|
- }
|
|
|
- if (resultLayer != null) {
|
|
|
- return resultLayer;
|
|
|
+ return cidMap.get(key);
|
|
|
}
|
|
|
}
|
|
|
return null;
|