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 | 20 | import javax.transaction.Transactional; |
| 21 | 21 | |
| 22 | 22 | import org.apache.commons.lang3.StringEscapeUtils; |
| 23 | +import org.apache.commons.lang3.StringUtils; | |
| 23 | 24 | import org.slf4j.Logger; |
| 24 | 25 | import org.slf4j.LoggerFactory; |
| 25 | 26 | import org.springframework.beans.factory.annotation.Autowired; |
| ... | ... | @@ -1032,7 +1033,7 @@ public class DlbServiceImpl extends BaseServiceImpl<Dlb,Integer> implements DlbS |
| 1032 | 1033 | for (int j = 0; j < dlbList.size(); j++) { |
| 1033 | 1034 | Dlb t=dlbList.get(j); |
| 1034 | 1035 | boolean fage=true; |
| 1035 | - if(t.getLp().isEmpty()){ | |
| 1036 | + if(StringUtils.isEmpty(t.getLp())){ | |
| 1036 | 1037 | fage=false; |
| 1037 | 1038 | }else{ |
| 1038 | 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 | 16 | import javax.transaction.Transactional; |
| 17 | 17 | |
| 18 | 18 | import org.apache.commons.lang3.StringEscapeUtils; |
| 19 | +import org.apache.commons.lang3.StringUtils; | |
| 19 | 20 | import org.slf4j.Logger; |
| 20 | 21 | import org.slf4j.LoggerFactory; |
| 21 | 22 | import org.springframework.beans.factory.annotation.Autowired; |
| ... | ... | @@ -1717,7 +1718,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS |
| 1717 | 1718 | for (int j = 0; j < ylbList.size(); j++) { |
| 1718 | 1719 | Ylb t=ylbList.get(j); |
| 1719 | 1720 | boolean fage=true; |
| 1720 | - if(t.getLp().isEmpty()){ | |
| 1721 | + if(StringUtils.isEmpty(t.getLp())){ | |
| 1721 | 1722 | fage=false; |
| 1722 | 1723 | }else{ |
| 1723 | 1724 | for (int i = 0; i < listpbYc.size(); i++) { | ... | ... |