Compare commits
5 Commits
040d488812
...
96278505a8
| Author | SHA1 | Date |
|---|---|---|
|
|
96278505a8 | 1 week ago |
|
|
82a22322bf | 1 week ago |
|
|
03d7a29c0c | 2 weeks ago |
|
|
6a8a813d7c | 2 weeks ago |
|
|
d54eb56aed | 2 weeks ago |
@ -0,0 +1,25 @@
|
||||
package cn.xluobo;
|
||||
|
||||
import cn.xluobo.config.properties.AddressProperties;
|
||||
import cn.xluobo.config.properties.UploadConfigProperties;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableConfigurationProperties({UploadConfigProperties.class, AddressProperties.class})
|
||||
@EnableScheduling
|
||||
@EnableAsync
|
||||
public class BusinessServerApplication {
|
||||
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
SpringApplication.run(BusinessServerApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
package cn.xluobo;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
@SpringBootApplication(scanBasePackages = {"cn.xluobo","cn.jljiayu"})
|
||||
@EnableTransactionManagement
|
||||
@MapperScan(value = {"cn.xluobo.*.*.*.repo.mapper"})
|
||||
public class OauthServerApplication {
|
||||
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
SpringApplication.run(OauthServerApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,29 @@
|
||||
package cn.xluobo.business.ad.intention.enums;
|
||||
|
||||
/**
|
||||
* 试用申请处理结果类型
|
||||
* 2022/3/21 12:23 下午
|
||||
*
|
||||
* @author zhangby
|
||||
**/
|
||||
public enum DealResultTypeEnum {
|
||||
|
||||
OPEN_ACCOUNT("01", "开通试用账号"),
|
||||
WAIT("02", "犹豫"),
|
||||
NOT_TRIAL("03", "产品不适用"),
|
||||
OTHER("99", "其他"),
|
||||
;
|
||||
|
||||
private String value;
|
||||
|
||||
private String text;
|
||||
|
||||
DealResultTypeEnum(String value, String text) {
|
||||
this.value = value;
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package cn.xluobo.business.ad.intention.repo.mapper;
|
||||
|
||||
import cn.xluobo.business.ad.intention.repo.model.AdIntentionOrder;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 申请试用表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2022-03-13 09:43:27
|
||||
*/
|
||||
public interface AdIntentionOrderMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<AdIntentionOrder> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.xluobo.business.ad.intention.repo.mapper.AdIntentionOrderMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,109 @@
|
||||
package cn.xluobo.business.ad.intention.repo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 申请试用表
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2022-03-13 09:43:27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("ad_intention_order")
|
||||
public class AdIntentionOrder implements Serializable {
|
||||
|
||||
|
||||
@TableId(value = "order_id", type = IdType.ASSIGN_ID)
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 机构名称
|
||||
*/
|
||||
@TableField("org_name")
|
||||
private String orgName;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
@TableField("contact")
|
||||
private String contact;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@TableField("contact_phone")
|
||||
private String contactPhone;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 申请试用说明
|
||||
*/
|
||||
@TableField("intention_memo")
|
||||
private String intentionMemo;
|
||||
|
||||
/**
|
||||
* 是否开通账号1开通 0未开通
|
||||
*/
|
||||
@TableField("account_open")
|
||||
private Integer accountOpen;
|
||||
|
||||
/**
|
||||
* 是否已处理完毕 1已处理 0未处理
|
||||
*/
|
||||
@TableField("had_deal")
|
||||
private Integer hadDeal;
|
||||
|
||||
/**
|
||||
* 处理结果类型
|
||||
*/
|
||||
@TableField("deal_result_type")
|
||||
private String dealResultType;
|
||||
|
||||
/**
|
||||
* 处理结果
|
||||
*/
|
||||
@TableField("deal_result")
|
||||
private String dealResult;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
@TableField("deal_time")
|
||||
private Date dealTime;
|
||||
|
||||
/**
|
||||
* 账号信息
|
||||
*/
|
||||
@TableField("user_id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 账号信息
|
||||
*/
|
||||
@TableField("user_name")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 账号开通时间
|
||||
*/
|
||||
@TableField("account_open_date")
|
||||
private Date accountOpenDate;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package cn.xluobo.business.ad.intention.service;
|
||||
|
||||
import cn.xluobo.business.ad.intention.repo.model.AdIntentionOrder;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 申请试用表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2022-03-13 09:43:27
|
||||
*/
|
||||
public interface IAdIntentionOrderService extends com.baomidou.mybatisplus.extension.service.IService<AdIntentionOrder> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package cn.xluobo.business.ad.intention.service.impl;
|
||||
|
||||
import cn.xluobo.business.ad.intention.repo.mapper.AdIntentionOrderMapper;
|
||||
import cn.xluobo.business.ad.intention.repo.model.AdIntentionOrder;
|
||||
import cn.xluobo.business.ad.intention.service.IAdIntentionOrderService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 申请试用表 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2022-03-13 09:43:27
|
||||
*/
|
||||
@Service
|
||||
public class AdIntentionOrderServiceImpl extends ServiceImpl<AdIntentionOrderMapper, AdIntentionOrder> implements IAdIntentionOrderService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package cn.xluobo.business.enums;
|
||||
|
||||
/**
|
||||
* 表枚举
|
||||
*/
|
||||
public enum BusinessTableEnums {
|
||||
|
||||
SYS_USER("sys_user","系统用户"),
|
||||
SYS_STAFF("sys_staff","员工表",true),
|
||||
SYS_DEPT("sys_dept","部门",true),
|
||||
|
||||
SYS_TAG("sys_tag","标签",true),
|
||||
|
||||
SYS_RECEIPT_ACCOUNT("sys_receipt_account","机构收费账户",true),
|
||||
|
||||
SC_SCHOOL("sc_school","学校",true),
|
||||
SC_ROOM("sc_room","教室",true),
|
||||
SC_TEACHER("sc_teacher","教师",true),
|
||||
SC_COURSE("sc_course","课程",true),
|
||||
SC_COURSE_CLA("sc_course_cla","课程班级",true),
|
||||
SC_STUDENT("sc_student","学生",true),
|
||||
SC_COURSE_TYPE("sc_course_type","课程类型",true),
|
||||
SC_ORDER("sc_order","订单",true),
|
||||
SC_STUDENT_ACCOUNT("sc_student_account","学生余额账户",true),
|
||||
SC_STUDENT_COURSE("sc_student_course","学生报读课程",true),
|
||||
SC_STUDENT_COURSE_LOG("sc_student_course_log","学生日志",true),
|
||||
|
||||
STOCK_GOODS("stock_goods","商品信息",true),
|
||||
STOCK_INFO("stock_info","库存信息",true),
|
||||
|
||||
WECHAT_CP_ACCOUNT("wechat_cp_account","企业应用信息",true),
|
||||
WECHAT_CP_CONTACT("wechat_cp_contact","企业外部联系人",true),
|
||||
WECHAT_CP_CONTACT_WAY("wechat_cp_contact_way","企业客户联系我",true),
|
||||
WECHAT_CP_GROUP("wechat_cp_group","企业标签组",true),
|
||||
WECHAT_CP_GROUP_TAG("wechat_cp_group_tag","企业标签",true),
|
||||
WECHAT_CP_USER("wechat_cp_user","企业通讯录",true),
|
||||
|
||||
;
|
||||
|
||||
private String table;
|
||||
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 是否为多租户 table
|
||||
*/
|
||||
private boolean isTenant = false;
|
||||
|
||||
BusinessTableEnums(String table, String tableName) {
|
||||
this.table = table;
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
BusinessTableEnums(String table, String tableName, boolean isTenant) {
|
||||
this.table = table;
|
||||
this.tableName = tableName;
|
||||
this.isTenant = isTenant;
|
||||
}
|
||||
|
||||
public String getTable() {
|
||||
return table;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public boolean isTenant() {
|
||||
return isTenant;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.repo.mapper;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountCourse;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动课程 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface MkDiscountCourseMapper extends BaseMapper<MkDiscountCourse> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.repo.mapper;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountDept;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动校区 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface MkDiscountDeptMapper extends BaseMapper<MkDiscountDept> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.repo.mapper;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置明细 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface MkDiscountDetailMapper extends BaseMapper<MkDiscountDetail> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.repo.mapper;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscount;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface MkDiscountMapper extends BaseMapper<MkDiscount> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.xluobo.business.mk.discount.repo.mapper.MkDiscountCourseMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.xluobo.business.mk.discount.repo.mapper.MkDiscountDeptMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.xluobo.business.mk.discount.repo.mapper.MkDiscountDetailMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.xluobo.business.mk.discount.repo.mapper.MkDiscountMapper">
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,103 @@
|
||||
package cn.xluobo.business.mk.discount.repo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("mk_discount")
|
||||
public class MkDiscount implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 优惠编号
|
||||
*/
|
||||
@TableId(value = "discount_id", type = IdType.ASSIGN_ID)
|
||||
private Long discountId;
|
||||
|
||||
/**
|
||||
* 所属租户
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 活动名称
|
||||
*/
|
||||
@TableField("activity_name")
|
||||
private String activityName;
|
||||
|
||||
/**
|
||||
* 折扣类型 1满减 2满折 3满赠
|
||||
*/
|
||||
@TableField("discount_type")
|
||||
private String discountType;
|
||||
|
||||
/**
|
||||
* 折扣开始时间
|
||||
*/
|
||||
@TableField("begin_date")
|
||||
private Date beginDate;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@TableField("end_date")
|
||||
private Date endDate;
|
||||
|
||||
/**
|
||||
* 是否生效
|
||||
*/
|
||||
@TableField("enable")
|
||||
private Integer enable;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@TableField("version")
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_user")
|
||||
private String createUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@TableField("last_update_user")
|
||||
private String lastUpdateUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("last_update_time")
|
||||
private Date lastUpdateTime;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package cn.xluobo.business.mk.discount.repo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动课程
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("mk_discount_course")
|
||||
public class MkDiscountCourse implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 折扣编号
|
||||
*/
|
||||
@TableField("discount_id")
|
||||
private Long discountId;
|
||||
|
||||
/**
|
||||
* 课程 -1为全部课程
|
||||
*/
|
||||
@TableField("course_id")
|
||||
private Long courseId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package cn.xluobo.business.mk.discount.repo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动校区
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("mk_discount_dept")
|
||||
public class MkDiscountDept implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 折扣编号
|
||||
*/
|
||||
@TableField("discount_id")
|
||||
private Long discountId;
|
||||
|
||||
/**
|
||||
* 校区 -1为全部校区
|
||||
*/
|
||||
@TableField("dept_id")
|
||||
private Long deptId;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package cn.xluobo.business.mk.discount.repo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置明细
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("mk_discount_detail")
|
||||
public class MkDiscountDetail implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 明细编号
|
||||
*/
|
||||
@TableId(value = "discount_detail_id", type = IdType.ASSIGN_ID)
|
||||
private Long discountDetailId;
|
||||
|
||||
/**
|
||||
* 折扣编号
|
||||
*/
|
||||
@TableField("discount_id")
|
||||
private Long discountId;
|
||||
|
||||
/**
|
||||
* 满足条件 金额/课时
|
||||
*/
|
||||
@TableField("meet_condition")
|
||||
private BigDecimal meetCondition;
|
||||
|
||||
/**
|
||||
* 赠送 金额/折扣/课时
|
||||
*/
|
||||
@TableField("gift")
|
||||
private BigDecimal gift;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.service;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountCourse;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动课程 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface IMkDiscountCourseService extends IService<MkDiscountCourse> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.service;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountDept;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动校区 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface IMkDiscountDeptService extends IService<MkDiscountDept> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.service;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountDetail;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置明细 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface IMkDiscountDetailService extends IService<MkDiscountDetail> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package cn.xluobo.business.mk.discount.service;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscount;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
public interface IMkDiscountService extends IService<MkDiscount> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package cn.xluobo.business.mk.discount.service.impl;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.mapper.MkDiscountCourseMapper;
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountCourse;
|
||||
import cn.xluobo.business.mk.discount.service.IMkDiscountCourseService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动课程 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Service
|
||||
public class MkDiscountCourseServiceImpl extends ServiceImpl<MkDiscountCourseMapper, MkDiscountCourse> implements IMkDiscountCourseService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package cn.xluobo.business.mk.discount.service.impl;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.mapper.MkDiscountDeptMapper;
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountDept;
|
||||
import cn.xluobo.business.mk.discount.service.IMkDiscountDeptService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 活动校区 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Service
|
||||
public class MkDiscountDeptServiceImpl extends ServiceImpl<MkDiscountDeptMapper, MkDiscountDept> implements IMkDiscountDeptService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package cn.xluobo.business.mk.discount.service.impl;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.mapper.MkDiscountDetailMapper;
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscountDetail;
|
||||
import cn.xluobo.business.mk.discount.service.IMkDiscountDetailService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置明细 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Service
|
||||
public class MkDiscountDetailServiceImpl extends ServiceImpl<MkDiscountDetailMapper, MkDiscountDetail> implements IMkDiscountDetailService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package cn.xluobo.business.mk.discount.service.impl;
|
||||
|
||||
import cn.xluobo.business.mk.discount.repo.mapper.MkDiscountMapper;
|
||||
import cn.xluobo.business.mk.discount.repo.model.MkDiscount;
|
||||
import cn.xluobo.business.mk.discount.service.IMkDiscountService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 优惠配置 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-08-21
|
||||
*/
|
||||
@Service
|
||||
public class MkDiscountServiceImpl extends ServiceImpl<MkDiscountMapper, MkDiscount> implements IMkDiscountService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package cn.xluobo.business.sc.base.controller;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqRoomSelect;
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqSearchScRoom;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScRoom;
|
||||
import cn.xluobo.business.sc.base.service.BusinessScRoomService;
|
||||
import cn.xluobo.core.api.APIResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 教室 Controller
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-09-23 07:36:54
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/sc/room")
|
||||
public class ScRoomController {
|
||||
@Autowired
|
||||
private BusinessScRoomService scRoomService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchScRoom
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public APIResponse searchList(ReqSearchScRoom reqSearchScRoom) {
|
||||
return scRoomService.searchList(reqSearchScRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 前端select
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/select")
|
||||
public APIResponse select(ReqRoomSelect roomSelect) {
|
||||
return scRoomService.select(roomSelect);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param roomId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/detailById/{roomId}")
|
||||
public APIResponse detailById(@PathVariable("roomId") Long roomId) {
|
||||
return scRoomService.detailById(roomId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param scRoom
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add/addScRoom")
|
||||
public APIResponse addScRoom(@RequestBody ScRoom scRoom) {
|
||||
return scRoomService.addScRoom(scRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param scRoom
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/updateScRoom")
|
||||
public APIResponse updateScRoom(@RequestBody ScRoom scRoom) {
|
||||
return scRoomService.updateScRoom(scRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param roomIds
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delete/deleteById/{roomIds}")
|
||||
public APIResponse deleteById(@PathVariable("roomIds") Long[] roomIds) {
|
||||
return scRoomService.deleteById(roomIds);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package cn.xluobo.business.sc.base.controller;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqSchoolSelect;
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqSearchScSchool;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScSchool;
|
||||
import cn.xluobo.business.sc.base.service.BusinessScSchoolService;
|
||||
import cn.xluobo.core.api.APIResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学校信息 Controller
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-04-27 07:13:36
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/sc/school")
|
||||
public class ScSchoolController {
|
||||
@Autowired
|
||||
private BusinessScSchoolService scSchoolService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchScSchool
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public APIResponse searchList(ReqSearchScSchool reqSearchScSchool) {
|
||||
return scSchoolService.searchList(reqSearchScSchool);
|
||||
}
|
||||
|
||||
/**
|
||||
* 前端select
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/select")
|
||||
public APIResponse select(ReqSchoolSelect schoolSelect) {
|
||||
return scSchoolService.select(schoolSelect);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param schoolId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/detailById/{schoolId}")
|
||||
public APIResponse detailById(@PathVariable("schoolId") Long schoolId) {
|
||||
return scSchoolService.detailById(schoolId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param scSchool
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add/addScSchool")
|
||||
public APIResponse addScSchool(@RequestBody ScSchool scSchool) {
|
||||
return scSchoolService.addScSchool(scSchool);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param scSchool
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/updateScSchool")
|
||||
public APIResponse updateScSchool(@RequestBody ScSchool scSchool) {
|
||||
return scSchoolService.updateScSchool(scSchool);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param schoolIds
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delete/deleteById/{schoolIds}")
|
||||
public APIResponse deleteById(@PathVariable("schoolIds") Long[] schoolIds) {
|
||||
return scSchoolService.deleteById(schoolIds);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package cn.xluobo.business.sc.base.domain.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 前端 教室 select
|
||||
*/
|
||||
@Data
|
||||
public class RespRoomSelect {
|
||||
|
||||
private Long roomId;
|
||||
|
||||
private String roomName;
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package cn.xluobo.business.sc.base.repo.mapper;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqRoomSelect;
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqSearchScRoom;
|
||||
import cn.xluobo.business.sc.base.domain.resp.RespRoomInfo;
|
||||
import cn.xluobo.business.sc.base.domain.resp.RespRoomSelect;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScRoom;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 教室 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-09-23 07:36:54
|
||||
*/
|
||||
public interface ScRoomMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<ScRoom> {
|
||||
|
||||
|
||||
/**
|
||||
* 根据条件 获取教室
|
||||
* @param reqSearchScRoom
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<RespRoomInfo> selectList(@Param("reqSearchScRoom")ReqSearchScRoom reqSearchScRoom, @Param("page")Page page);
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*
|
||||
* @param roomSelect
|
||||
* @return
|
||||
*/
|
||||
List<RespRoomSelect> selectForSelect(ReqRoomSelect roomSelect);
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package cn.xluobo.business.sc.base.repo.mapper;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqSchoolSelect;
|
||||
import cn.xluobo.business.sc.base.domain.resp.RespSchoolSelect;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScSchool;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学校信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-04-27 07:13:36
|
||||
*/
|
||||
public interface ScSchoolMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<ScSchool> {
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*
|
||||
* @param schoolSelect
|
||||
* @return
|
||||
*/
|
||||
List<RespSchoolSelect> selectForSelect(ReqSchoolSelect schoolSelect);
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.xluobo.business.sc.base.repo.mapper.ScRoomMapper">
|
||||
|
||||
<select id="selectList" resultType="cn.xluobo.business.sc.base.domain.resp.RespRoomInfo">
|
||||
select a.*,b.dept_name
|
||||
from sc_room a left join sys_dept b on a.dept_id=b.dept_id
|
||||
where 1=1
|
||||
<if test="reqSearchScRoom.deptId != null and reqSearchScRoom.deptId != ''">
|
||||
and a.dept_id=#{reqSearchScRoom.deptId}
|
||||
</if>
|
||||
<if test="reqSearchScRoom.roomName != null and reqSearchScRoom.roomName != ''">
|
||||
and a.room_name like concat('%',#{reqSearchScRoom.roomName},'%')
|
||||
</if>
|
||||
<if test="reqSearchScRoom.memo != null and reqSearchScRoom.memo != ''">
|
||||
and a.memo like concat('%',#{reqSearchScRoom.memo},'%')
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectForSelect" resultType="cn.xluobo.business.sc.base.domain.resp.RespRoomSelect">
|
||||
select
|
||||
a.room_id,
|
||||
concat(a.room_name,'(',b.dept_name,')') as room_name
|
||||
from sc_room a left join sys_dept b on a.dept_id=b.dept_id
|
||||
where 1=1
|
||||
<if test="deptId != null and deptId != ''">
|
||||
and a.dept_id=#{deptId}
|
||||
</if>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.xluobo.business.sc.base.repo.mapper.ScSchoolMapper">
|
||||
|
||||
<select id="selectForSelect" resultType="cn.xluobo.business.sc.base.domain.resp.RespSchoolSelect">
|
||||
select school_id,school_name,province_code,city_code,
|
||||
fcn_dict_name(province_code,'province_code') as province_name,
|
||||
fcn_dict_name(city_code,'city_code') as city_name
|
||||
from sc_school
|
||||
where 1=1
|
||||
<if test="search != null and search != ''">
|
||||
and school_name like concat('%',#{search} ,'%')
|
||||
</if>
|
||||
<if test="schoolId != null and schoolId != ''">
|
||||
and school_id = #{schoolId}
|
||||
</if>
|
||||
limit 0,#{maxRecord}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,82 @@
|
||||
package cn.xluobo.business.sc.base.repo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 教室
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-09-23 07:36:54
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_room")
|
||||
public class ScRoom implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* 教室
|
||||
*/
|
||||
@TableId(value = "room_id", type = IdType.ASSIGN_ID)
|
||||
private Long roomId;
|
||||
|
||||
/**
|
||||
* 所属租户
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 所属校区
|
||||
*/
|
||||
@TableField("dept_id")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 教室名
|
||||
*/
|
||||
@TableField("room_name")
|
||||
private String roomName;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("memo")
|
||||
private String memo;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_user")
|
||||
private Long createUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@TableField("last_update_user")
|
||||
private Long lastUpdateUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("last_update_time")
|
||||
private Date lastUpdateTime;
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package cn.xluobo.business.sc.base.repo.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学校信息
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-04-27 07:13:36
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_school")
|
||||
public class ScSchool implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* 学校id
|
||||
*/
|
||||
@TableId(value = "school_id", type = IdType.AUTO)
|
||||
private Long schoolId;
|
||||
|
||||
/**
|
||||
* 所属租户
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 省份编码
|
||||
*/
|
||||
@TableField("province_code")
|
||||
private String provinceCode;
|
||||
|
||||
/**
|
||||
* 区号 如0431
|
||||
*/
|
||||
@TableField("city_code")
|
||||
private String cityCode;
|
||||
|
||||
@TableField("school_name")
|
||||
private String schoolName;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_user")
|
||||
private Long createUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@TableField("last_update_user")
|
||||
private Long lastUpdateUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("last_update_time")
|
||||
private Date lastUpdateTime;
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package cn.xluobo.business.sc.base.service;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqRoomSelect;
|
||||
import cn.xluobo.business.sc.base.domain.resp.RespRoomSelect;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScRoom;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 教室 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-09-23 07:36:54
|
||||
*/
|
||||
public interface IScRoomService extends com.baomidou.mybatisplus.extension.service.IService<ScRoom> {
|
||||
|
||||
/**
|
||||
* 教室 select
|
||||
* @param roomSelect
|
||||
* @return
|
||||
*/
|
||||
List<RespRoomSelect> selectRoomSelect(ReqRoomSelect roomSelect);
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package cn.xluobo.business.sc.base.service;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqSchoolSelect;
|
||||
import cn.xluobo.business.sc.base.domain.resp.RespSchoolSelect;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScSchool;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学校信息 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-04-27 07:13:36
|
||||
*/
|
||||
public interface IScSchoolService extends com.baomidou.mybatisplus.extension.service.IService<ScSchool> {
|
||||
|
||||
/**
|
||||
* 学校select
|
||||
*
|
||||
* @param schoolSelect
|
||||
* @return
|
||||
*/
|
||||
List<RespSchoolSelect> selectSchoolSelect(ReqSchoolSelect schoolSelect);
|
||||
|
||||
/**
|
||||
* 根据名称获取学校,如果不存在自动保存
|
||||
*
|
||||
* @param schoolName
|
||||
* @return
|
||||
*/
|
||||
Long getSchoolId(String schoolName);
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package cn.xluobo.business.sc.base.service.impl;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqRoomSelect;
|
||||
import cn.xluobo.business.sc.base.domain.resp.RespRoomSelect;
|
||||
import cn.xluobo.business.sc.base.repo.mapper.ScRoomMapper;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScRoom;
|
||||
import cn.xluobo.business.sc.base.service.IScRoomService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 教室 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-09-23 07:36:54
|
||||
*/
|
||||
@Service
|
||||
public class ScRoomServiceImpl extends ServiceImpl<ScRoomMapper, ScRoom> implements IScRoomService {
|
||||
|
||||
@Override
|
||||
public List<RespRoomSelect> selectRoomSelect(ReqRoomSelect roomSelect) {
|
||||
return baseMapper.selectForSelect(roomSelect);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package cn.xluobo.business.sc.base.service.impl;
|
||||
|
||||
import cn.xluobo.business.sc.base.domain.req.ReqSchoolSelect;
|
||||
import cn.xluobo.business.sc.base.domain.resp.RespSchoolSelect;
|
||||
import cn.xluobo.business.sc.base.repo.mapper.ScSchoolMapper;
|
||||
import cn.xluobo.business.sc.base.repo.model.ScSchool;
|
||||
import cn.xluobo.business.sc.base.service.IScSchoolService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学校信息 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-04-27 07:13:36
|
||||
*/
|
||||
@Service
|
||||
public class ScSchoolServiceImpl extends ServiceImpl<ScSchoolMapper, ScSchool> implements IScSchoolService {
|
||||
|
||||
@Override
|
||||
public List<RespSchoolSelect> selectSchoolSelect(ReqSchoolSelect schoolSelect) {
|
||||
return baseMapper.selectForSelect(schoolSelect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getSchoolId(String schoolName) {
|
||||
if(StringUtils.isNotEmpty(schoolName)) {
|
||||
QueryWrapper<ScSchool> qw = new QueryWrapper<>();
|
||||
qw.eq("school_name", schoolName);
|
||||
List<ScSchool> list = this.list(qw);
|
||||
if(null != list && list.size() >0 ){
|
||||
return list.get(0).getSchoolId();
|
||||
} else {
|
||||
ScSchool scSchool = new ScSchool();
|
||||
scSchool.setSchoolName(schoolName);
|
||||
this.save(scSchool);
|
||||
return scSchool.getSchoolId();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package cn.xluobo.business.sc.course.controller;
|
||||
|
||||
import cn.xluobo.business.sc.course.domain.req.time.ReqSearchScClaTimeAttend;
|
||||
import cn.xluobo.business.sc.course.domain.resp.time.RespClaTimeAttend;
|
||||
import cn.xluobo.business.sc.course.repo.model.ScClaTimeAttend;
|
||||
import cn.xluobo.business.sc.course.service.BusinessScClaTimeAttendService;
|
||||
import cn.xluobo.core.api.APIResponse;
|
||||
import cn.xluobo.core.page.RespPage;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 上课出勤表 Controller
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-09-30 02:33:26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/sc/cla/time/attend")
|
||||
public class ScClaTimeAttendController {
|
||||
@Autowired
|
||||
private BusinessScClaTimeAttendService scClaTimeAttendService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchScClaTimeAttend
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public APIResponse searchList(ReqSearchScClaTimeAttend reqSearchScClaTimeAttend) {
|
||||
RespPage<RespClaTimeAttend> respPage = scClaTimeAttendService.searchList(reqSearchScClaTimeAttend);
|
||||
return APIResponse.toAPIResponse(respPage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上课 出席详情
|
||||
* @param courseTimeId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/hadClaTimeAttendDetail/{courseTimeId}")
|
||||
public APIResponse hadClaTimeAttendDetail(@PathVariable("courseTimeId") Long courseTimeId) {
|
||||
return scClaTimeAttendService.hadClaTimeAttendDetail(courseTimeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param attendId
|
||||
* @return
|
||||
*/
|
||||
// @GetMapping("/info/detailById/{attendId}")
|
||||
public APIResponse detailById(@PathVariable("attendId") Long attendId) {
|
||||
return scClaTimeAttendService.detailById(attendId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param scClaTimeAttend
|
||||
* @return
|
||||
*/
|
||||
// @PostMapping("/add/addScClaTimeAttend")
|
||||
public APIResponse addScClaTimeAttend(@RequestBody ScClaTimeAttend scClaTimeAttend) {
|
||||
return scClaTimeAttendService.addScClaTimeAttend(scClaTimeAttend);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param scClaTimeAttend
|
||||
* @return
|
||||
*/
|
||||
// @PutMapping("/update/updateScClaTimeAttend")
|
||||
public APIResponse updateScClaTimeAttend(@RequestBody ScClaTimeAttend scClaTimeAttend) {
|
||||
return scClaTimeAttendService.updateScClaTimeAttend(scClaTimeAttend);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param attendIds
|
||||
* @return
|
||||
*/
|
||||
// @DeleteMapping("/delete/deleteById/{attendIds}")
|
||||
public APIResponse deleteById(@PathVariable("attendIds") Long[] attendIds) {
|
||||
return scClaTimeAttendService.deleteById(attendIds);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package cn.xluobo.business.sc.course.controller;
|
||||
|
||||
import cn.xluobo.business.sc.course.domain.req.time.ReqSearchScClaTimeRule;
|
||||
import cn.xluobo.business.sc.course.repo.model.ScClaTimeRule;
|
||||
import cn.xluobo.business.sc.course.service.BusinessClaTimeRuleService;
|
||||
import cn.xluobo.core.api.APIResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 上课时间配置规则 Controller
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-09-18 04:18:54
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/sc/cla/time/rule")
|
||||
public class ScClaTimeRuleController {
|
||||
|
||||
@Autowired
|
||||
private BusinessClaTimeRuleService scClaTimeRuleService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchScClaTimeRule
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public APIResponse searchList(ReqSearchScClaTimeRule reqSearchScClaTimeRule) {
|
||||
return scClaTimeRuleService.searchList(reqSearchScClaTimeRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param ruleId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/detailById/{ruleId}")
|
||||
public APIResponse detailById(@PathVariable("ruleId") Long ruleId) {
|
||||
return scClaTimeRuleService.detailById(ruleId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param scClaTimeRule
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add/addScClaTimeRule")
|
||||
public APIResponse addScClaTimeRule(@RequestBody ScClaTimeRule scClaTimeRule) {
|
||||
return scClaTimeRuleService.addClaTimeRule(scClaTimeRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param scClaTimeRule
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/updateScClaTimeRule")
|
||||
public APIResponse updateScClaTimeRule(@RequestBody ScClaTimeRule scClaTimeRule) {
|
||||
return scClaTimeRuleService.updateClaTimeRule(scClaTimeRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param ruleId
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delete/deleteById/{ruleId}")
|
||||
public APIResponse deleteById(@PathVariable("ruleId") Long ruleId) {
|
||||
return scClaTimeRuleService.deleteById(ruleId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
package cn.xluobo.business.sc.course.controller;
|
||||
|
||||
import cn.xluobo.business.sc.course.domain.req.ReqAddScCourseCla;
|
||||
import cn.xluobo.business.sc.course.domain.req.ReqSearchScCourseCla;
|
||||
import cn.xluobo.business.sc.course.domain.resp.cla.RespClaAllDetailInfo;
|
||||
import cn.xluobo.business.sc.course.repo.model.ScCourseCla;
|
||||
import cn.xluobo.business.sc.course.service.BusinessScCourseClaService;
|
||||
import cn.xluobo.core.api.APIResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 课程班级信息 Controller
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-03-17 01:11:06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/sc/course/cla")
|
||||
public class ScCourseClaController {
|
||||
@Autowired
|
||||
private BusinessScCourseClaService scCourseClaService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchScCourseCla
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public APIResponse searchList(ReqSearchScCourseCla reqSearchScCourseCla) {
|
||||
return scCourseClaService.searchList(reqSearchScCourseCla);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param claId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/detailById/{claId}")
|
||||
public APIResponse detailById(@PathVariable("claId") Long claId) {
|
||||
return scCourseClaService.detailById(claId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
* 包含内容较多
|
||||
*
|
||||
* @param claId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/allDetailInfoById/{claId}")
|
||||
public APIResponse allDetailInfoById(@PathVariable("claId") Long claId) {
|
||||
RespClaAllDetailInfo allDetailInfo = scCourseClaService.allDetailInfoById(claId);
|
||||
return APIResponse.toAPIResponse(allDetailInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param scCourseCla
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add/addScCourseCla")
|
||||
public APIResponse addScCourseCla(@RequestBody ReqAddScCourseCla scCourseCla) {
|
||||
return scCourseClaService.addScCourseCla(scCourseCla);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param scCourseCla
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/updateScCourseCla")
|
||||
public APIResponse updateScCourseCla(@RequestBody ScCourseCla scCourseCla) {
|
||||
return scCourseClaService.updateScCourseCla(scCourseCla);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param claIds
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delete/deleteById/{claIds}")
|
||||
public APIResponse deleteById(@PathVariable("claIds") Long[] claIds) {
|
||||
return scCourseClaService.deleteById(claIds);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,155 @@
|
||||
package cn.xluobo.business.sc.course.controller;
|
||||
|
||||
import cn.xluobo.business.sc.course.domain.req.ReqBusinessOrderCourseDetail;
|
||||
import cn.xluobo.business.sc.course.domain.req.ReqSearchScCourse;
|
||||
import cn.xluobo.business.sc.course.domain.req.ReqSelect;
|
||||
import cn.xluobo.business.sc.course.domain.req.course.ReqAddScCourse;
|
||||
import cn.xluobo.business.sc.course.domain.req.course.ReqChangeScCourse;
|
||||
import cn.xluobo.business.sc.course.repo.model.ScCourse;
|
||||
import cn.xluobo.business.sc.course.service.BusinessScCourseService;
|
||||
import cn.xluobo.business.sc.course.service.IScCourseService;
|
||||
import cn.xluobo.core.api.APIResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 课程信息 Controller
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-03-17 11:25:55
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/sc/course")
|
||||
public class ScCourseController {
|
||||
|
||||
@Autowired
|
||||
private BusinessScCourseService scCourseService;
|
||||
|
||||
@Autowired
|
||||
private IScCourseService courseService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchScCourse
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public APIResponse searchList(ReqSearchScCourse reqSearchScCourse) {
|
||||
return scCourseService.searchList(reqSearchScCourse);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询课程列表
|
||||
* 含有学生报读状态
|
||||
*
|
||||
* @param reqSearchScCourse
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/selectCourseListWithStudentCourse")
|
||||
public APIResponse selectCourseListWithStudentCourse(ReqSearchScCourse reqSearchScCourse) {
|
||||
return scCourseService.selectCourseListWithStudentCourse(reqSearchScCourse);
|
||||
}
|
||||
|
||||
/**
|
||||
* 前端select
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/select")
|
||||
public APIResponse select(ReqSelect reqSelect) {
|
||||
return scCourseService.select(reqSelect);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param courseId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/detailById/{courseId}")
|
||||
public APIResponse detailById(@PathVariable("courseId") Long courseId) {
|
||||
return scCourseService.detailById(courseId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param reqAddScCourse
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add/addScCourse")
|
||||
public APIResponse addScCourse(@RequestBody ReqAddScCourse reqAddScCourse) {
|
||||
return scCourseService.addScCourse(reqAddScCourse);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param reqChangeScCourse
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/updateScCourse")
|
||||
public APIResponse updateScCourse(@RequestBody ReqChangeScCourse reqChangeScCourse) {
|
||||
return scCourseService.updateScCourse(reqChangeScCourse);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param courseIds
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delete/deleteById/{courseIds}")
|
||||
public APIResponse deleteById(@PathVariable("courseIds") List<Long> courseIds) {
|
||||
return scCourseService.deleteById(courseIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 变更是否开售
|
||||
*
|
||||
* @param scCourse
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/changeCourseSale")
|
||||
public APIResponse changeCourseSale(@RequestBody ScCourse scCourse) {
|
||||
return scCourseService.changeCourseSale(scCourse);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出
|
||||
*
|
||||
* @param reqSearchScCourse
|
||||
*/
|
||||
@GetMapping("/export/exportCourse")
|
||||
public APIResponse exportCourse(ReqSearchScCourse reqSearchScCourse) {
|
||||
return scCourseService.exportCourse(reqSearchScCourse);
|
||||
}
|
||||
|
||||
/**
|
||||
* 课程详情
|
||||
* 报名选择课程后获取课程详情
|
||||
*
|
||||
* @param orderCourseDetail
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/orderCourseDetail")
|
||||
public APIResponse orderCourseDetail(ReqBusinessOrderCourseDetail orderCourseDetail) {
|
||||
return scCourseService.orderCourseDetail(orderCourseDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生是否可报读课程
|
||||
*
|
||||
* @param orderCourseDetail
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/studentCanSignUpCourse")
|
||||
public APIResponse studentCanSignUpCourse(ReqBusinessOrderCourseDetail orderCourseDetail) {
|
||||
return scCourseService.studentCanSignUpCourse(orderCourseDetail);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package cn.xluobo.business.sc.course.controller;
|
||||
|
||||
import cn.xluobo.business.sc.course.domain.req.ReqSearchScCourseType;
|
||||
import cn.xluobo.business.sc.course.repo.model.ScCourseType;
|
||||
import cn.xluobo.business.sc.course.service.BusinessScCourseTypeService;
|
||||
import cn.xluobo.core.api.APIResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 课程类型 Controller
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-07-09 08:10:25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/sc/course/type")
|
||||
public class ScCourseTypeController {
|
||||
@Autowired
|
||||
private BusinessScCourseTypeService scCourseTypeService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param reqSearchScCourseType
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/searchList")
|
||||
public APIResponse searchList(ReqSearchScCourseType reqSearchScCourseType) {
|
||||
return scCourseTypeService.searchList(reqSearchScCourseType);
|
||||
}
|
||||
|
||||
/**
|
||||
* select
|
||||
*
|
||||
* @param reqSearchScCourseType
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/select")
|
||||
public APIResponse select(ReqSearchScCourseType reqSearchScCourseType) {
|
||||
return scCourseTypeService.select(reqSearchScCourseType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param courseTypeId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/info/detailById/{courseTypeId}")
|
||||
public APIResponse detailById(@PathVariable("courseTypeId") Long courseTypeId) {
|
||||
return scCourseTypeService.detailById(courseTypeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param scCourseType
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/add/addScCourseType")
|
||||
public APIResponse addScCourseType(@RequestBody ScCourseType scCourseType) {
|
||||
return scCourseTypeService.addScCourseType(scCourseType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param scCourseType
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/update/updateScCourseType")
|
||||
public APIResponse updateScCourseType(@RequestBody ScCourseType scCourseType) {
|
||||
return scCourseTypeService.updateScCourseType(scCourseType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param courseTypeIds
|
||||
* @return
|
||||
*/
|
||||
@DeleteMapping("/delete/deleteById/{courseTypeIds}")
|
||||
public APIResponse deleteById(@PathVariable("courseTypeIds") Long[] courseTypeIds) {
|
||||
return scCourseTypeService.deleteById(courseTypeIds);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package cn.xluobo.business.sc.course.domain.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 班级
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-06-21 07:13:40
|
||||
*/
|
||||
@Data
|
||||
public class RespBusinessCla implements Serializable {
|
||||
|
||||
private Long claId;
|
||||
|
||||
private String claName;
|
||||
|
||||
private String chargeName;
|
||||
|
||||
public RespBusinessCla(Long claId, String claName, String chargeName) {
|
||||
this.claId = claId;
|
||||
this.claName = claName;
|
||||
this.chargeName = chargeName;
|
||||
}
|
||||
|
||||
public RespBusinessCla() {
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package cn.xluobo.business.sc.course.domain.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 班级学生
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-04-27 07:13:40
|
||||
*/
|
||||
@Data
|
||||
public class RespBusinessClaStudent implements Serializable {
|
||||
|
||||
/**
|
||||
* 全部可选学生
|
||||
*/
|
||||
private List<RespBusinessStudent> students;
|
||||
|
||||
/**
|
||||
* 已有学生
|
||||
*/
|
||||
private List<Long> claStudentIds;
|
||||
|
||||
/**
|
||||
* 班级信息
|
||||
*/
|
||||
private RespBusinessClaInfo claInfo;
|
||||
|
||||
/**
|
||||
* 课程信息
|
||||
*/
|
||||
private RespBusinessCourseInfo courseInfo;
|
||||
|
||||
public RespBusinessClaStudent(List<RespBusinessStudent> students, List<Long> claStudentIds, RespBusinessClaInfo claInfo, RespBusinessCourseInfo courseInfo) {
|
||||
this.students = students;
|
||||
this.claStudentIds = claStudentIds;
|
||||
this.claInfo = claInfo;
|
||||
this.courseInfo = courseInfo;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package cn.xluobo.business.sc.course.domain.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 班级学生
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-04-27 07:13:40
|
||||
*/
|
||||
@Data
|
||||
public class RespBusinessStudent implements Serializable {
|
||||
|
||||
private Long studentId;
|
||||
|
||||
private String studentName;
|
||||
|
||||
public RespBusinessStudent(Long studentId) {
|
||||
this.studentId = studentId;
|
||||
}
|
||||
|
||||
public RespBusinessStudent(Long studentId, String studentName) {
|
||||
this.studentId = studentId;
|
||||
this.studentName = studentName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package cn.xluobo.business.sc.course.domain.resp;
|
||||
|
||||
import cn.xluobo.business.sc.student.repo.model.ScStudent;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学生班级
|
||||
* </p>
|
||||
*
|
||||
* @author zhangby
|
||||
* @since 2020-06-21 07:13:40
|
||||
*/
|
||||
@Data
|
||||
public class RespBusinessStudentCla implements Serializable {
|
||||
|
||||
/**
|
||||
* 全部可选班级
|
||||
*/
|
||||
private List<RespBusinessCla> claInfoList;
|
||||
|
||||
/**
|
||||
* 已有课程
|
||||
*/
|
||||
private List<Long> claIds;
|
||||
|
||||
/**
|
||||
* 班级信息
|
||||
*/
|
||||
private ScStudent student;
|
||||
|
||||
|
||||
public RespBusinessStudentCla(List<RespBusinessCla> claInfoList, List<Long> claIds, ScStudent student) {
|
||||
this.claInfoList = claInfoList;
|
||||
this.claIds = claIds;
|
||||
this.student = student;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue