7 changed files with 98 additions and 3 deletions
@ -0,0 +1,26 @@ |
|||
package com.ccsens.mt.persist.dao; |
|||
|
|||
import com.ccsens.mt.bean.dto.CompeteDto; |
|||
import com.ccsens.mt.bean.dto.TopicDto; |
|||
import com.ccsens.mt.bean.vo.ProvinceCompeteVo; |
|||
import com.ccsens.mt.bean.vo.VoteVo; |
|||
import com.ccsens.mt.persist.mapper.MtVoteMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: lihong |
|||
* @time: 2020/10/27 18:52 |
|||
*/ |
|||
public interface ProvinceDao extends MtVoteMapper { |
|||
/** |
|||
* 查询当前用户参赛单位基本信息 |
|||
* @param |
|||
* @return |
|||
*/ |
|||
ProvinceCompeteVo.CompeteCompany getCompany(Long competeTimeId, Long userId); |
|||
|
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.mt.persist.dao.ProvinceDao"> |
|||
|
|||
<select id="getCompany" resultType="com.ccsens.mt.bean.vo.ProvinceCompeteVo$CompeteCompany"> |
|||
select |
|||
name, |
|||
contacts_name, |
|||
contacts_phone, |
|||
leader_num, |
|||
join_num |
|||
from |
|||
t_compete_company |
|||
where user_id = #{userId} |
|||
and compete_time_id =#{competeTimeId} |
|||
</select> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue