wangliang 1 年之前
父节点
当前提交
1e23d66bc7

+ 2 - 2
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBSopInfoServiceImpl.java

@@ -1128,8 +1128,8 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
             InOutTypeEnum type = null;
             Long deviceInOutTime = null;
             for (FlowFormWidgetResult f : flowFormWidgetResultList) {
-                if (f.getFormId().contains(SystemConstant.DEVICE_OUT_TIME) || f.getFormId()
-                        .contains(SystemConstant.DEVICE_IN_TIME)) {
+                if ((f.getFormId().contains(SystemConstant.DEVICE_OUT_TIME) || f.getFormId()
+                        .contains(SystemConstant.DEVICE_IN_TIME)) && Objects.nonNull(f.getValue())) {
                     JSONObject jsonObject = JSONObject.parseObject(f.getValue());
                     String value = jsonObject.getString(SystemConstant.VALUE);
                     deviceInOutTime = Long.parseLong(value);