Commit be8bf801a9adb9c4af0a2bd7f2e75dc528ebe299
1 parent
5c65c170
油 电 重新统计修改
Showing
2 changed files
with
5 additions
and
3 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; |
| ... | ... | @@ -1330,7 +1331,7 @@ public class DlbServiceImpl extends BaseServiceImpl<Dlb,Integer> implements DlbS |
| 1330 | 1331 | for (int j = 0; j < dlbList.size(); j++) { |
| 1331 | 1332 | Dlb t=dlbList.get(j); |
| 1332 | 1333 | boolean fage=true; |
| 1333 | - if(t.getLp().isEmpty()){ | |
| 1334 | + if(StringUtils.isEmpty(t.getLp())){ | |
| 1334 | 1335 | fage=false; |
| 1335 | 1336 | }else{ |
| 1336 | 1337 | 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; |
| ... | ... | @@ -2039,7 +2040,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS |
| 2039 | 2040 | for (int j = 0; j < ylbList.size(); j++) { |
| 2040 | 2041 | Ylb t=ylbList.get(j); |
| 2041 | 2042 | boolean fage=true; |
| 2042 | - if(t.getLp().isEmpty()){ | |
| 2043 | + if(StringUtils.isEmpty(t.getLp())){ | |
| 2043 | 2044 | fage=false; |
| 2044 | 2045 | }else{ |
| 2045 | 2046 | for (int i = 0; i < listpbYc.size(); i++) { |
| ... | ... | @@ -2402,7 +2403,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS |
| 2402 | 2403 | for (int j = 0; j < ylbList.size(); j++) { |
| 2403 | 2404 | Ylb t=ylbList.get(j); |
| 2404 | 2405 | boolean fage=true; |
| 2405 | - if(t.getLp().isEmpty()){ | |
| 2406 | + if(StringUtils.isEmpty(t.getLp())){ | |
| 2406 | 2407 | fage=false; |
| 2407 | 2408 | }else{ |
| 2408 | 2409 | for (int i = 0; i < listpbYc.size(); i++) { | ... | ... |