|
@@ -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);
|