包头工作流bug修复

This commit is contained in:
guoshengxiong 2025-01-21 18:48:13 +08:00
parent 0abcd24550
commit b38dc8dcc8

View File

@ -380,14 +380,16 @@ public class ProcessTaskServiceImpl implements ProcessTaskService {
String valueType = jo.getString("valueType");
if (Objects.equals(valueType, "Array")) {
JSONArray items = jo.getJSONObject("props").getJSONArray("items");
for (int j = 0; j < items.size(); j++) {
JSONObject jo1 = items.getJSONObject(j);
String valueType1 = jo.getString("valueType");
if (Objects.equals(valueType1, "Date")) {
if (jo1.getString("id").equals(fieldId)) {
find = true;
format = jo1.getJSONObject("props").getString("format");
break;
if (items != null) {
for (int j = 0; j < items.size(); j++) {
JSONObject jo1 = items.getJSONObject(j);
String valueType1 = jo.getString("valueType");
if (Objects.equals(valueType1, "Date")) {
if (jo1.getString("id").equals(fieldId)) {
find = true;
format = jo1.getJSONObject("props").getString("format");
break;
}
}
}
}