加盟商资格面试查询面试信息
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.HyPartnerInterviewDO;
|
||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
@@ -22,4 +23,12 @@ public interface HyPartnerInterviewMapper {
|
||||
* dateTime:2023-05-29 03:52
|
||||
*/
|
||||
int updateByPrimaryKeySelective(@Param("record") HyPartnerInterviewDO record);
|
||||
|
||||
/**
|
||||
* 根据加盟商id查询面试信息
|
||||
* @param partnerId
|
||||
* @return
|
||||
*/
|
||||
PartnerInterviewInfoVO queryByPartnerId(@Param("partnerId") String partnerId);
|
||||
|
||||
}
|
||||
@@ -22,6 +22,15 @@
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="PartnerInterviewInfoVO" type="com.cool.store.vo.PartnerInterviewInfoVO">
|
||||
<id column="interviewId" property="interviewId"/>
|
||||
<result column="partnerId" property="partnerId"/>
|
||||
<result column="interviewerId" property="interviewerId"/>
|
||||
<association property="partnerName" column="partnerId" select="queryPartnerName" javaType="string"/>
|
||||
<association property="interviewerName" column="interviewerId" select="queryInterviewerName" javaType="string"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id, status, partner_line_id, interview_arrangement_id, partner_id, deadline, interviewer,
|
||||
recorder, process_info, record_time, summary, auth_code, pass_file_url, expiry_date,
|
||||
@@ -202,4 +211,23 @@
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
|
||||
<!-- 根据加盟商id查询面试信息 -->
|
||||
<select id="queryByPartnerId" resultMap="PartnerInterviewInfoVO">
|
||||
SELECT t1.id interviewId, `status`, start_time, end_time, room_id, t1.partner_id partnerId, t1.interviewer interviewerId
|
||||
FROM hy_partner_interview t1
|
||||
LEFT JOIN hy_partner_interview_plan t2 ON t1.interview_arrangement_id = t2.id
|
||||
WHERE t1.partner_id = #{partnerId}
|
||||
</select>
|
||||
<select id="queryPartnerName" resultType="string">
|
||||
SELECT username
|
||||
FROM hy_partner_user_info
|
||||
WHERE partner_id = #{partnerId}
|
||||
</select>
|
||||
<select id="queryInterviewerName" resultType="string">
|
||||
SELECT name
|
||||
FROM enterprise_user
|
||||
WHERE deleted = 0
|
||||
AND user_id = #{interview}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -15,48 +15,31 @@ import java.util.Date;
|
||||
@ApiModel
|
||||
public class PartnerInterviewInfoVO {
|
||||
|
||||
|
||||
@ApiModelProperty("")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("加盟商用户名称")
|
||||
private String partnerUserName;
|
||||
@ApiModelProperty("会议id")
|
||||
private String interviewId;
|
||||
|
||||
@ApiModelProperty("预约状态 0 待预约;1待面试;2已开始;3待审核;4审批中;5审批通过;6拒绝")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty("hy_partner_line_info.id")
|
||||
private Long partnerLineId;
|
||||
@ApiModelProperty("会议开始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty("hy_partner_interview_arrangement.id")
|
||||
private Long interviewArrangementId;
|
||||
@ApiModelProperty("会议结束时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty("房间号")
|
||||
private String roomId;
|
||||
|
||||
@ApiModelProperty("加盟商用户ID")
|
||||
private String partnerId;
|
||||
|
||||
@ApiModelProperty("截止时间")
|
||||
private Date deadline;
|
||||
|
||||
@ApiModelProperty("审批发起时间")
|
||||
private Date approveTime;
|
||||
|
||||
@ApiModelProperty("意向合同号")
|
||||
private String authCode;
|
||||
|
||||
@ApiModelProperty("面试开始时间")
|
||||
private Date startTime;
|
||||
@ApiModelProperty("加盟商用户名称")
|
||||
private String partnerName;
|
||||
|
||||
@ApiModelProperty("面试官ID")
|
||||
private String interviewer;
|
||||
private String interviewerId;
|
||||
|
||||
@ApiModelProperty("面试官名称")
|
||||
private String interviewerName;
|
||||
|
||||
@ApiModelProperty("预约时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty("房间号")
|
||||
private String roomId;
|
||||
@ApiModelProperty("过程信息")
|
||||
private String processInfo;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.cool.store.service;
|
||||
|
||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||
|
||||
public interface PartnerInterviewService {
|
||||
|
||||
/**
|
||||
* 加盟商查询面试信息
|
||||
* @param partnerId
|
||||
* @return
|
||||
*/
|
||||
PartnerInterviewInfoVO queryByPartnerId(String partnerId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.cool.store.service.impl;
|
||||
|
||||
import com.cool.store.mapper.HyPartnerInterviewMapper;
|
||||
import com.cool.store.service.PartnerInterviewService;
|
||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class PartnerInterviewServiceImpl implements PartnerInterviewService {
|
||||
|
||||
@Autowired
|
||||
private HyPartnerInterviewMapper interviewMapper;
|
||||
|
||||
/**
|
||||
* 加盟商查询面试信息
|
||||
* @param partnerId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PartnerInterviewInfoVO queryByPartnerId(String partnerId) {
|
||||
return interviewMapper.queryByPartnerId(partnerId);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.cool.store.controller;
|
||||
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.PartnerInterviewService;
|
||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "加盟商资格面试")
|
||||
@RestController
|
||||
@RequestMapping("interview")
|
||||
public class InterviewController {
|
||||
|
||||
@Autowired
|
||||
private PartnerInterviewService interviewService;
|
||||
|
||||
@PostMapping("/queryByPartnerId")
|
||||
@ApiOperation("根据用户id查询面试信息")
|
||||
public ResponseResult<PartnerInterviewInfoVO> queryByPartnerId(@RequestParam String partnerId) {
|
||||
return ResponseResult.success(interviewService.queryByPartnerId(partnerId));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user