Merge branch 'cc_20230520_partner' of http://gitlab.coolcollege.cn/hangzhou/java/coolstore-partner-manage into cc_20230520_partner
# Conflicts: # coolstore-partner-dao/src/main/java/com/cool/store/mapper/HyPartnerInterviewMapper.java # coolstore-partner-webb/src/main/resources/application-dev.properties
This commit is contained in:
@@ -35,6 +35,11 @@
|
||||
<association property="interviewerName" column="interviewerId" select="queryInterviewerName" javaType="string"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="partnerEnterInterviewVO" type="com.cool.store.vo.EnterInterviewVO">
|
||||
<association property="partnerName" column="partner_id" select="queryPartnerName"></association>
|
||||
<association property="interviewerName" column="interviewer" select="queryInterviewerName"></association>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="passLetterDetail" type="com.cool.store.vo.PartnerPassLetterDetailVO">
|
||||
<association property="partnerName" column="partner_id" select="queryPartnerName"></association>
|
||||
<association property="verifyCity" column="partner_id" select="getVerifyCity"></association>
|
||||
@@ -315,23 +320,27 @@
|
||||
</update>
|
||||
|
||||
<!-- 根据会议 id 获取面试官 id -->
|
||||
<select id="getInterviewerByInterviewId" resultType="java.lang.String">
|
||||
SELECT interviewer
|
||||
<select id="getInterviewerByInterviewId" resultMap="partnerEnterInterviewVO">
|
||||
SELECT interviewer, interviewer interviewer_id, partner_id
|
||||
FROM hy_partner_interview
|
||||
WHERE id = #{interviewId}
|
||||
</select>
|
||||
|
||||
<!-- 获取通知函详情 -->
|
||||
<select id="getPassLetterDetail" resultMap="passLetterDetail">
|
||||
SELECT pass_code, pass_file_url, expiry_date, partner_id
|
||||
SELECT auth_code, pass_code, pass_file_url, expiry_date, partner_id
|
||||
FROM hy_partner_interview
|
||||
WHERE id = #{interviewId}
|
||||
</select>
|
||||
<!-- 获取意向开店区域 -->
|
||||
<select id="getVerifyCity" resultType="string">
|
||||
SELECT want_shop_area
|
||||
FROM hy_partner_intent_info
|
||||
WHERE partner_id = #{partner_id}
|
||||
SELECT area_path
|
||||
FROM hy_open_area_info
|
||||
WHERE id = (
|
||||
SELECT want_shop_area
|
||||
FROM hy_partner_intent_info
|
||||
WHERE partner_id = #{partner_id}
|
||||
)
|
||||
</select>
|
||||
<select id="selectByPrimaryKeySelective" resultType="com.cool.store.entity.HyPartnerInterviewDO">
|
||||
select
|
||||
@@ -343,4 +352,21 @@
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 生成通过函 pdf 后修改 -->
|
||||
<update id="updatePassLetterInfo">
|
||||
UPDATE hy_partner_interview
|
||||
<set>
|
||||
<if test="passCode != null and passCode != ''">
|
||||
pass_code = #{passCode},
|
||||
</if>
|
||||
<if test="passFileUrl != null and passFileUrl != ''">
|
||||
pass_file_url = #{passFileUrl},
|
||||
</if>
|
||||
<if test="expiryDate != null and expiryDate != ''">
|
||||
expiry_date = #{expiryDate}
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{interviewId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user