| | |
| | | user.setDispatch("1"); |
| | | user.setExaminationType("0"); |
| | | user.setAccount(user.getRealName()); |
| | | user.setStatus(1); |
| | | |
| | | //密码加密 |
| | | if (Func.isNotEmpty(user.getCardid())) { |
| | |
| | | }else if (result.getCode()==202){ |
| | | flag = 3; |
| | | break; |
| | | }else if (result.getCode()==203){ |
| | | flag = 4; |
| | | break; |
| | | }else{ |
| | | //计数 |
| | | count++; |
| | |
| | | return R.data(200, null, "新增成功!"); |
| | | }else if (flag==3){ |
| | | throw new ServiceException(result.getMsg()); |
| | | }else if (flag==4){ |
| | | // return R.data(201, null, "保安证编号不匹配,请核实!也可通过提供保安证件信息提交核实申请!"); |
| | | return R.data(201, null, "保安证编号不匹配,请核实!"); |
| | | }else{ |
| | | //返回 |
| | | return R.data(400, null, "新增失败!"); |