yaozhixue il y a 1 an
Parent
commit
c6c4fe85c0

+ 2 - 1
src/main/java/com/zfire/jiasm/syncdata/service/impl/GLPPLeiBieServiceImpl.java

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
 import com.zfire.jiasm.syncdata.base.BaseService;
 import com.zfire.jiasm.syncdata.constant.DictTypeEnum;
 import com.zfire.jiasm.syncdata.constant.ServiceCategoryEnum;
@@ -526,7 +527,7 @@ public class GLPPLeiBieServiceImpl implements GLPPLeiBieService {
         v.setSeriesName(item.getXiimc());
         v.setMaterialNumber(item.getJxno());
         v.setSettlePrice(BigDecimal.ZERO);
-        if (item.getJsdj() != null){
+        if (StringUtils.isNotEmpty(item.getJsdj())){
             v.setSettlePrice(BigDecimal.valueOf(Long.valueOf(item.getJsdj())));
         }
         v.setInstallSettleType(item.getAzjsfl());