| | |
| | | import com.xzx.gc.user.mapper.SysMessageMapper; |
| | | import com.xzx.gc.user.mapper.UserHeadRelateMapper; |
| | | import com.xzx.gc.user.mapper.UserShareInfoMapper; |
| | | import com.xzx.gc.user.vo.HeadInfoVo; |
| | | import com.xzx.gc.user.vo.ViewSettingVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Autowired |
| | | private AccountMapper accountMapper; |
| | | |
| | | @Autowired |
| | | private UserShareInfoMapper userShareInfoMapper; |
| | | @Autowired |
| | |
| | | sysMessage.setFlag("2"); |
| | | sysMessageMapper.insert(sysMessage); |
| | | } |
| | | |
| | | public HeadInfoVo findHeadInfo(String userId) { |
| | | AccountInfo accountInfo = accountMapper.selectOneByUserId(userId); |
| | | |
| | | HeadInfoVo headInfoVo = userHeadRelateMapper.selectHeadStatisticsData(userId); |
| | | if (headInfoVo == null) { |
| | | headInfoVo = new HeadInfoVo(); |
| | | } |
| | | |
| | | headInfoVo.setIsHead(accountInfo.getIsHead()); |
| | | return headInfoVo; |
| | | } |
| | | } |