| | |
| | | import com.xzx.gc.entity.AccountInfo; |
| | | import com.xzx.gc.entity.JhyInfo; |
| | | import com.xzx.gc.entity.ScoreDetails; |
| | | import com.xzx.gc.user.dto.AddScoreNumDto; |
| | | import com.xzx.gc.user.dto.ExamineJwyDto; |
| | | import com.xzx.gc.user.dto.JhyApplyDto; |
| | | import com.xzx.gc.user.dto.JhyInfoListDto; |
| | | import com.xzx.gc.user.dto.*; |
| | | import com.xzx.gc.user.mapper.AccountMapper; |
| | | import com.xzx.gc.user.mapper.JhyInfoMapper; |
| | | import com.xzx.gc.user.vo.GetScoreNumVo; |
| | | import com.xzx.gc.user.vo.JhyInfoListVo; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | accountMapper.insertScoreDetailsRet(scoreDetailsRet); |
| | | } |
| | | } |
| | | |
| | | public GetScoreNumVo getScoreNum(GetScoreNumDto model) { |
| | | GetScoreNumVo getScoreNumVo = new GetScoreNumVo(); |
| | | Example exampleAccount = new Example(AccountInfo.class); |
| | | Example.Criteria criteriaAccount = exampleAccount.createCriteria(); |
| | | criteriaAccount.andEqualTo("userId",model.getUserId()); |
| | | List<AccountInfo> accountInfos = accountMapper.selectByExample(exampleAccount); |
| | | if(CollUtil.isNotEmpty(accountInfos)){ |
| | | AccountInfo accountInfo = accountInfos.get(0); |
| | | Integer collectScore = Integer.parseInt(accountInfo.getCollectScore()); |
| | | getScoreNumVo.setScore(new BigDecimal(collectScore)); |
| | | } |
| | | return getScoreNumVo; |
| | | } |
| | | } |