parent
a3ed7449cb
commit
98d710435a
@ -1,32 +1,95 @@
|
||||
package com.ruoyi.web.controller.course;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.ruoyi.RestResponse;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.course.domain.req.ReqSearchClaTime;
|
||||
import com.ruoyi.course.domain.time.RespBusinessClaTimeCalendar;
|
||||
import com.ruoyi.course.service.ScClaTimeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
@Api(tags = "040-教练", description = "获取商品及课程分类")
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/course/category")
|
||||
@RequestMapping("/api/course")
|
||||
public class CourseController extends BaseController {
|
||||
// @Autowired
|
||||
// ContextServicelmpl contextService;
|
||||
// @Autowired
|
||||
// SysUserServiceImpl userService;
|
||||
|
||||
@ApiOperation("商品及课程类型列表")
|
||||
@PostMapping(value = "/getList")
|
||||
public RestResponse findList(@RequestBody Map<String, Object> params) {
|
||||
// List<Context> list =contextService.getList(params);
|
||||
return new RestResponse().setSuccess(true).setMessage("成功");
|
||||
|
||||
|
||||
@Autowired
|
||||
private ScClaTimeService scClaTimeService;
|
||||
|
||||
|
||||
/**
|
||||
* 我的课表-学员
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getCourseList")
|
||||
public RestResponse getCourseList(){
|
||||
ReqSearchClaTime reqSearchClaTime=new ReqSearchClaTime();
|
||||
RespBusinessClaTimeCalendar c =scClaTimeService.searchListForCalendar(reqSearchClaTime);
|
||||
return new RestResponse().setSuccess(true).setMessage("成功").setData(c);
|
||||
}
|
||||
|
||||
/**
|
||||
* 我的课表
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getCourseListByDate")
|
||||
public RestResponse getCourseListByDate(@RequestBody Map map){
|
||||
String dateStr= map.get("date").toString();
|
||||
// Date date= DateUtil.parse(dateStr,"yyyy-MM-dd");
|
||||
return scClaTimeService.getCourseListByDate(dateStr);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约课程
|
||||
* @param searchClaTime
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/bookCourse")
|
||||
public RestResponse bookCourse(@RequestBody ReqSearchClaTime searchClaTime){
|
||||
|
||||
return scClaTimeService.bookCourse(searchClaTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* 我的预约
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/bookCourseList")
|
||||
public RestResponse bookCourseList(){
|
||||
return new RestResponse().setData(scClaTimeService.bookCourseList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 预约详情
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/bookCourseDetail")
|
||||
public RestResponse bookCourseDetail(@RequestBody Map map){
|
||||
Long bookId =Long.parseLong(map.get("bookId").toString());
|
||||
return scClaTimeService.bookCourseDetail(bookId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消预约
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/cancelCourse")
|
||||
public RestResponse cancelCourse(@RequestBody Map map){
|
||||
Long courseTimeId =(Long)map.get("courseTimeId");
|
||||
return scClaTimeService.cancelCourse(courseTimeId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,47 @@
|
||||
package com.ruoyi.web.controller.im;
|
||||
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
import com.ruoyi.im.domain.vo.GroupVO;
|
||||
import com.ruoyi.im.service.GroupService;
|
||||
import com.ruoyi.web.controller.im.result.Result;
|
||||
import com.ruoyi.web.controller.im.result.ResultUtils;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Tag(name = "群聊")
|
||||
@RestController
|
||||
@RequestMapping("/api/group")
|
||||
@RequiredArgsConstructor
|
||||
public class GroupController {
|
||||
|
||||
private final GroupService groupService;
|
||||
|
||||
@RepeatSubmit
|
||||
@Operation(summary = "创建群聊", description = "创建群聊")
|
||||
@PostMapping("/create")
|
||||
public Result<GroupVO> createGroup(@Valid @RequestBody GroupVO vo) {
|
||||
return ResultUtils.success(groupService.createGroup(vo));
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "查询群聊", description = "查询单个群聊信息")
|
||||
@GetMapping("/find/{groupId}")
|
||||
public Result<GroupVO> findGroup(@NotNull(message = "群聊id不能为空") @PathVariable Long groupId) {
|
||||
return ResultUtils.success(groupService.findById(groupId));
|
||||
}
|
||||
|
||||
@Operation(summary = "查询群聊列表", description = "查询群聊列表")
|
||||
@GetMapping("/list")
|
||||
public Result<List<GroupVO>> findGroups() {
|
||||
return ResultUtils.success(groupService.findGroups());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,67 @@
|
||||
package com.ruoyi.web.controller.im;
|
||||
|
||||
import com.ruoyi.im.domain.dto.GroupMessageDTO;
|
||||
import com.ruoyi.im.domain.vo.GroupMessageVO;
|
||||
import com.ruoyi.im.service.GroupMessageService;
|
||||
|
||||
import com.ruoyi.web.controller.im.result.Result;
|
||||
import com.ruoyi.web.controller.im.result.ResultUtils;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Tag(name = "群聊消息")
|
||||
@RestController
|
||||
@RequestMapping("/api/message/group")
|
||||
@RequiredArgsConstructor
|
||||
public class GroupMessageController {
|
||||
|
||||
private final GroupMessageService groupMessageService;
|
||||
|
||||
@PostMapping("/send")
|
||||
@Operation(summary = "发送群聊消息", description = "发送群聊消息")
|
||||
public Result<GroupMessageVO> sendMessage(@Valid @RequestBody GroupMessageDTO vo) {
|
||||
return ResultUtils.success(groupMessageService.sendMessage(vo));
|
||||
}
|
||||
|
||||
@GetMapping("/maxReadedId")
|
||||
@Operation(summary = "获取最大已读消息的id", description = "获取某个会话中已读消息的最大id")
|
||||
public Result<String> getMaxReadedId(@RequestParam Long groupId) {
|
||||
return ResultUtils.success(groupMessageService.getMaxReadedId(groupId),"成功");
|
||||
}
|
||||
|
||||
@GetMapping("/pullOfflineMessage")
|
||||
@Operation(summary = "拉取离线消息", description = "拉取离线消息,消息将通过webscoket异步推送")
|
||||
public Result pullOfflineMessage(@RequestParam Long minId) {
|
||||
groupMessageService.pullOfflineMessage(minId);
|
||||
return ResultUtils.success();
|
||||
}
|
||||
|
||||
@PutMapping("/readed")
|
||||
@Operation(summary = "消息已读", description = "将群聊中的消息状态置为已读")
|
||||
public Result readedMessage(@RequestParam Long groupId) {
|
||||
groupMessageService.readedMessage(groupId);
|
||||
return ResultUtils.success();
|
||||
}
|
||||
|
||||
@GetMapping("/findReadedUsers")
|
||||
@Operation(summary = "获取已读用户id", description = "获取消息已读用户列表")
|
||||
public Result<List<Long>> findReadedUsers(@RequestParam Long groupId,
|
||||
@RequestParam Long messageId) {
|
||||
return ResultUtils.success(groupMessageService.findReadedUsers(groupId, messageId));
|
||||
}
|
||||
|
||||
@GetMapping("/history")
|
||||
@Operation(summary = "查询聊天记录", description = "查询聊天记录")
|
||||
public Result<List<GroupMessageVO>> recallMessage(@NotNull(message = "群聊id不能为空") @RequestParam Long groupId,
|
||||
@NotNull(message = "页码不能为空") @RequestParam Long page,
|
||||
@NotNull(message = "size不能为空") @RequestParam Long size) {
|
||||
return ResultUtils.success(groupMessageService.findHistoryMessage(groupId, page, size));
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,74 @@
|
||||
package com.ruoyi.web.controller.mall;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ruoyi.RestResponse;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.mall.domain.UserFavorite;
|
||||
import com.ruoyi.mall.service.UserFavoriteService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Api(tags = "app商品收藏")
|
||||
@RestController
|
||||
@RequestMapping("/api/userFavorite")
|
||||
public class UserFavoriteController {
|
||||
|
||||
@Autowired
|
||||
private UserFavoriteService service;
|
||||
|
||||
/**
|
||||
* 商品收藏
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("收藏")
|
||||
@PostMapping("/add")
|
||||
public RestResponse addFavorite(@RequestBody UserFavorite favorite){
|
||||
return new RestResponse().setSuccess(true).setData(service.addFavorite(favorite.getProductId()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 判断商品是否收藏
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("判断商品是否收藏")
|
||||
@PostMapping("/existsByProductId")
|
||||
public RestResponse existsByProductId(@RequestBody UserFavorite favorite){
|
||||
Long userId=SecurityUtils.getAppLoginUser().getAppUserId();;
|
||||
return new RestResponse().setSuccess(true).setData(service.existsByUserIdAndProductId(userId,favorite.getProductId()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消收藏
|
||||
*/
|
||||
@ApiOperation("取消收藏")
|
||||
@PostMapping("/removeFavorite")
|
||||
public RestResponse removeFavorite(@RequestBody UserFavorite favorite) {
|
||||
Long userId=SecurityUtils.getAppLoginUser().getAppUserId();;
|
||||
return new RestResponse().setSuccess(true).setData(service.removeFavorite(userId,favorite.getProductId()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户的收藏列表
|
||||
*/
|
||||
@ApiOperation("获取用户的收藏列表")
|
||||
@GetMapping("/getUserFavorites")
|
||||
public RestResponse getUserFavorites() {
|
||||
return new RestResponse().setSuccess(true).setData(service.getUserFavorites());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取用户的收藏数量
|
||||
*/
|
||||
@ApiOperation("获取用户的收藏数量")
|
||||
@GetMapping("/getUserFavoriteCount")
|
||||
public RestResponse getUserFavoriteCount() {
|
||||
return new RestResponse().setSuccess(true).setData(service.getUserFavoriteCount());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.ruoyi.common.db;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.ServletContextEvent;
|
||||
import javax.servlet.ServletContextListener;
|
||||
import javax.servlet.annotation.WebListener;
|
||||
|
||||
|
||||
//@Component//尽量加上这个
|
||||
//@WebListener//声明为监听器 implements ServletContextListener
|
||||
public class SshContextListener implements ServletContextListener{
|
||||
|
||||
private SshTunnelConfig sshConnectionConfig;
|
||||
|
||||
public SshContextListener() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void contextInitialized(ServletContextEvent sce) {
|
||||
System.out.println("Context initialized ... !");
|
||||
try {
|
||||
sshConnectionConfig = new SshTunnelConfig();
|
||||
sshConnectionConfig.createSshTunnel();
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace(); // 连接失败
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void contextDestroyed(ServletContextEvent sce) {
|
||||
System.out.println("Context destroyed ... !");
|
||||
sshConnectionConfig.closeSshTunnel();//断开ssh连接
|
||||
}
|
||||
}
|
||||
@ -1,116 +0,0 @@
|
||||
package com.ruoyi.framework.web.service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import com.ruoyi.common.constant.CacheConstants;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import com.ruoyi.common.constant.UserConstants;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.core.domain.model.RegisterBody;
|
||||
import com.ruoyi.common.core.redis.RedisCache;
|
||||
import com.ruoyi.common.exception.user.CaptchaException;
|
||||
import com.ruoyi.common.exception.user.CaptchaExpireException;
|
||||
import com.ruoyi.common.utils.MessageUtils;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.framework.manager.AsyncManager;
|
||||
import com.ruoyi.framework.manager.factory.AsyncFactory;
|
||||
import com.ruoyi.system.service.ISysConfigService;
|
||||
import com.ruoyi.system.service.ISysUserService;
|
||||
|
||||
/**
|
||||
* 注册校验方法
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Component
|
||||
public class SysRegisterService
|
||||
{
|
||||
@Autowired
|
||||
private ISysUserService userService;
|
||||
|
||||
@Autowired
|
||||
private ISysConfigService configService;
|
||||
|
||||
@Autowired
|
||||
private RedisCache redisCache;
|
||||
|
||||
/**
|
||||
* 注册
|
||||
*/
|
||||
public String register(RegisterBody registerBody)
|
||||
{
|
||||
String msg = "", username = registerBody.getUsername(), password = registerBody.getPassword();
|
||||
|
||||
boolean captchaEnabled = configService.selectCaptchaEnabled();
|
||||
// 验证码开关
|
||||
if (captchaEnabled)
|
||||
{
|
||||
validateCaptcha(username, registerBody.getCode(), registerBody.getUuid());
|
||||
}
|
||||
|
||||
if (StringUtils.isEmpty(username))
|
||||
{
|
||||
msg = "用户名不能为空";
|
||||
}
|
||||
else if (StringUtils.isEmpty(password))
|
||||
{
|
||||
msg = "用户密码不能为空";
|
||||
}
|
||||
else if (username.length() < UserConstants.USERNAME_MIN_LENGTH
|
||||
|| username.length() > UserConstants.USERNAME_MAX_LENGTH)
|
||||
{
|
||||
msg = "账户长度必须在2到20个字符之间";
|
||||
}
|
||||
else if (password.length() < UserConstants.PASSWORD_MIN_LENGTH
|
||||
|| password.length() > UserConstants.PASSWORD_MAX_LENGTH)
|
||||
{
|
||||
msg = "密码长度必须在5到20个字符之间";
|
||||
}
|
||||
else if (UserConstants.NOT_UNIQUE.equals(userService.checkUserNameUnique(username)))
|
||||
{
|
||||
msg = "保存用户'" + username + "'失败,注册账号已存在";
|
||||
}
|
||||
else
|
||||
{
|
||||
SysUser sysUser = new SysUser();
|
||||
sysUser.setUserName(username);
|
||||
sysUser.setNickName(username);
|
||||
sysUser.setPassword(SecurityUtils.encryptPassword(registerBody.getPassword()));
|
||||
boolean regFlag = userService.registerUser(sysUser);
|
||||
if (!regFlag)
|
||||
{
|
||||
msg = "注册失败,请联系系统管理人员";
|
||||
}
|
||||
else
|
||||
{
|
||||
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.REGISTER,
|
||||
MessageUtils.message("user.register.success")));
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验验证码
|
||||
*
|
||||
* @param username 用户名
|
||||
* @param code 验证码
|
||||
* @param uuid 唯一标识
|
||||
* @return 结果
|
||||
*/
|
||||
public void validateCaptcha(String username, String code, String uuid)
|
||||
{
|
||||
String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, "");
|
||||
String captcha = redisCache.getCacheObject(verifyKey);
|
||||
redisCache.deleteObject(verifyKey);
|
||||
if (captcha == null)
|
||||
{
|
||||
throw new CaptchaExpireException();
|
||||
}
|
||||
if (!code.equalsIgnoreCase(captcha))
|
||||
{
|
||||
throw new CaptchaException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@ -1,80 +0,0 @@
|
||||
package com.ruoyi.basic.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户表
|
||||
* </p>
|
||||
*
|
||||
* @author xn
|
||||
* @since 2022-09-28
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class YjTenant implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 负责人id
|
||||
*/
|
||||
private Long responsibleId;//负责人id
|
||||
|
||||
private String businessLicense;//营业执照编号/统一信用编码
|
||||
|
||||
private byte[] businessLicensePicture;//营业执照照片/扫描件
|
||||
|
||||
private String legalPerson;//法人姓名
|
||||
|
||||
private String legalPersonTel;//法人联系方式
|
||||
|
||||
private String legalPersonCard;//法人证件号码
|
||||
|
||||
private byte[] legalPersonCardPicturePositive;//法人证件照片/扫描件正面
|
||||
|
||||
private byte[] legalPersonCardPictureBack;//法人证件照片/扫描件背面
|
||||
|
||||
private String vip;//付费级别
|
||||
|
||||
private String vipPrice;//付费金额
|
||||
|
||||
private String vipPriceType;//付费方式,试用,年付,终身/长期
|
||||
|
||||
private String vipPayType;//支付方式,支付宝,微信,转账银行
|
||||
|
||||
private String bankCardId;//银行转账账号
|
||||
|
||||
private Date validUntil;//有效期至,终身/长期用户不判断
|
||||
|
||||
private Date reminderDate;//年付用户预付款提醒开始日期,提醒截止日期到宽限期结束
|
||||
|
||||
private Integer gracePeriod;//宽限期
|
||||
|
||||
/**
|
||||
* 是否正常运营
|
||||
*/
|
||||
private Integer status;//状态 0申请,1审核中,2审核通过,3停止运营
|
||||
|
||||
@TableField(exist = false)
|
||||
private String legalPersonCardPicturePositive1;//法人证件照片/扫描件正面
|
||||
|
||||
@TableField(exist = false)
|
||||
private String legalPersonCardPictureBack1;//法人证件照片/扫描件背面
|
||||
|
||||
@TableField(exist = false)
|
||||
private String businessLicensePicture1;//营业执照照片/扫描件
|
||||
|
||||
|
||||
}
|
||||
@ -1,34 +0,0 @@
|
||||
package com.ruoyi.basic.domain.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.ruoyi.basic.domain.YjStore;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店表
|
||||
* </p>
|
||||
*
|
||||
* @author xn
|
||||
* @since 2022-09-28
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class StoreDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("企业名称")
|
||||
private String storeName;
|
||||
//总店id
|
||||
private String parentId;
|
||||
private List<StoreDto> childList;
|
||||
}
|
||||
@ -0,0 +1,190 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
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 com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 上课时间配置规则
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @since 2020-09-14
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_cla_time_rule")
|
||||
public class ScClaTimeRule implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 规则id
|
||||
*/
|
||||
@TableId(value = "rule_id", type = IdType.ASSIGN_ID)
|
||||
private Long ruleId;
|
||||
|
||||
/**
|
||||
* 班级
|
||||
*/
|
||||
@TableField("cla_id")
|
||||
private Long claId;
|
||||
|
||||
/**
|
||||
* 规则类型 1重复排课 2单次排课
|
||||
*/
|
||||
@TableField("rule_type")
|
||||
private String ruleType;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
@TableField("begin_date")
|
||||
private String beginDate;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
@TableField("end_date")
|
||||
private String endDate;
|
||||
|
||||
/**
|
||||
* 单次排课 日期
|
||||
*/
|
||||
@TableField("once_date")
|
||||
private String onceDate;
|
||||
|
||||
/**
|
||||
* 重复方式 1每周重复 2隔天重复 3隔周重复
|
||||
*/
|
||||
@TableField("repeat_type")
|
||||
private String repeatType;
|
||||
|
||||
/**
|
||||
* 上课星期 周几上课
|
||||
*/
|
||||
@TableField("week_day")
|
||||
private String weekDay;
|
||||
|
||||
/**
|
||||
* 是否过滤节假日 1过滤 0不过滤
|
||||
*/
|
||||
@TableField("filter_holiday")
|
||||
private boolean filterHoliday;
|
||||
|
||||
/**
|
||||
* 上课时间
|
||||
*/
|
||||
@TableField("start_time")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 下课时间
|
||||
*/
|
||||
@TableField("end_time")
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* 任课教师
|
||||
*/
|
||||
@TableField("teacher_id")
|
||||
private Long teacherId;
|
||||
|
||||
/**
|
||||
* 上课教室
|
||||
*/
|
||||
@TableField("room_id")
|
||||
private Long roomId;
|
||||
|
||||
/**
|
||||
* 上课教室
|
||||
*/
|
||||
@TableField("room_name")
|
||||
private String roomName;
|
||||
|
||||
/**
|
||||
* 上课主题
|
||||
*/
|
||||
@TableField("class_theme")
|
||||
private String classTheme;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_user")
|
||||
private Long createUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@TableField("last_update_user")
|
||||
private Long lastUpdateUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("last_update_time")
|
||||
private Date lastUpdateTime;
|
||||
|
||||
/**
|
||||
* 单次排课 选择的上课日期
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String[] chooseDate;
|
||||
|
||||
/**
|
||||
* 所属校区
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private Long deptId;
|
||||
|
||||
// public boolean checkParam() {
|
||||
// if (null == claId || null == teacherId) {
|
||||
// return false;
|
||||
// }
|
||||
// if (StringUtils.isAnyEmpty(ruleType)) {
|
||||
// return false;
|
||||
// }
|
||||
// if (ClaTimeRuleTypeEnums.ONCE_RULE.getRuleType().equals(ruleType)) {
|
||||
// if (StringUtils.isAnyEmpty(startTime, endTime)) {
|
||||
// return false;
|
||||
// } else if (null == chooseDate || chooseDate.length == 0) {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// if ("1".equals(ruleType) && StringUtils.isAnyEmpty(repeatType)) {
|
||||
// return false;
|
||||
// }
|
||||
// if (ClaTimeRepeatTypeEnums.EVERY_WEEK.getRepeatType().equals(repeatType)
|
||||
// || ClaTimeRepeatTypeEnums.EVERY_SECOND_WEEK.getRepeatType().equals(repeatType)) {
|
||||
// if (StringUtils.isAnyEmpty(weekDay, startTime, endTime, beginDate, endDate)) {
|
||||
// return false;
|
||||
// }
|
||||
// } else {
|
||||
// if (StringUtils.isAnyEmpty(startTime, endTime)) {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// return true;
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 预约学员信息
|
||||
*/
|
||||
@Data
|
||||
@TableName("sc_commission_plans")
|
||||
public class ScCommissionPlans {
|
||||
|
||||
private Long id;
|
||||
//方案名称
|
||||
private String planName;
|
||||
// 第一阶梯阈值(0-?元)
|
||||
private BigDecimal tier1Threshold;
|
||||
// 第一阶梯比例(8%)
|
||||
private BigDecimal tier1Rate;
|
||||
// 第二阶梯阈值(30000)
|
||||
private BigDecimal tier2Threshold;
|
||||
// 第二阶梯比例(10%)
|
||||
private BigDecimal tier2Rate;
|
||||
// 第三阶梯阈值(50000)
|
||||
private BigDecimal tier3Threshold;
|
||||
// 第三阶梯比例(12%)
|
||||
private BigDecimal tier3Rate;
|
||||
|
||||
// 第四阶梯比例(15%)
|
||||
private BigDecimal tier4Rate;
|
||||
// 续费率(5%)
|
||||
private BigDecimal renewalRate;
|
||||
// 转介绍率(8-10%)
|
||||
private BigDecimal referralRate;
|
||||
// 是否生效(默认0未生效 1生效 )
|
||||
private int isActive;
|
||||
// 生效日期
|
||||
private Date effectiveDate;
|
||||
// 创建时间
|
||||
private Date createdAt;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
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>
|
||||
*
|
||||
*
|
||||
* @since 2020-07-08
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_course_charge")
|
||||
public class ScCourseCharge implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 收费编号
|
||||
*/
|
||||
@TableId(value = "charge_id")
|
||||
private Long chargeId;
|
||||
|
||||
/**
|
||||
* 课程编号
|
||||
*/
|
||||
@TableField("course_id")
|
||||
private Long courseId;
|
||||
|
||||
/**
|
||||
* 校区 -1为全部校区
|
||||
*/
|
||||
@TableField("depart_id")
|
||||
private Long departId;
|
||||
|
||||
/**
|
||||
* 收费模式 hour:课时 date:时间 cycle:期
|
||||
*/
|
||||
@TableField("charge_type")
|
||||
private String chargeType;
|
||||
|
||||
/**
|
||||
* 课时数量
|
||||
*/
|
||||
@TableField("count")
|
||||
private BigDecimal count;
|
||||
|
||||
/**
|
||||
* 总价
|
||||
*/
|
||||
@TableField("total_fee")
|
||||
private BigDecimal totalFee;
|
||||
|
||||
/**
|
||||
* 佣金方案id
|
||||
*/
|
||||
@TableField("commission_plans_id")
|
||||
private BigDecimal commissionPlansId;
|
||||
|
||||
/**
|
||||
* 时间周期 天/月/季/年
|
||||
*/
|
||||
@TableField("date_unit")
|
||||
private String dateUnit;
|
||||
|
||||
// public String getChargeName() {
|
||||
// if (CourseChargeTypeEnum.HOUR.getChargeType().equals(chargeType)) {
|
||||
// return "按课时 " + count.toString() + "课时=" + totalFee +"元";
|
||||
// } else if (CourseChargeTypeEnum.DATE.getChargeType().equals(chargeType)) {
|
||||
// return "按时间 " + count.toString() + ChargeDateUnitEnum.getDateUnitLabel(dateUnit) + "=" + totalFee+"元";
|
||||
// } else if (CourseChargeTypeEnum.CYCLE.getChargeType().equals(chargeType)) {
|
||||
// return "按周期 " + count.toString() + "课时=" + totalFee +"元";
|
||||
// }
|
||||
// return "";
|
||||
// }
|
||||
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.Period;
|
||||
import org.joda.time.PeriodType;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学生基本信息
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@TableName("sc_room")
|
||||
public class ScRoom implements Serializable {
|
||||
|
||||
@TableId(value = "room_id")
|
||||
private Long roomId;
|
||||
private Long deptId;
|
||||
private String roomName;
|
||||
private String memo;
|
||||
private Long createUser;
|
||||
private Date createTime;
|
||||
private Long lastUpdateUser;
|
||||
private Date lastUpdateTime;
|
||||
private BigDecimal venueFee;
|
||||
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
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>
|
||||
*
|
||||
*
|
||||
* @since 2020-09-27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_student_contact")
|
||||
public class ScStudentContact implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 联系人编号
|
||||
*/
|
||||
@TableId(value = "contact_id", type = IdType.ASSIGN_ID)
|
||||
private Long contactId;
|
||||
|
||||
/**
|
||||
* 学生
|
||||
*/
|
||||
@TableField("student_id")
|
||||
private Long studentId;
|
||||
|
||||
/**
|
||||
* 联系人称呼
|
||||
*/
|
||||
@TableField("contact_nick")
|
||||
private String contactNick;
|
||||
|
||||
/**
|
||||
* 与学生关系
|
||||
*/
|
||||
@TableField("contact_relation")
|
||||
private String contactRelation;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@TableField("contact_phone")
|
||||
private String contactPhone;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_user")
|
||||
private Long createUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
}
|
||||
@ -0,0 +1,139 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
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;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学生课程
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_student_course")
|
||||
public class ScStudentCourse implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "student_course_id", type = IdType.ASSIGN_ID)
|
||||
private Long studentCourseId;
|
||||
|
||||
/**
|
||||
* 学生
|
||||
*/
|
||||
@TableField("student_id")
|
||||
private Long studentId;
|
||||
|
||||
/**
|
||||
* 课程
|
||||
*/
|
||||
@TableField("course_id")
|
||||
private Long courseId;
|
||||
|
||||
/**
|
||||
* 课程
|
||||
*/
|
||||
@TableField("course_name")
|
||||
private String courseName;
|
||||
|
||||
/**
|
||||
* 报读校区
|
||||
*/
|
||||
@TableField("dept_id")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 班级
|
||||
*/
|
||||
@TableField("cla_id")
|
||||
private Long claId;
|
||||
|
||||
/**
|
||||
* 班级
|
||||
*/
|
||||
@TableField("cla_name")
|
||||
private String claName;
|
||||
|
||||
/**
|
||||
* 收费模式 hour:课时 date:时间 cycle:期
|
||||
*/
|
||||
@TableField("charge_type")
|
||||
private String chargeType;
|
||||
|
||||
/**
|
||||
* 总天数
|
||||
*/
|
||||
@TableField("total_day")
|
||||
private BigDecimal totalDay;
|
||||
|
||||
/**
|
||||
* 总课时
|
||||
*/
|
||||
@TableField("total_hour")
|
||||
private BigDecimal totalHour;
|
||||
|
||||
/**
|
||||
* 剩余课时
|
||||
*/
|
||||
@TableField("balance_hour")
|
||||
private BigDecimal balanceHour;
|
||||
|
||||
/**
|
||||
* 总学费
|
||||
*/
|
||||
@TableField("total_fee")
|
||||
private BigDecimal totalFee;
|
||||
|
||||
/**
|
||||
* 状态 1在读 2停课
|
||||
*/
|
||||
@TableField("status")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* 更新的途径app or sys
|
||||
*/
|
||||
@TableField("update_user_type")
|
||||
private String updateUserType;
|
||||
|
||||
}
|
||||
@ -0,0 +1,132 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
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.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 课程缴费扣费记录
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @since 2020-12-17
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_student_course_log")
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ScStudentCourseLog implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "log_id", type = IdType.ASSIGN_ID)
|
||||
private Long logId;
|
||||
|
||||
/**
|
||||
* 学生
|
||||
*/
|
||||
@TableField("student_id")
|
||||
private Long studentId;
|
||||
|
||||
/**
|
||||
* 日志类型 参照 LogTypeEnum
|
||||
*/
|
||||
@TableField("log_type")
|
||||
private String logType;
|
||||
|
||||
/**
|
||||
* 课程
|
||||
*/
|
||||
@TableField("course_id")
|
||||
private Long courseId;
|
||||
|
||||
/**
|
||||
* 课程名称
|
||||
*/
|
||||
@TableField("course_name")
|
||||
private String courseName;
|
||||
|
||||
/**
|
||||
* 班级
|
||||
*/
|
||||
@TableField("cla_id")
|
||||
private Long claId;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@TableField("cla_name")
|
||||
private String claName;
|
||||
|
||||
/**
|
||||
* 经办校区
|
||||
*/
|
||||
@TableField("dept_name")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 变更课时
|
||||
*/
|
||||
@TableField("change_hour")
|
||||
private BigDecimal changeHour;
|
||||
|
||||
/**
|
||||
* 变更后剩余课时
|
||||
*/
|
||||
@TableField("after_balance_hour")
|
||||
private BigDecimal afterBalanceHour;
|
||||
|
||||
/**
|
||||
* 变更金额
|
||||
*/
|
||||
@TableField("change_fee")
|
||||
private BigDecimal changeFee;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("memo")
|
||||
private String memo;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_user")
|
||||
private Long createUser;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_user_name")
|
||||
private String createUserName;
|
||||
/**
|
||||
* 途径app or sys
|
||||
*/
|
||||
@TableField("create_user_type")
|
||||
private String createUserType;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
// 学生姓名
|
||||
@TableField(exist = false)
|
||||
private String studentName;
|
||||
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
package com.ruoyi.course.domain;
|
||||
|
||||
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.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 学生课程关联订单
|
||||
* </p>
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sc_student_course_order")
|
||||
public class ScStudentCourseOrder implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "course_order_id", type = IdType.ASSIGN_ID)
|
||||
private Long courseOrderId;
|
||||
|
||||
@TableField("student_course_id")
|
||||
private Long studentCourseId;
|
||||
|
||||
/**
|
||||
* 订单
|
||||
*/
|
||||
@TableField("order_id")
|
||||
private Long orderId;
|
||||
|
||||
/**
|
||||
* 购买课程订单
|
||||
*/
|
||||
@TableField("order_detail_id")
|
||||
private Long orderDetailId;
|
||||
|
||||
/**
|
||||
* 购买课时数量
|
||||
*/
|
||||
@TableField("total_hour")
|
||||
private BigDecimal totalHour;
|
||||
|
||||
/**
|
||||
* 剩余课时数量
|
||||
*/
|
||||
@TableField("balance_hour")
|
||||
private BigDecimal balanceHour;
|
||||
|
||||
/**
|
||||
* 购买天数
|
||||
*/
|
||||
@TableField("total_day")
|
||||
private BigDecimal totalDay;
|
||||
|
||||
/**
|
||||
* 开始时间 按时间收费
|
||||
*/
|
||||
@TableField("begin_date")
|
||||
private String beginDate;
|
||||
|
||||
/**
|
||||
* 结束时间 按时间收费
|
||||
*/
|
||||
@TableField("end_date")
|
||||
private String endDate;
|
||||
|
||||
/**
|
||||
* 失效时间
|
||||
*/
|
||||
@TableField("expire_date")
|
||||
private String expireDate;
|
||||
|
||||
/**
|
||||
* 总金额
|
||||
*/
|
||||
@TableField("total_fee")
|
||||
private BigDecimal totalFee;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
@TableField("unit_fee")
|
||||
private BigDecimal unitFee;
|
||||
|
||||
/**
|
||||
* 是否有效 1有效 0失效
|
||||
*/
|
||||
@TableField("valid")
|
||||
private Boolean valid;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@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;
|
||||
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue