|
@@ -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()) && !f.getValue().contains("null")) {
|
|
|
+ if (Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
formFieldMap.put(f.getFormId(), value);
|
|
|
}
|
|
|
} else {
|
|
|
- if (Objects.nonNull(f.getValue()) && !f.getValue().contains("null")) {
|
|
|
+ if (Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
JSONArray jsonArray = jsonObject.getJSONArray(SystemConstant.VALUE);
|
|
|
StringJoiner stringJoiner = new StringJoiner(",");
|
|
@@ -759,13 +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()) && !f.getValue()
|
|
|
- .contains("null")) {
|
|
|
+ if (f.getFormId().contains(SystemConstant.REGION_USER_ID) && Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "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()) && !f.getValue().contains("null")) {
|
|
|
+ f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
JSONArray jsonArray = jsonObject.getJSONArray(SystemConstant.VALUE);
|
|
|
StringJoiner stringJoiner = new StringJoiner(",");
|
|
@@ -774,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()))
|
|
|
- && !f.getValue().contains("null")) {
|
|
|
+ && !Objects.equals(f.getValue(), "null")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
engineerUserId = Long.parseLong(value);
|
|
@@ -955,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()) && !f.getValue().contains("null")) {
|
|
|
+ f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
if (Objects.nonNull(value) && Objects.nonNull(sopId) && value.equals("SCAN")) {
|
|
@@ -1254,7 +1253,7 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
flowResult.setSetupMap(setupMap);
|
|
|
tfCustomFlowEntity.updateInfo(sysUser.getId());
|
|
|
tfCustomFlowEntity.setFlowProcessVar(JacksonUtil.parseJson(flowResult));
|
|
|
-// if (tfFlowApprove.getStatus() != FlowStatusEnum.FINISH && tfFlowApprove.getStatus() != FlowStatusEnum.END) {
|
|
|
+ // if (tfFlowApprove.getStatus() != FlowStatusEnum.FINISH && tfFlowApprove.getStatus() != FlowStatusEnum.END) {
|
|
|
if (tfFlowApprove.getStatus() != FlowStatusEnum.END) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
CrmProjectResult crmProjectResult = tbCrmService.findCrmProjectBySopNoOrCrmNo(tfCustomFlowEntity.getCode(),
|
|
@@ -1275,11 +1274,11 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
|
|
|
map.put(SystemConstant.SOURCE, "save");
|
|
|
tbSopInfoService.saveJobRemind(map);
|
|
|
|
|
|
- if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW
|
|
|
- && (tfFlowApprove.getSetup().intValue() >= 4 || tfFlowApprove.getSetup().intValue() == 0)) {
|
|
|
+ if (tfCustomFlow.getType() == TFCustomTypeEnum.OFFICE_SOP_FLOW && (tfFlowApprove.getSetup().intValue() >= 4
|
|
|
+ || tfFlowApprove.getSetup().intValue() == 0)) {
|
|
|
tbSopInfoService.sopDeviceInOutSave(map, 4);
|
|
|
- } else if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW
|
|
|
- && (tfFlowApprove.getSetup().intValue() >= 4 || tfFlowApprove.getSetup().intValue() == 0)) {
|
|
|
+ } else if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW && (
|
|
|
+ tfFlowApprove.getSetup().intValue() >= 4 || tfFlowApprove.getSetup().intValue() == 0)) {
|
|
|
tbSopInfoService.sopDeviceInOutSave(map, 4);
|
|
|
if (tfFlowApprove.getSetup().intValue() > 5 || tfFlowApprove.getSetup().intValue() == 0) {
|
|
|
FlowTaskResult flowTaskResultDeviceOut = this.getFormProperties(tfCustomFlowEntity, 4);
|
|
@@ -1343,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()) && !f.getValue().contains("null")) {
|
|
|
+ if (f.getFormId().contains(fieldId) && Objects.nonNull(f.getValue()) && !Objects.equals(f.getValue(), "null")) {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(f.getValue());
|
|
|
String value = jsonObject.getString(SystemConstant.VALUE);
|
|
|
processLimitedTime = Long.parseLong(value);
|