瀏覽代碼

赛事发布初始化

Memory_LG 5 月之前
父節點
當前提交
de072c86c3

+ 6 - 0
qmjszx-admin/pom.xml

@@ -67,6 +67,12 @@
             <artifactId>qmjszx-generator</artifactId>
         </dependency>
 
+        <!-- 业务模块 -->
+        <dependency>
+            <groupId>qmjszx</groupId>
+            <artifactId>qmjszx-business</artifactId>
+        </dependency>
+
     </dependencies>
 
     <build>

+ 2 - 1
qmjszx-admin/src/main/java/beilv/Application.java

@@ -9,7 +9,8 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  * 
  * @author ruoyi
  */
-@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
+@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }, scanBasePackages = {"beilv"})
+
 public class Application
 {
     public static void main(String[] args)

+ 3 - 3
qmjszx-admin/src/main/java/beilv/web/controller/CompetitionController.java

@@ -1,7 +1,9 @@
-package beilv.web.controller;
+package beilv.web.controller.competition;
 
 import java.util.List;
 
+import beilv.competition.domain.Competition;
+import beilv.competition.service.ICompetitionService;
 import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
@@ -13,8 +15,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseBody;
 import beilv.common.annotation.Log;
 import beilv.common.enums.BusinessType;
-import beilv.system.domain.Competition;
-import beilv.system.service.ICompetitionService;
 import beilv.common.core.controller.BaseController;
 import beilv.common.core.domain.AjaxResult;
 import beilv.common.utils.poi.ExcelUtil;

+ 1 - 1
qmjszx-admin/src/main/resources/application.yml

@@ -98,7 +98,7 @@ shiro:
     # 首页地址
     indexUrl: /index
     # 验证码开关
-    captchaEnabled: true
+    captchaEnabled: false
     # 验证码类型 math 数字计算 char 字符验证
     captchaType: math
   cookie:

+ 90 - 90
qmjszx-system/src/main/java/beilv/system/domain/Competition.java

@@ -1,6 +1,7 @@
-package beilv.system.domain;
+package beilv.competition.domain;
 
 import java.util.Date;
+
 import com.fasterxml.jackson.annotation.JsonFormat;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
@@ -9,228 +10,227 @@ import beilv.common.core.domain.BaseEntity;
 
 /**
  * 赛事发布对象 competition
- * 
+ *
  * @author LG
  * @date 2024-12-31
  */
-public class Competition extends BaseEntity
-{
+public class Competition extends BaseEntity {
     private static final long serialVersionUID = 1L;
 
-    /** id */
+    /**
+     * id
+     */
     private Integer id;
 
-    /** 活动标题 */
+    /**
+     * 活动标题
+     */
     @Excel(name = "活动标题")
     private String competitionTitle;
 
-    /** 活动类型 */
+    /**
+     * 活动类型
+     */
     @Excel(name = "活动类型")
     private String competitionType;
 
-    /** 团队最大人数 */
+    /**
+     * 团队最大人数
+     */
     @Excel(name = "团队最大人数")
     private String personMax;
 
-    /** 最大团队数 */
+    /**
+     * 最大团队数
+     */
     @Excel(name = "最大团队数")
     private String teamMax;
 
-    /** 场地 */
+    /**
+     * 场地
+     */
     @Excel(name = "场地")
     private String competitionPlace;
 
-    /** 报名开始时间 */
+    /**
+     * 报名开始时间
+     */
     @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
     @Excel(name = "报名开始时间", width = 30, dateFormat = "yyyy-MM-dd")
     private Date applyStartTime;
 
-    /** 报名结束时间 */
+    /**
+     * 报名结束时间
+     */
     @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
     @Excel(name = "报名结束时间", width = 30, dateFormat = "yyyy-MM-dd")
     private Date applyEndTime;
 
-    /** 取消报名截至时间(活动开始前N小时可退款) */
+    /**
+     * 取消报名截至时间(活动开始前N小时可退款)
+     */
     @Excel(name = "取消报名截至时间(活动开始前N小时可退款)")
     private String applyBeforeTime;
 
-    /** 活动上限人数 */
+    /**
+     * 活动上限人数
+     */
     @Excel(name = "活动上限人数")
     private String competitionMaximum;
 
-    /** 活动费用(每人) */
+    /**
+     * 活动费用(每人)
+     */
     @Excel(name = "活动费用(每人)")
     private Long competitionExpense;
 
-    /** 活动详情 */
+    /**
+     * 活动详情
+     */
     @Excel(name = "活动详情")
     private String competitionDetails;
 
-    /** 报名须知 */
+    /**
+     * 报名须知
+     */
     @Excel(name = "报名须知")
     private String registrationNotes;
 
-    /** 活动状态 */
+    /**
+     * 活动状态
+     */
     @Excel(name = "活动状态")
     private String competitionState;
 
-    public void setId(Integer id) 
-    {
+    public void setId(Integer id) {
         this.id = id;
     }
 
-    public Integer getId() 
-    {
+    public Integer getId() {
         return id;
     }
 
-    public void setCompetitionTitle(String competitionTitle) 
-    {
+    public void setCompetitionTitle(String competitionTitle) {
         this.competitionTitle = competitionTitle;
     }
 
-    public String getCompetitionTitle() 
-    {
+    public String getCompetitionTitle() {
         return competitionTitle;
     }
 
-    public void setCompetitionType(String competitionType) 
-    {
+    public void setCompetitionType(String competitionType) {
         this.competitionType = competitionType;
     }
 
-    public String getCompetitionType() 
-    {
+    public String getCompetitionType() {
         return competitionType;
     }
 
-    public void setPersonMax(String personMax) 
-    {
+    public void setPersonMax(String personMax) {
         this.personMax = personMax;
     }
 
-    public String getPersonMax() 
-    {
+    public String getPersonMax() {
         return personMax;
     }
 
-    public void setTeamMax(String teamMax) 
-    {
+    public void setTeamMax(String teamMax) {
         this.teamMax = teamMax;
     }
 
-    public String getTeamMax() 
-    {
+    public String getTeamMax() {
         return teamMax;
     }
 
-    public void setCompetitionPlace(String competitionPlace) 
-    {
+    public void setCompetitionPlace(String competitionPlace) {
         this.competitionPlace = competitionPlace;
     }
 
-    public String getCompetitionPlace() 
-    {
+    public String getCompetitionPlace() {
         return competitionPlace;
     }
 
-    public void setApplyStartTime(Date applyStartTime) 
-    {
+    public void setApplyStartTime(Date applyStartTime) {
         this.applyStartTime = applyStartTime;
     }
 
-    public Date getApplyStartTime() 
-    {
+    public Date getApplyStartTime() {
         return applyStartTime;
     }
 
-    public void setApplyEndTime(Date applyEndTime) 
-    {
+    public void setApplyEndTime(Date applyEndTime) {
         this.applyEndTime = applyEndTime;
     }
 
-    public Date getApplyEndTime() 
-    {
+    public Date getApplyEndTime() {
         return applyEndTime;
     }
 
-    public void setApplyBeforeTime(String applyBeforeTime) 
-    {
+    public void setApplyBeforeTime(String applyBeforeTime) {
         this.applyBeforeTime = applyBeforeTime;
     }
 
-    public String getApplyBeforeTime() 
-    {
+    public String getApplyBeforeTime() {
         return applyBeforeTime;
     }
 
-    public void setCompetitionMaximum(String competitionMaximum) 
-    {
+    public void setCompetitionMaximum(String competitionMaximum) {
         this.competitionMaximum = competitionMaximum;
     }
 
-    public String getCompetitionMaximum() 
-    {
+    public String getCompetitionMaximum() {
         return competitionMaximum;
     }
 
-    public void setCompetitionExpense(Long competitionExpense) 
-    {
+    public void setCompetitionExpense(Long competitionExpense) {
         this.competitionExpense = competitionExpense;
     }
 
-    public Long getCompetitionExpense() 
-    {
+    public Long getCompetitionExpense() {
         return competitionExpense;
     }
 
-    public void setCompetitionDetails(String competitionDetails) 
-    {
+    public void setCompetitionDetails(String competitionDetails) {
         this.competitionDetails = competitionDetails;
     }
 
-    public String getCompetitionDetails() 
-    {
+    public String getCompetitionDetails() {
         return competitionDetails;
     }
 
-    public void setRegistrationNotes(String registrationNotes) 
-    {
+    public void setRegistrationNotes(String registrationNotes) {
         this.registrationNotes = registrationNotes;
     }
 
-    public String getRegistrationNotes() 
-    {
+    public String getRegistrationNotes() {
         return registrationNotes;
     }
 
-    public void setCompetitionState(String competitionState) 
-    {
+    public void setCompetitionState(String competitionState) {
         this.competitionState = competitionState;
     }
 
-    public String getCompetitionState() 
-    {
+    public String getCompetitionState() {
         return competitionState;
     }
 
     @Override
     public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("competitionTitle", getCompetitionTitle())
-            .append("competitionType", getCompetitionType())
-            .append("personMax", getPersonMax())
-            .append("teamMax", getTeamMax())
-            .append("competitionPlace", getCompetitionPlace())
-            .append("applyStartTime", getApplyStartTime())
-            .append("applyEndTime", getApplyEndTime())
-            .append("applyBeforeTime", getApplyBeforeTime())
-            .append("competitionMaximum", getCompetitionMaximum())
-            .append("competitionExpense", getCompetitionExpense())
-            .append("competitionDetails", getCompetitionDetails())
-            .append("registrationNotes", getRegistrationNotes())
-            .append("competitionState", getCompetitionState())
-            .toString();
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("competitionTitle", getCompetitionTitle())
+                .append("competitionType", getCompetitionType())
+                .append("personMax", getPersonMax())
+                .append("teamMax", getTeamMax())
+                .append("competitionPlace", getCompetitionPlace())
+                .append("applyStartTime", getApplyStartTime())
+                .append("applyEndTime", getApplyEndTime())
+                .append("applyBeforeTime", getApplyBeforeTime())
+                .append("competitionMaximum", getCompetitionMaximum())
+                .append("competitionExpense", getCompetitionExpense())
+                .append("competitionDetails", getCompetitionDetails())
+                .append("registrationNotes", getRegistrationNotes())
+                .append("competitionState", getCompetitionState())
+                .toString();
     }
 }

+ 11 - 11
qmjszx-system/src/main/java/beilv/system/mapper/CompetitionMapper.java

@@ -1,19 +1,19 @@
-package beilv.system.mapper;
+package beilv.competition.mapper;
+
+import beilv.competition.domain.Competition;
 
 import java.util.List;
-import beilv.system.domain.Competition;
 
 /**
  * 赛事发布Mapper接口
- * 
+ *
  * @author LG
  * @date 2024-12-31
  */
-public interface CompetitionMapper 
-{
+public interface CompetitionMapper {
     /**
      * 查询赛事发布
-     * 
+     *
      * @param id 赛事发布主键
      * @return 赛事发布
      */
@@ -21,7 +21,7 @@ public interface CompetitionMapper
 
     /**
      * 查询赛事发布列表
-     * 
+     *
      * @param competition 赛事发布
      * @return 赛事发布集合
      */
@@ -29,7 +29,7 @@ public interface CompetitionMapper
 
     /**
      * 新增赛事发布
-     * 
+     *
      * @param competition 赛事发布
      * @return 结果
      */
@@ -37,7 +37,7 @@ public interface CompetitionMapper
 
     /**
      * 修改赛事发布
-     * 
+     *
      * @param competition 赛事发布
      * @return 结果
      */
@@ -45,7 +45,7 @@ public interface CompetitionMapper
 
     /**
      * 删除赛事发布
-     * 
+     *
      * @param id 赛事发布主键
      * @return 结果
      */
@@ -53,7 +53,7 @@ public interface CompetitionMapper
 
     /**
      * 批量删除赛事发布
-     * 
+     *
      * @param ids 需要删除的数据主键集合
      * @return 结果
      */

+ 3 - 2
qmjszx-system/src/main/java/beilv/system/service/ICompetitionService.java

@@ -1,8 +1,9 @@
-package beilv.system.service;
+package beilv.competition.service;
+
+import beilv.competition.domain.Competition;
 
 import java.util.List;
 
-import beilv.system.domain.Competition;
 
 /**
  * 赛事发布Service接口

+ 4 - 4
qmjszx-system/src/main/java/beilv/system/service/impl/CompetitionServiceImpl.java

@@ -1,12 +1,12 @@
-package beilv.system.service.impl;
+package beilv.competition.service.impl;
 
 import java.util.List;
 
+import beilv.competition.domain.Competition;
+import beilv.competition.mapper.CompetitionMapper;
+import beilv.competition.service.ICompetitionService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import beilv.system.mapper.CompetitionMapper;
-import beilv.system.domain.Competition;
-import beilv.system.service.ICompetitionService;
 import beilv.common.core.text.Convert;
 
 /**

+ 1 - 1
qmjszx-system/src/main/resources/mapper/system/CompetitionMapper.xml

@@ -2,7 +2,7 @@
 <!DOCTYPE mapper
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="beilv.system.mapper.CompetitionMapper">
+<mapper namespace="beilv.competition.mapper.CompetitionMapper">
     
     <resultMap type="Competition" id="CompetitionResult">
         <result property="id"    column="id"    />