Commit 5d145056 authored by hongguangwu's avatar hongguangwu

MVP1.6.3-HCM HCM的出差接口-历史单子出行工具、人员,置为空,人数为1

parent 36c4d707
...@@ -327,17 +327,20 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi ...@@ -327,17 +327,20 @@ public class QiWeiServiceImpl extends ServiceImpl<EkpQiweiChuchaiMapper, EkpQiwi
} }
} }
} }
try {
toolList = JSON.parseArray(formData.getString("出行工具"), JSONObject.class); toolList = JSON.parseArray(formData.getString("出行工具"), JSONObject.class);
int i = 0; int i = 0;
if (toolList != null && !toolList.isEmpty()) { if (toolList != null && !toolList.isEmpty()) {
for (JSONObject tool : toolList) { for (JSONObject tool : toolList) {
if (i++ == 0) { if (i++ == 0) {
tools = tool.getString("label"); tools = tool.getString("label");
} else { } else {
tools += ";" + tool.getString("label"); tools += ";" + tool.getString("label");
}
} }
} }
} catch (Exception e) {
tools = formData.getString("出行工具");
} }
} catch (Exception e ) { } catch (Exception e ) {
person = "-"; person = "-";
......
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