|
@@ -44,6 +44,11 @@ public class OverheadLineService {
|
|
|
|
|
|
public List<JkxlDetailFee> findList(String id,String type){
|
|
public List<JkxlDetailFee> findList(String id,String type){
|
|
List<JkxlDetailFee> list = overheadLineMapper.findList(id,type);
|
|
List<JkxlDetailFee> list = overheadLineMapper.findList(id,type);
|
|
|
|
+ double integrityFee = 0.00;
|
|
|
|
+ WbsItem wbsItem = itemService.getState(id);
|
|
|
|
+ if(wbsItem != null){
|
|
|
|
+ integrityFee = wbsItem.getIntegrityFee() * -1;
|
|
|
|
+ }
|
|
for(JkxlDetailFee jkxlDetailFee : list){
|
|
for(JkxlDetailFee jkxlDetailFee : list){
|
|
double totalFee = jkxlDetailFee.getTotalFee()!=null? jkxlDetailFee.getTotalFee():0.00;
|
|
double totalFee = jkxlDetailFee.getTotalFee()!=null? jkxlDetailFee.getTotalFee():0.00;
|
|
//建筑
|
|
//建筑
|
|
@@ -80,6 +85,7 @@ public List<JkxlDetailFee> findList(String id,String type){
|
|
qtTotal += jkxlDetailFee.getTotalFee();
|
|
qtTotal += jkxlDetailFee.getTotalFee();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ qtTotal = qtTotal + integrityFee;
|
|
for (JkxlDetailFee jkxlDetailFee : list) {
|
|
for (JkxlDetailFee jkxlDetailFee : list) {
|
|
if(jkxlDetailFee.getWbsCode().equals("20000000")){
|
|
if(jkxlDetailFee.getWbsCode().equals("20000000")){
|
|
jkxlDetailFee.setJzFee(jz2);
|
|
jkxlDetailFee.setJzFee(jz2);
|
|
@@ -95,6 +101,11 @@ public List<JkxlDetailFee> findList(String id,String type){
|
|
}
|
|
}
|
|
if(jkxlDetailFee.getWbsCode().equals("24000000")){
|
|
if(jkxlDetailFee.getWbsCode().equals("24000000")){
|
|
jkxlDetailFee.setTotalFee(qtTotal);
|
|
jkxlDetailFee.setTotalFee(qtTotal);
|
|
|
|
+ jkxlDetailFee.setQtFee(qtTotal);
|
|
|
|
+ }
|
|
|
|
+ if(jkxlDetailFee.getWbsCode().equals("24260000")){
|
|
|
|
+ jkxlDetailFee.setTotalFee(integrityFee);
|
|
|
|
+ jkxlDetailFee.setQtFee(integrityFee);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -115,6 +126,7 @@ public List<JkxlDetailFee> findList(String id,String type){
|
|
qtTotal += jkxlDetailFee.getTotalFee();
|
|
qtTotal += jkxlDetailFee.getTotalFee();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ qtTotal = qtTotal + integrityFee;
|
|
for (JkxlDetailFee jkxlDetailFee : list) {
|
|
for (JkxlDetailFee jkxlDetailFee : list) {
|
|
if(jkxlDetailFee.getWbsCode().equals("40000000")){
|
|
if(jkxlDetailFee.getWbsCode().equals("40000000")){
|
|
jkxlDetailFee.setJzFee(jz2);
|
|
jkxlDetailFee.setJzFee(jz2);
|
|
@@ -144,6 +156,11 @@ public List<JkxlDetailFee> findList(String id,String type){
|
|
}
|
|
}
|
|
if(jkxlDetailFee.getWbsCode().equals("44000000")){
|
|
if(jkxlDetailFee.getWbsCode().equals("44000000")){
|
|
jkxlDetailFee.setTotalFee(qtTotal);
|
|
jkxlDetailFee.setTotalFee(qtTotal);
|
|
|
|
+ jkxlDetailFee.setQtFee(qtTotal);
|
|
|
|
+ }
|
|
|
|
+ if(jkxlDetailFee.getWbsCode().equals("44260000")){
|
|
|
|
+ jkxlDetailFee.setTotalFee(integrityFee);
|
|
|
|
+ jkxlDetailFee.setQtFee(integrityFee);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -160,6 +177,7 @@ public List<JkxlDetailFee> findList(String id,String type){
|
|
qtTotal += jkxlDetailFee.getTotalFee();
|
|
qtTotal += jkxlDetailFee.getTotalFee();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ qtTotal = qtTotal + integrityFee;
|
|
for (JkxlDetailFee jkxlDetailFee : list) {
|
|
for (JkxlDetailFee jkxlDetailFee : list) {
|
|
if(jkxlDetailFee.getWbsCode().equals("30000000")){
|
|
if(jkxlDetailFee.getWbsCode().equals("30000000")){
|
|
jkxlDetailFee.setTotalFee(az1+qtTotal);
|
|
jkxlDetailFee.setTotalFee(az1+qtTotal);
|
|
@@ -177,6 +195,11 @@ public List<JkxlDetailFee> findList(String id,String type){
|
|
}
|
|
}
|
|
if(jkxlDetailFee.getWbsCode().equals("34000000")){
|
|
if(jkxlDetailFee.getWbsCode().equals("34000000")){
|
|
jkxlDetailFee.setTotalFee(qtTotal);
|
|
jkxlDetailFee.setTotalFee(qtTotal);
|
|
|
|
+ jkxlDetailFee.setQtFee(qtTotal);
|
|
|
|
+ }
|
|
|
|
+ if(jkxlDetailFee.getWbsCode().equals("34260000")){
|
|
|
|
+ jkxlDetailFee.setTotalFee(integrityFee);
|
|
|
|
+ jkxlDetailFee.setQtFee(integrityFee);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|