Ver Fonte

新增个人碳汇量统计和证书生成去除最后一个逗号

赵冬冬 há 4 anos atrás
pai
commit
9d9d18e9d8

+ 1 - 2
carbon-h5/carbon-h5-service/src/main/java/com/hcloud/microserver/h5/service/impl/CustomerCarbonValServiceImpl.java

@@ -11,7 +11,6 @@ import com.hcloud.microserver.h5.service.CustomerCarbonValService;
 import org.springframework.beans.BeanUtils;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
-import org.springframework.util.StringUtils;
 
 import javax.annotation.Resource;
 import java.math.BigDecimal;
@@ -66,7 +65,7 @@ public class CustomerCarbonValServiceImpl implements CustomerCarbonValService {
             BigDecimal subCarbonAmount = new BigDecimal(0);
             ContributionBO subcarbonValRe = subcarbonVal.get(tCustomerId);
             //获取不到不赋值
-            if(!StringUtils.isEmpty(subcarbonValRe)){
+            if(!org.springframework.util.StringUtils.isEmpty(subcarbonValRe)){
                 subCarbonAmount = subcarbonValRe.getCarbonAmount();
             }
             //得到剩余碳汇量