Browse Source

修改友谊赛 赛事表

zs 1 year ago
parent
commit
5c1f521e90

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/MatchFriendshipController.java

@@ -1,4 +1,4 @@
-package com.ruoyi.web.controller.system;
+package com.ruoyi.system.controller;
 
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
@@ -25,7 +25,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
  * 友谊赛Controller
  * 
  * @author ruoyi
- * @date 2023-11-09
+ * @date 2023-12-04
  */
 @RestController
 @RequestMapping("/system/friendship")

+ 29 - 1
ruoyi-system/src/main/java/com/ruoyi/system/domain/MatchFriendship.java

@@ -12,7 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
  * 友谊赛对象 match_friendship
  * 
  * @author ruoyi
- * @date 2023-11-09
+ * @date 2023-12-04
  */
 public class MatchFriendship extends BaseEntity
 {
@@ -75,6 +75,14 @@ public class MatchFriendship extends BaseEntity
     @Excel(name = "最佳防守")
     private String isDefend;
 
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** 简介 */
+    @Excel(name = "简介")
+    private String brief;
+
     public void setId(Long Id) 
     {
         this.Id = Id;
@@ -201,6 +209,24 @@ public class MatchFriendship extends BaseEntity
     {
         return isDefend;
     }
+    public void setTitle(String title) 
+    {
+        this.title = title;
+    }
+
+    public String getTitle() 
+    {
+        return title;
+    }
+    public void setBrief(String brief) 
+    {
+        this.brief = brief;
+    }
+
+    public String getBrief() 
+    {
+        return brief;
+    }
 
     @Override
     public String toString() {
@@ -219,6 +245,8 @@ public class MatchFriendship extends BaseEntity
             .append("isOpen", getIsOpen())
             .append("isAttack", getIsAttack())
             .append("isDefend", getIsDefend())
+            .append("title", getTitle())
+            .append("brief", getBrief())
             .toString();
     }
 }

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/system/mapper/MatchFriendshipMapper.java

@@ -7,7 +7,7 @@ import com.ruoyi.system.domain.MatchFriendship;
  * 友谊赛Mapper接口
  * 
  * @author ruoyi
- * @date 2023-11-09
+ * @date 2023-12-04
  */
 public interface MatchFriendshipMapper 
 {

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/IMatchFriendshipService.java

@@ -7,7 +7,7 @@ import com.ruoyi.system.domain.MatchFriendship;
  * 友谊赛Service接口
  * 
  * @author ruoyi
- * @date 2023-11-09
+ * @date 2023-12-04
  */
 public interface IMatchFriendshipService 
 {

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MatchFriendshipServiceImpl.java

@@ -11,7 +11,7 @@ import com.ruoyi.system.service.IMatchFriendshipService;
  * 友谊赛Service业务层处理
  * 
  * @author ruoyi
- * @date 2023-11-09
+ * @date 2023-12-04
  */
 @Service
 public class MatchFriendshipServiceImpl implements IMatchFriendshipService 

+ 11 - 1
ruoyi-system/src/main/resources/mapper/system/MatchFriendshipMapper.xml

@@ -19,10 +19,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="isOpen"    column="is_open"    />
         <result property="isAttack"    column="is_attack"    />
         <result property="isDefend"    column="is_defend"    />
+        <result property="title"    column="title"    />
+        <result property="brief"    column="brief"    />
     </resultMap>
 
     <sql id="selectMatchFriendshipVo">
-        select _id, team_id, opponent, type, date, time, duration, money, address, max_person, file, is_open, is_attack, is_defend from match_friendship
+        select _id, team_id, opponent, type, date, time, duration, money, address, max_person, file, is_open, is_attack, is_defend, title, brief from match_friendship
     </sql>
 
     <select id="selectMatchFriendshipList" parameterType="MatchFriendship" resultMap="MatchFriendshipResult">
@@ -41,6 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isOpen != null  and isOpen != ''"> and is_open = #{isOpen}</if>
             <if test="isAttack != null  and isAttack != ''"> and is_attack = #{isAttack}</if>
             <if test="isDefend != null  and isDefend != ''"> and is_defend = #{isDefend}</if>
+            <if test="title != null  and title != ''"> and title = #{title}</if>
+            <if test="brief != null  and brief != ''"> and brief = #{brief}</if>
         </where>
     </select>
     
@@ -65,6 +69,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isOpen != null">is_open,</if>
             <if test="isAttack != null">is_attack,</if>
             <if test="isDefend != null">is_defend,</if>
+            <if test="title != null">title,</if>
+            <if test="brief != null">brief,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="teamId != null">#{teamId},</if>
@@ -80,6 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isOpen != null">#{isOpen},</if>
             <if test="isAttack != null">#{isAttack},</if>
             <if test="isDefend != null">#{isDefend},</if>
+            <if test="title != null">#{title},</if>
+            <if test="brief != null">#{brief},</if>
          </trim>
     </insert>
 
@@ -99,6 +107,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isOpen != null">is_open = #{isOpen},</if>
             <if test="isAttack != null">is_attack = #{isAttack},</if>
             <if test="isDefend != null">is_defend = #{isDefend},</if>
+            <if test="title != null">title = #{title},</if>
+            <if test="brief != null">brief = #{brief},</if>
         </trim>
         where _id = #{Id}
     </update>