| | |
| | | JhyInfo jhyInfo = new JhyInfo(); |
| | | BeanUtil.copyProperties(applyDto, jhyInfo); |
| | | jhyInfo.setCreatedTime(new Date()); |
| | | jhyInfo.setIsJhy(JhyInfo.IS_JHY_N); |
| | | jhyInfo.setCardPos(applyDto.getCardPos()); |
| | | jhyInfo.setStatus(JhyInfo.CHECK_WAIT); |
| | | jhyInfoMapper.insert(jhyInfo); |
| | | } |
| | | |
| | |
| | | return jhyInfo.getStatus(); |
| | | } |
| | | |
| | | public boolean isJhy(String userId) { |
| | | public int isJhy(String userId) { |
| | | JhyInfo jhyInfo = jhyInfoMapper.selectJhyInfoByUserId(userId); |
| | | if (jhyInfo == null) { |
| | | return false; |
| | | return 0; |
| | | } |
| | | |
| | | return JhyInfo.CHECK_PASS.equals(jhyInfo.getStatus()); |
| | | if (JhyInfo.CHECK_REFUSE.equals(jhyInfo.getStatus())) { |
| | | return 0; |
| | | } |
| | | |
| | | if (JhyInfo.CHECK_PASS.equals(jhyInfo.getStatus())) { |
| | | return 1; |
| | | } else { |
| | | return 2; |
| | | } |
| | | } |
| | | |
| | | public Map<String, Object> queryList(JhyInfoListDto jhyInfoListDto) { |