|
@@ -140,13 +140,13 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
&& f.getCode() != WidgetCodeEnum.LABEL && f.getCode() != WidgetCodeEnum.SIGN
|
|
|
&& f.getCode() != WidgetCodeEnum.OTHER) {
|
|
|
if (f.getInputType() != WidgetInputTypeEnum.ARRAY) {
|
|
|
- if (Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
+ if (Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
formFieldMap.put(f.getFormId(), value);
|
|
|
}
|
|
|
} else {
|
|
|
- if (Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
+ if (Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
JSONArray jsonArray = jsonObject.getJSONArray(SystemConstant.VALUE);
|
|
|
StringJoiner stringJoiner = new StringJoiner(",");
|
|
@@ -759,12 +759,12 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
String assistantEngineerUserIds = null;
|
|
|
List<FlowFormWidgetResult> formProperty = flowTaskResult.getFormProperty();
|
|
|
for (FlowFormWidgetResult f : formProperty) {
|
|
|
- if (f.getFormId().contains(SystemConstant.REGION_USER_ID) && Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
+ if (f.getFormId().contains(SystemConstant.REGION_USER_ID) && Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
regionUserId = Long.parseLong(value);
|
|
|
} else if (f.getFormId().contains(SystemConstant.ASSISTANT_ENGINEER_USER_ID) && Objects.nonNull(
|
|
|
- f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
+ f.getValue()) && !Objects.equals(f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
JSONArray jsonArray = jsonObject.getJSONArray(SystemConstant.VALUE);
|
|
|
StringJoiner stringJoiner = new StringJoiner(",");
|
|
@@ -773,7 +773,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
}
|
|
|
assistantEngineerUserIds = stringJoiner.toString();
|
|
|
} else if ((f.getFormId().contains(SystemConstant.ENGINEER_USER_ID) && Objects.nonNull(f.getValue()))
|
|
|
- && !Objects.equals(f.getValue(), "null")) {
|
|
|
+ && !Objects.equals(f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
engineerUserId = Long.parseLong(value);
|
|
@@ -954,7 +954,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
Long engineerUserId = null;
|
|
|
for (FlowFormWidgetResult f : formProperty) {
|
|
|
if (f.getFormId().contains(SystemConstant.THIRD_SERVICE_REGION_CB) && Objects.nonNull(
|
|
|
- f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
+ f.getValue()) && !Objects.equals(f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
if (Objects.nonNull(value) && Objects.nonNull(sopId) && value.equals("SCAN")) {
|
|
@@ -1129,7 +1129,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
for (FlowFormWidgetResult f : flowFormWidgetResultList) {
|
|
|
if ((f.getFormId().contains(SystemConstant.DEVICE_OUT_TIME) || f.getFormId()
|
|
|
.contains(SystemConstant.DEVICE_IN_TIME)) && Objects.nonNull(f.getValue()) && !Objects.equals(
|
|
|
- f.getValue(), "null")) {
|
|
|
+ f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
deviceInOutTime = Long.parseLong(value);
|
|
@@ -1138,7 +1138,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
InOutTypeEnum.IN;
|
|
|
} else if ((f.getFormId().contains(SystemConstant.DEVICE_OUT_TABLE) || f.getFormId()
|
|
|
.contains(SystemConstant.DEVICE_IN_TABLE)) && Objects.nonNull(f.getValue()) && !Objects.equals(
|
|
|
- f.getValue(), "null")) {
|
|
|
+ f.getValue(), "{\"value\":null}")) {
|
|
|
if (Objects.isNull(type)) {
|
|
|
type = f.getFormId().contains(SystemConstant.DEVICE_OUT_TABLE) ?
|
|
|
InOutTypeEnum.OUT :
|
|
@@ -1342,7 +1342,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
Long processLimitedTime = null;
|
|
|
List<FlowFormWidgetResult> formProperty = flowTaskResult.getFormProperty();
|
|
|
for (FlowFormWidgetResult f : formProperty) {
|
|
|
- if (f.getFormId().contains(fieldId) && Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
+ if (f.getFormId().contains(fieldId) && Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "{\"value\":null}")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
processLimitedTime = Long.parseLong(value);
|