Commit 33a66341 authored by suichenguang's avatar suichenguang

余证更改

parent e37e74e5
......@@ -48,6 +48,10 @@ public class FailedCardApi {
List<Map<String,Object>> resultList=new ArrayList<>();
for (Object o:jsonarray) {
Map<String,Object> resultMap =failedCardService.selectInfoByCardId(o.toString());
if (resultMap==null){
resultMap.put("ID_NO",o.toString());
resultMap.put("NAME","查无此人");
}
resultList.add(resultMap);
}
return resultList;
......@@ -62,6 +66,7 @@ public class FailedCardApi {
@Transactional(rollbackFor = Exception.class)
public Boolean insertFailedCard(@RequestBody String jsonStr){
JSONArray jsonarray = JSONArray.fromObject(jsonStr);
System.out.println("11111111111111111111"+String.valueOf(jsonarray));
for (Object o:jsonarray){
JSONObject jsonObject =(JSONObject)o;
Map<String,Object> idMap= failedCardService.selectCountIdByCardId(jsonObject.getString("cardId"));
......
......@@ -26,6 +26,7 @@ public class FailedCardServiceImpl implements FailedCardService {
@Override
public Map<String, Object> selectInfoByCardId(String cardId) {
Map<String, Object> result= failedCardMapper.selectInfoByCardId(cardId);
return result;
}
......
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