JiangChongBo 2 년 전
부모
커밋
67601c4595
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      src/main/java/com/caimei/model/vo/RossChallengeRoundVo.java
  2. 3 1
      src/main/resources/mapper/AuthMapper.xml

+ 4 - 0
src/main/java/com/caimei/model/vo/RossChallengeRoundVo.java

@@ -48,4 +48,8 @@ public class RossChallengeRoundVo {
      * 参赛时间(用于前端展示)
      */
     private String contestDate;
+    /**
+     * 机构名称
+     */
+    private String authParty;
 }

+ 3 - 1
src/main/resources/mapper/AuthMapper.xml

@@ -828,7 +828,9 @@
         select * from cm_ross_challenge_round where userName=#{userName} and contestStatus=1
     </select>
     <select id="getcontestedInfo" resultType="com.caimei.model.vo.RossChallengeRoundVo">
-        select * from cm_ross_challenge_round where  contestStatus=1
+        select cr.*,cba.authParty from cm_ross_challenge_round cr
+        left join cm_brand_auth cba on cr.authId=cba.id
+        where  contestStatus=1
     </select>
     <select id="getVideoAll" resultType="com.caimei.model.vo.RossChallengeVideo">
         select cr.*,cba.authParty from cm_ross_challenge_video cr