Commit 1f99ffe509b5aa2d3f5a1de34b8e89611a28b205
1 parent
b020e9c6
油 电量 重新统计
Showing
2 changed files
with
4 additions
and
2 deletions
src/main/java/com/bsth/service/oil/impl/DlbServiceImpl.java
| @@ -20,6 +20,7 @@ import java.util.Map; | @@ -20,6 +20,7 @@ import java.util.Map; | ||
| 20 | import javax.transaction.Transactional; | 20 | import javax.transaction.Transactional; |
| 21 | 21 | ||
| 22 | import org.apache.commons.lang3.StringEscapeUtils; | 22 | import org.apache.commons.lang3.StringEscapeUtils; |
| 23 | +import org.apache.commons.lang3.StringUtils; | ||
| 23 | import org.slf4j.Logger; | 24 | import org.slf4j.Logger; |
| 24 | import org.slf4j.LoggerFactory; | 25 | import org.slf4j.LoggerFactory; |
| 25 | import org.springframework.beans.factory.annotation.Autowired; | 26 | import org.springframework.beans.factory.annotation.Autowired; |
| @@ -1032,7 +1033,7 @@ public class DlbServiceImpl extends BaseServiceImpl<Dlb,Integer> implements DlbS | @@ -1032,7 +1033,7 @@ public class DlbServiceImpl extends BaseServiceImpl<Dlb,Integer> implements DlbS | ||
| 1032 | for (int j = 0; j < dlbList.size(); j++) { | 1033 | for (int j = 0; j < dlbList.size(); j++) { |
| 1033 | Dlb t=dlbList.get(j); | 1034 | Dlb t=dlbList.get(j); |
| 1034 | boolean fage=true; | 1035 | boolean fage=true; |
| 1035 | - if(t.getLp().isEmpty()){ | 1036 | + if(StringUtils.isEmpty(t.getLp())){ |
| 1036 | fage=false; | 1037 | fage=false; |
| 1037 | }else{ | 1038 | }else{ |
| 1038 | for (int i = 0; i < listpbDc.size(); i++) { | 1039 | for (int i = 0; i < listpbDc.size(); i++) { |
src/main/java/com/bsth/service/oil/impl/YlbServiceImpl.java
| @@ -16,6 +16,7 @@ import java.util.Map; | @@ -16,6 +16,7 @@ import java.util.Map; | ||
| 16 | import javax.transaction.Transactional; | 16 | import javax.transaction.Transactional; |
| 17 | 17 | ||
| 18 | import org.apache.commons.lang3.StringEscapeUtils; | 18 | import org.apache.commons.lang3.StringEscapeUtils; |
| 19 | +import org.apache.commons.lang3.StringUtils; | ||
| 19 | import org.slf4j.Logger; | 20 | import org.slf4j.Logger; |
| 20 | import org.slf4j.LoggerFactory; | 21 | import org.slf4j.LoggerFactory; |
| 21 | import org.springframework.beans.factory.annotation.Autowired; | 22 | import org.springframework.beans.factory.annotation.Autowired; |
| @@ -1717,7 +1718,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -1717,7 +1718,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 1717 | for (int j = 0; j < ylbList.size(); j++) { | 1718 | for (int j = 0; j < ylbList.size(); j++) { |
| 1718 | Ylb t=ylbList.get(j); | 1719 | Ylb t=ylbList.get(j); |
| 1719 | boolean fage=true; | 1720 | boolean fage=true; |
| 1720 | - if(t.getLp().isEmpty()){ | 1721 | + if(StringUtils.isEmpty(t.getLp())){ |
| 1721 | fage=false; | 1722 | fage=false; |
| 1722 | }else{ | 1723 | }else{ |
| 1723 | for (int i = 0; i < listpbYc.size(); i++) { | 1724 | for (int i = 0; i < listpbYc.size(); i++) { |