|
@@ -246,12 +246,12 @@ public class SettlementService {
|
|
|
public List<Settlement> getTotality(Map<String,Object[]> builtMap,Double builtTotal,Double[] divisiontotal,Double wordtotal,Double otherTotal,Double feescount,String id){
|
|
|
List<Settlement> list = new ArrayList<Settlement>();
|
|
|
String key="";
|
|
|
- Double count=0.0;
|
|
|
- Double countProtect=0.0;
|
|
|
- Double creatProtect=0.0;
|
|
|
+ double count=0.0;
|
|
|
+ double countProtect=0.0;
|
|
|
+ double creatProtect=0.0;
|
|
|
String status="1";
|
|
|
Settlement settlement;
|
|
|
- String reason = "数据核验正确";
|
|
|
+ String reason = BashInfo.JS_REASON;
|
|
|
for (Map.Entry<String,Object[]> map:builtMap.entrySet()){
|
|
|
key = map.getKey();
|
|
|
Object[] val = map.getValue();
|
|
@@ -261,50 +261,50 @@ public class SettlementService {
|
|
|
case BashInfo.JS_FBFX:
|
|
|
if(money==builtTotal&&money==divisiontotal[0]){
|
|
|
status="0";
|
|
|
- count+=money;
|
|
|
}else {
|
|
|
reason = BashInfo.RESON_FBFX;
|
|
|
}
|
|
|
+ count+=money;
|
|
|
break;
|
|
|
case BashInfo.JS_CBRF:
|
|
|
if(money==divisiontotal[1]){
|
|
|
status="0";
|
|
|
- count+=money;
|
|
|
}else {
|
|
|
reason = BashInfo.RESON_CBRF;
|
|
|
}
|
|
|
+ count+=money;
|
|
|
break;
|
|
|
case BashInfo.JS_CSXM:
|
|
|
if(money==wordtotal){
|
|
|
status="0";
|
|
|
- count+=money;
|
|
|
}else {
|
|
|
reason = BashInfo.RESON_CSXM;
|
|
|
}
|
|
|
+ count+=money;
|
|
|
break;
|
|
|
case BashInfo.JS_QTXM:
|
|
|
- if(money==wordtotal){
|
|
|
+ if(money==otherTotal){
|
|
|
status="0";
|
|
|
- count+=money;
|
|
|
}else {
|
|
|
reason = BashInfo.RESON_QTXM;
|
|
|
}
|
|
|
+ count+=money;
|
|
|
break;
|
|
|
case BashInfo.JS_GF:
|
|
|
if(money==feescount){
|
|
|
status="0";
|
|
|
- count+=money;
|
|
|
}else {
|
|
|
reason = BashInfo.RESON_GF;
|
|
|
}
|
|
|
+ count+=money;
|
|
|
break;
|
|
|
case BashInfo.JS_FBRF:
|
|
|
if(money==divisiontotal[2]){
|
|
|
status="0";
|
|
|
- count+=money;
|
|
|
}else {
|
|
|
reason = BashInfo.RESON_FBRF;
|
|
|
}
|
|
|
+ count+=money;
|
|
|
break;
|
|
|
case BashInfo.JS_SJ:
|
|
|
status="0";
|
|
@@ -313,10 +313,10 @@ public class SettlementService {
|
|
|
case BashInfo.JS_JGJS:
|
|
|
if(money==count){
|
|
|
status="0";
|
|
|
- countProtect+=money;
|
|
|
}else {
|
|
|
reason = BashInfo.RESON_JGJS;
|
|
|
}
|
|
|
+ countProtect+=money;
|
|
|
break;
|
|
|
case BashInfo.JS_BZZS:
|
|
|
status="0";
|
|
@@ -331,7 +331,7 @@ public class SettlementService {
|
|
|
if (money==reduce){
|
|
|
status="0";
|
|
|
}else {
|
|
|
- reason = BashInfo.RESON_GCJS;
|
|
|
+ reason = BashInfo.JS_REASON;
|
|
|
}
|
|
|
break;
|
|
|
}
|