Commit 67e44669 authored by hongguangwu's avatar hongguangwu

MVP1.6.2-工资原表识别-优化

parent ac7cf30a
...@@ -365,36 +365,57 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi ...@@ -365,36 +365,57 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi
}*/ }*/
else if ("出差事由".equals(((JSONObject) title.get(0)).get("text"))) { else if ("出差事由".equals(((JSONObject) title.get(0)).get("text"))) {
value = (JSONObject) content.get(VALUESTR); value = (JSONObject) content.get(VALUESTR);
if (Common.isNotNull(value)) {
reason = value.getString("text"); reason = value.getString("text");
}
} else if ("随行人员".equals(((JSONObject) title.get(0)).get("text"))) { } else if ("随行人员".equals(((JSONObject) title.get(0)).get("text"))) {
value = (JSONObject) content.get(VALUESTR); value = (JSONObject) content.get(VALUESTR);
if (Common.isNotNull(value)) {
person = value.getString("text"); person = value.getString("text");
}
} else if ("出差地点".equals(((JSONObject) title.get(0)).get("text"))) { } else if ("出差地点".equals(((JSONObject) title.get(0)).get("text"))) {
value = (JSONObject) content.get(VALUESTR); value = (JSONObject) content.get(VALUESTR);
if (Common.isNotNull(value)) {
address = value.getString("text"); address = value.getString("text");
}
} else if ("出差地点级别".equals(((JSONObject) title.get(0)).get("text"))) { } else if ("出差地点级别".equals(((JSONObject) title.get(0)).get("text"))) {
value = (JSONObject) content.get(VALUESTR); value = (JSONObject) content.get(VALUESTR);
if (Common.isNotNull(value)) {
selector = (JSONObject) value.get("selector"); selector = (JSONObject) value.get("selector");
if (Common.isNotNull(selector)) {
options = (JSONArray) selector.get("options"); options = (JSONArray) selector.get("options");
if (Common.isNotNull(options)) {
options0 = (JSONObject) options.get(0); options0 = (JSONObject) options.get(0);
if (Common.isNotNull(options0)) {
options0value = (JSONArray) options0.get(VALUESTR); options0value = (JSONArray) options0.get(VALUESTR);
if (Common.isNotNull(options0value)) {
options0value0 = (JSONObject) options0value.get(0); options0value0 = (JSONObject) options0value.get(0);
if (Common.isNotNull(options0value0)) {
addressLevel = options0value0.getString("text"); addressLevel = options0value0.getString("text");
}
}
}
}
}
}
} else if (((JSONObject) title.get(0)).getString("text").contains("交通补助")) { } else if (((JSONObject) title.get(0)).getString("text").contains("交通补助")) {
value = (JSONObject) content.get(VALUESTR); value = (JSONObject) content.get(VALUESTR);
if (Common.isNotNull(value.getString("text"))) { if (value != null && Common.isNotNull(value.getString("text"))) {
jiaoTong = value.getString("text"); jiaoTong = value.getString("text");
} }
} else if (((JSONObject) title.get(0)).getString("text").contains("餐饮补助")) { } else if (((JSONObject) title.get(0)).getString("text").contains("餐饮补助")) {
value = (JSONObject) content.get(VALUESTR); value = (JSONObject) content.get(VALUESTR);
if (Common.isNotNull(value.getString("text"))) { if (value != null && Common.isNotNull(value.getString("text"))) {
canYin = value.getString("text"); canYin = value.getString("text");
} }
} else if ("出行工具".equals(((JSONObject) title.get(0)).get("text"))) { } else if ("出行工具".equals(((JSONObject) title.get(0)).get("text"))) {
value = (JSONObject) content.get(VALUESTR); value = (JSONObject) content.get(VALUESTR);
if (Common.isNotNull(value)) {
selector = (JSONObject) value.get("selector"); selector = (JSONObject) value.get("selector");
if (Common.isNotNull(selector)) {
options = (JSONArray) selector.get("options"); options = (JSONArray) selector.get("options");
for (int j=0;j<options.size();j++) { if (Common.isNotNull(options)) {
for (int j = 0; j < options.size(); j++) {
options0 = (JSONObject) options.get(j); options0 = (JSONObject) options.get(j);
options0value = (JSONArray) options0.get(VALUESTR); options0value = (JSONArray) options0.get(VALUESTR);
options0value0 = (JSONObject) options0value.get(0); options0value0 = (JSONObject) options0value.get(0);
...@@ -402,6 +423,9 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi ...@@ -402,6 +423,9 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi
} }
} }
} }
}
}
}
reimburse.setFdNewBegin(newBegin); reimburse.setFdNewBegin(newBegin);
reimburse.setFdNewEnd(newEnd); reimburse.setFdNewEnd(newEnd);
reimburse.setFdReason(reason); reimburse.setFdReason(reason);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment