Commit 97c815ea authored by dahai's avatar dahai

PUSH

parent 07e580c0
package com.yxproject.start.api;
import com.yxproject.start.entity.FailedCardEntity;
import com.yxproject.start.entity.FailedCardReasonDicEntity;
import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.entity.TaskEntity;
......@@ -144,13 +143,13 @@ public class FailedCardApi {
JSONObject jsonObject = (JSONObject) o;
String name = ((JSONObject) o).getString("name");
String result = failedCardService.selectSpecialCard(((JSONObject) o).getString("cardId"));
String result = failedCardService.selectSpecialCard(formateAcceptNo(((JSONObject) o).getString("cardId")));
Map<String, Object> idMap;
//判断是否是特殊证件
if (result != null && result != "") {
idMap = failedCardService.selectDataById(jsonObject.getString("cardId"));
idMap = failedCardService.selectDataById(formateAcceptNo(jsonObject.getString("cardId")));
} else {
idMap = failedCardService.selectCountIdByCardId(jsonObject.getString("cardId"));
idMap = failedCardService.selectCountIdByCardId(formateAcceptNo(jsonObject.getString("cardId")));
}
int initiator = 5;
failedCardService.insertFailedCard(jsonObject.getString("failedCardReasonId"), idMap.get("ACCEPT_NO").toString(), idMap.get("TASK_ID").toString(), String.valueOf(initiator), jsonObject.getString("note"), idMap.get("WORK_GROUP").toString(), name);
......
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