Commit 45d7ad05 by Lee Jaebin

作業状況の変更をデータベースに更新する処理追加

parent a1f25cd5
...@@ -1547,19 +1547,26 @@ public class OperationLogic extends AbstractLogic { ...@@ -1547,19 +1547,26 @@ public class OperationLogic extends AbstractLogic {
String taskCode = null; String taskCode = null;
Integer taskStatus = null; Integer taskStatus = null;
if (taskJson != null) { if (taskJson != null) {
// 作業コード取得
Iterator taskKeys = taskJson.keys(); Iterator taskKeys = taskJson.keys();
while (taskKeys.hasNext()) { while (taskKeys.hasNext()) {
String itemKey = (String) taskKeys.next(); String itemKey = (String) taskKeys.next();
// 作業コード取得
if (itemKey.startsWith("q_1_")) { if (itemKey.startsWith("q_1_")) {
taskCode = taskJson.getString(itemKey); taskCode = taskJson.getString(itemKey);
} }
// 報告状況取得
if (itemKey.startsWith("q_3_")) {
taskStatus = taskJson.getInt(itemKey);
}
} }
} }
if (taskDto != null) { if (taskDto != null) {
// 更新 // 更新
taskDto.taskCode = taskCode; if (taskDto.taskCode != null) {
taskDto.taskCode = taskCode;
}
if (hotSpotInfo != null) { if (hotSpotInfo != null) {
taskDto.taskHotSpotInfo = hotSpotInfo; taskDto.taskHotSpotInfo = hotSpotInfo;
......
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