Browse Source

增加apply info 报名相关组件

周箭河 5 năm trước cách đây
mục cha
commit
8b11c6e920

+ 0 - 22
src/main/java/com/ym/mec/collectfee/controller/GroupController.java

@@ -1,22 +0,0 @@
-package com.ym.mec.collectfee.controller;
-
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * 乐团
- */
-@RestController
-@RequestMapping("group")
-public class GroupController {
-
-    /**
-     * 乐团报名
-     */
-    @PostMapping("/apply")
-    public void apply() {
-
-    }
-
-}

+ 33 - 0
src/main/java/com/ym/mec/collectfee/controller/OrchestraController.java

@@ -0,0 +1,33 @@
+//package com.ym.mec.collectfee.controller;
+//
+//import com.ym.mec.collectfee.common.web.BaseController;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.validation.annotation.Validated;
+//import org.springframework.web.bind.annotation.*;
+//
+///**
+// * 乐团
+// */
+//@RestController
+//@RequestMapping("orchestra")
+//public class OrchestraController extends BaseController {
+//
+//    @Autowired
+//    ApplyInfoService applyInfoService;
+//
+//    /**
+//     * 乐团报名
+//     */
+//    @PostMapping("/apply")
+//    public void apply(@ModelAttribute @Validated ApplyInfo applyInfo) throws Exception {
+//        long id = applyInfoService.insert(applyInfo);
+//    }
+//
+//
+//    @GetMapping("/applyinfo")
+//    public void applyInfo(int id){
+//        applyInfoService
+//    }
+//
+//
+//}

+ 0 - 11
src/main/java/com/ym/mec/collectfee/dao/ApplyInfoDao.java

@@ -1,11 +0,0 @@
-package com.ym.mec.collectfee.dao;
-
-import com.ym.mec.collectfee.common.dao.BaseDAO;
-import com.ym.mec.collectfee.entity.ApplyInfo;
-import org.springframework.stereotype.Component;
-
-@Component
-public interface ApplyInfoDao extends BaseDAO<Integer, ApplyInfo> {
-
-	
-}

+ 0 - 191
src/main/java/com/ym/mec/collectfee/entity/ApplyInfo.java

@@ -1,191 +0,0 @@
-package com.ym.mec.collectfee.entity;
-
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
-/**
- * 对应数据库表(apply_info):
- */
-public class ApplyInfo {
-
-	/**  */
-	private Integer id;
-	
-	/** 学生姓名 */
-	private String name;
-	
-	/** 性别 */
-	private Integer sex;
-	
-	/** 生日 */
-	private java.util.Date birthday;
-	
-	/** 城市 */
-	private String city;
-	
-	/** 学校编号 */
-	private String school;
-	
-	/** 年级 */
-	private String grade;
-	
-	/** 班级 */
-	private String gclass;
-	
-	/** 家长手机号 */
-	private String mobile;
-	
-	/** 科目id */
-	private Integer subId;
-	
-	/** 是否服从调剂 0 否 1是 */
-	private Integer isadjust;
-	
-	/** 家长姓名 */
-	private String parentName;
-	
-	/** 家长工作单位 */
-	private String parentCompany;
-	
-	/** 辅件,多个用逗号分隔 */
-	private Integer status;
-	
-	/**  */
-	private java.util.Date updateTime;
-	
-	/**  */
-	private java.util.Date createTime;
-	
-	public void setId(Integer id){
-		this.id = id;
-	}
-	
-	public Integer getId(){
-		return this.id;
-	}
-			
-	public void setName(String name){
-		this.name = name;
-	}
-	
-	public String getName(){
-		return this.name;
-	}
-			
-	public void setSex(Integer sex){
-		this.sex = sex;
-	}
-	
-	public Integer getSex(){
-		return this.sex;
-	}
-			
-	public void setBirthday(java.util.Date birthday){
-		this.birthday = birthday;
-	}
-	
-	public java.util.Date getBirthday(){
-		return this.birthday;
-	}
-			
-	public void setCity(String city){
-		this.city = city;
-	}
-	
-	public String getCity(){
-		return this.city;
-	}
-			
-	public void setSchool(String school){
-		this.school = school;
-	}
-	
-	public String getSchool(){
-		return this.school;
-	}
-			
-	public void setGrade(String grade){
-		this.grade = grade;
-	}
-	
-	public String getGrade(){
-		return this.grade;
-	}
-			
-	public void setGclass(String gclass){
-		this.gclass = gclass;
-	}
-	
-	public String getGclass(){
-		return this.gclass;
-	}
-			
-	public void setMobile(String mobile){
-		this.mobile = mobile;
-	}
-	
-	public String getMobile(){
-		return this.mobile;
-	}
-			
-	public void setSubId(Integer subId){
-		this.subId = subId;
-	}
-	
-	public Integer getSubId(){
-		return this.subId;
-	}
-			
-	public void setIsadjust(Integer isadjust){
-		this.isadjust = isadjust;
-	}
-	
-	public Integer getIsadjust(){
-		return this.isadjust;
-	}
-			
-	public void setParentName(String parentName){
-		this.parentName = parentName;
-	}
-	
-	public String getParentName(){
-		return this.parentName;
-	}
-			
-	public void setParentCompany(String parentCompany){
-		this.parentCompany = parentCompany;
-	}
-	
-	public String getParentCompany(){
-		return this.parentCompany;
-	}
-			
-	public void setStatus(Integer status){
-		this.status = status;
-	}
-	
-	public Integer getStatus(){
-		return this.status;
-	}
-			
-	public void setUpdateTime(java.util.Date updateTime){
-		this.updateTime = updateTime;
-	}
-	
-	public java.util.Date getUpdateTime(){
-		return this.updateTime;
-	}
-			
-	public void setCreateTime(java.util.Date createTime){
-		this.createTime = createTime;
-	}
-	
-	public java.util.Date getCreateTime(){
-		return this.createTime;
-	}
-			
-	@Override
-	public String toString() {
-		return ToStringBuilder.reflectionToString(this);
-	}
-
-}

+ 0 - 8
src/main/java/com/ym/mec/collectfee/service/ApplyInfoService.java

@@ -1,8 +0,0 @@
-package com.ym.mec.collectfee.service;
-
-import com.ym.mec.collectfee.common.service.BaseService;
-import com.ym.mec.collectfee.entity.ApplyInfo;
-
-public interface ApplyInfoService extends BaseService<Integer, ApplyInfo> {
-
-}

+ 0 - 24
src/main/java/com/ym/mec/collectfee/service/impl/ApplyInfoServiceImpl.java

@@ -1,24 +0,0 @@
-package com.ym.mec.collectfee.service.impl;
-
-
-import com.ym.mec.collectfee.common.dao.BaseDAO;
-import com.ym.mec.collectfee.common.service.impl.BaseServiceImpl;
-import com.ym.mec.collectfee.dao.ApplyInfoDao;
-import com.ym.mec.collectfee.entity.ApplyInfo;
-import com.ym.mec.collectfee.service.ApplyInfoService;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import org.springframework.stereotype.Service;
-
-@Service
-public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> implements ApplyInfoService {
-	
-	@Autowired
-	private ApplyInfoDao applyInfoDao;
-
-	@Override
-	public BaseDAO<Integer, ApplyInfo> getDAO() {
-		return applyInfoDao;
-	}
-	
-}