更改目录结构

This commit is contained in:
liuyingfang
2024-03-02 18:31:44 +08:00
parent 8f7acca8e6
commit 0a70a66807
603 changed files with 2256 additions and 6114 deletions

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author admin
* @date 2023-10-31
**/
@Entity
@Data
@Table(name="bot_button_config")
public class BotButtonConfig implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`button_name`")
@ApiModelProperty(value = "按钮名称")
private String buttonName;
@Column(name = "`button_value`")
@ApiModelProperty(value = "按钮值")
private String buttonValue;
public void copy(BotButtonConfig source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author admin
* @date 2023-10-31
**/
@Entity
@Data
@Table(name="bot_config")
public class BotConfig implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`config_key`")
@ApiModelProperty(value = "元素键值")
private String configKey;
@Column(name = "`config_value`")
@ApiModelProperty(value = "元素值")
private String configValue;
@Column(name = "`remark`")
@ApiModelProperty(value = "描述")
private String remark;
public void copy(BotConfig source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,123 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author admin
* @date 2023-10-30
**/
@Entity
@Data
@Table(name="bot_user")
public class BotUser implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`father_id`")
@ApiModelProperty(value = "fatherId")
private Integer fatherId;
@Column(name = "`father_telegram_id`")
@ApiModelProperty(value = "父级电报号")
private String fatherTelegramId;
@Column(name = "`user_telegram_id`")
@ApiModelProperty(value = "电报号")
private String userTelegramId;
@Column(name = "`user_name`")
@ApiModelProperty(value = "用户名称")
private String userName;
@Column(name = "`group_telegram_id`")
@ApiModelProperty(value = "组电报号")
private String groupTelegramId;
@Column(name = "`user_code`")
@ApiModelProperty(value = "用户代码")
private String userCode;
@Column(name = "`user_pay_pass`")
@ApiModelProperty(value = "userPayPass")
private String userPayPass;
@Column(name = "`bomb_status`")
@ApiModelProperty(value = "bombStatus")
private String bombStatus;
@Column(name = "`bot_status`")
@ApiModelProperty(value = "用户状态")
private String botStatus;
@Column(name = "`usdt_recharge_total`")
@ApiModelProperty(value = "总充值")
private BigDecimal usdtRechargeTotal;
@Column(name = "`usdt_withdraw_total`")
@ApiModelProperty(value = "总提现")
private BigDecimal usdtWithdrawTotal;
@Column(name = "`balance`")
@ApiModelProperty(value = "总资金")
private BigDecimal balance;
@Column(name = "`freeze_balance`")
@ApiModelProperty(value = "冻结资金")
private BigDecimal freezeBalance;
@Column(name = "`version`")
@ApiModelProperty(value = "版本号")
private Integer version;
@Column(name = "`create_time`")
@ApiModelProperty(value = "创建时间")
private Timestamp createTime;
@Column(name = "`update_time`")
@ApiModelProperty(value = "更新时间")
private Timestamp updateTime;
@Column(name = "`user_language`")
@ApiModelProperty(value = "语言")
private String userLanguage;
@Column(name = "`chip_balance`")
@ApiModelProperty(value = "质押资金")
private BigDecimal chipBalance;
@Column(name = "`father_bind_time`")
@ApiModelProperty(value = "绑定时间")
private Timestamp fatherBindTime;
public void copy(BotUser source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author admin
* @date 2023-10-30
**/
@Entity
@Data
@Table(name="bot_user_flow")
public class BotUserFlow implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`user_telegram_id`")
@ApiModelProperty(value = "电报号")
private String userTelegramId;
@Column(name = "`user_name`")
@ApiModelProperty(value = "用户名称")
private String userName;
@Column(name = "`biz_code`")
@ApiModelProperty(value = "业务代码")
private String bizCode;
@Column(name = "`amount`")
@ApiModelProperty(value = "变动金额")
private BigDecimal amount;
@Column(name = "`old_balance`")
@ApiModelProperty(value = "变动前金额")
private BigDecimal oldBalance;
@Column(name = "`new_balance`")
@ApiModelProperty(value = "变动后金额")
private BigDecimal newBalance;
@Column(name = "`create_time`")
@ApiModelProperty(value = "创建时间")
private Timestamp createTime;
public void copy(BotUserFlow source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2023-11-07
**/
@Entity
@Data
@Table(name="tb_renewals_pay_log")
public class TbRenewalsPayLog implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`pay_type`")
@ApiModelProperty(value = "支付方式")
private String payType;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`order_id`")
@ApiModelProperty(value = "订单Id")
private String orderId;
@Column(name = "`open_id`")
@ApiModelProperty(value = "openId")
private String openId;
@Column(name = "`user_id`")
@ApiModelProperty(value = "用户Id")
private String userId;
@Column(name = "`transaction_id`")
@ApiModelProperty(value = "交易单号(第三方交易单号)")
private String transactionId;
@Column(name = "`amount`",nullable = false)
@NotNull
@ApiModelProperty(value = "金额")
private BigDecimal amount;
@Column(name = "`status`")
@ApiModelProperty(value = "状态 ")
private Integer status;
@Column(name = "`remark`")
@ApiModelProperty(value = "备注")
private String remark;
@Column(name = "`attach`")
@ApiModelProperty(value = "用户自定义参数")
private String attach;
@Column(name = "`expired_at`")
@ApiModelProperty(value = "到期时间")
private Long expiredAt;
@Column(name = "`created_at`")
@ApiModelProperty(value = "创建时间")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbRenewalsPayLog source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2023-11-03
**/
@Entity
@Data
@Table(name="tb_shop_pay_type")
public class TbShopPayType implements Serializable {
@Id
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "`pay_type`")
@ApiModelProperty(value = "支付类型cash,alipay,weixin,deposit,arrears,virtual,member-account")
private String payType;
@Column(name = "`pay_name`")
@ApiModelProperty(value = "支付类型名称支付类型名称现金支付宝刷卡deposit挂单arrears储值member-account自定义virtual")
private String payName;
@Column(name = "`is_show_shortcut`")
@ApiModelProperty(value = "是否快捷展示1是0否")
private Integer isShowShortcut;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺id")
private String shopId;
@Column(name = "`is_refundable`")
@ApiModelProperty(value = "0允许退款 1-不允许退款")
private Integer isRefundable;
@Column(name = "`is_open_cash_drawer`")
@ApiModelProperty(value = "是否打开钱箱")
private Integer isOpenCashDrawer;
@Column(name = "`is_system`")
@ApiModelProperty(value = "0不是 1是 [系统级支付]")
private Integer isSystem;
@Column(name = "`is_ideal`")
@ApiModelProperty(value = "0-非虚拟 1虚拟 virtual")
private Integer isIdeal;
@Column(name = "`is_display`")
@ApiModelProperty(value = "0-不显示1显示")
private Integer isDisplay;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`sorts`")
@ApiModelProperty(value = "排序")
private Integer sorts;
@Column(name = "icon")
@ApiModelProperty(value = "图标")
private String icon;
public void copy(TbShopPayType source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,222 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2023-11-13
**/
@Entity
@Data
@Table(name="tb_user_info")
public class TbUserInfo implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`amount`")
@ApiModelProperty(value = "钱包余额")
private BigDecimal amount;
@Column(name = "`charge_amount`")
@ApiModelProperty(value = "累计充值")
private BigDecimal chargeAmount;
@Column(name = "`line_of_credit`")
@ApiModelProperty(value = "授信额度")
private BigDecimal lineOfCredit;
@Column(name = "`consume_amount`")
@ApiModelProperty(value = "consumeAmount")
private BigDecimal consumeAmount;
@Column(name = "`consume_number`")
@ApiModelProperty(value = "消费次数累计")
private Integer consumeNumber;
@Column(name = "`total_score`")
@ApiModelProperty(value = "总积分")
private Integer totalScore;
@Column(name = "`lock_score`")
@ApiModelProperty(value = "锁定积分")
private Integer lockScore;
@Column(name = "`card_no`")
@ApiModelProperty(value = "会员卡号")
private String cardNo;
@Column(name = "`card_password`")
@ApiModelProperty(value = "会员密码")
private String cardPassword;
@Column(name = "`level_id`")
@ApiModelProperty(value = "等级")
private String levelId;
@Column(name = "`head_img`")
@ApiModelProperty(value = "用户头像")
private String headImg;
@Column(name = "`nick_name`")
@ApiModelProperty(value = "用户昵称")
private String nickName;
@Column(name = "`telephone`")
@ApiModelProperty(value = "电话号码")
private String telephone;
@Column(name = "`wx_ma_app_id`")
@ApiModelProperty(value = "小程序Id")
private String wxMaAppId;
@Column(name = "`birth_day`")
@ApiModelProperty(value = "会员生日")
private String birthDay;
@Column(name = "`sex`")
@ApiModelProperty(value = "0-女 1男")
private Integer sex;
@Column(name = "`mini_app_open_id`")
@ApiModelProperty(value = "小程序的openId")
private String miniAppOpenId;
@Column(name = "`open_id`")
@ApiModelProperty(value = "公众号openId")
private String openId;
@Column(name = "`union_id`")
@ApiModelProperty(value = "联合Id")
private String unionId;
@Column(name = "`code`")
@ApiModelProperty(value = "用户编号")
private String code;
@Column(name = "`type`")
@ApiModelProperty(value = "用户类型-保留字段")
private String type;
@Column(name = "`identify`")
@ApiModelProperty(value = "'DOCTOR'-->医生,'USER'->用户")
private Integer identify;
@Column(name = "`status`")
@ApiModelProperty(value = "1正常")
private Integer status;
@Column(name = "`parent_id`")
@ApiModelProperty(value = "引荐人")
private String parentId;
@Column(name = "`parent_level`")
@ApiModelProperty(value = "parentLevel")
private String parentLevel;
@Column(name = "`parent_type`")
@ApiModelProperty(value = "上家类开型,店铺-SHOP/ 个人- PERSON")
private String parentType;
@Column(name = "`project_id`")
@ApiModelProperty(value = "关注进入的活动Id")
private String projectId;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId;
@Column(name = "`is_resource`")
@ApiModelProperty(value = "0未认证1认证")
private Integer isResource;
@Column(name = "`is_online`")
@ApiModelProperty(value = "是否在线")
private Integer isOnline;
@Column(name = "`is_vip`")
@ApiModelProperty(value = "isVip")
private Integer isVip;
@Column(name = "`vip_effect_at`")
@ApiModelProperty(value = "vipEffectAt")
private Integer vipEffectAt;
@Column(name = "`tips`")
@ApiModelProperty(value = "tips")
private String tips;
@Column(name = "`source_path`")
@ApiModelProperty(value = "用户来源:公众号 WECHAT 小程序 WECHAT-APP 手机注册 TELEPHONE")
private String sourcePath;
@Column(name = "`is_sales_person`")
@ApiModelProperty(value = "是否推广员 1 是 0不是")
private Integer isSalesPerson;
@Column(name = "`is_attention_mp`")
@ApiModelProperty(value = "是否关注公众号")
private Integer isAttentionMp;
@Column(name = "`city`")
@ApiModelProperty(value = "城市")
private String city;
@Column(name = "`search_word`")
@ApiModelProperty(value = "searchWord")
private String searchWord;
@Column(name = "`last_log_in_at`")
@ApiModelProperty(value = "最近登陆时间")
private Long lastLogInAt;
@Column(name = "`last_leave_at`")
@ApiModelProperty(value = "lastLeaveAt")
private Long lastLeaveAt;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`bind_parent_at`")
@ApiModelProperty(value = "绑定时间")
private Long bindParentAt;
@Column(name = "`grand_parent_id`")
@ApiModelProperty(value = "上上家")
private String grandParentId;
public void copy(TbUserInfo source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,156 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.order;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-03-02
**/
@Entity
@Data
@Table(name="tb_cashier_cart")
public class TbCashierCart implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`master_id`")
@ApiModelProperty(value = "主单Id")
private String masterId;
@Column(name = "`order_id`")
@ApiModelProperty(value = "本次下单Id")
private Integer orderId;
@Column(name = "`ref_order_id`")
@ApiModelProperty(value = "退单Id")
private Integer refOrderId;
@Column(name = "`total_amount`")
@ApiModelProperty(value = "购物车总额")
private BigDecimal totalAmount;
@Column(name = "`product_id`")
@ApiModelProperty(value = "商品Id")
private String productId;
@Column(name = "`cover_img`")
@ApiModelProperty(value = "商品图片")
private String coverImg;
@Column(name = "`is_sku`")
@ApiModelProperty(value = "是否sku")
private String isSku;
@Column(name = "`sku_id`")
@ApiModelProperty(value = "skuId")
private String skuId;
@Column(name = "`name`")
@ApiModelProperty(value = "商品名")
private String name;
@Column(name = "`sale_price`")
@ApiModelProperty(value = "单价")
private BigDecimal salePrice;
@Column(name = "`number`",nullable = false)
@NotNull
@ApiModelProperty(value = "结余数量")
private Integer number;
@Column(name = "`total_number`")
@ApiModelProperty(value = "总下单数量")
private Integer totalNumber;
@Column(name = "`refund_number`")
@ApiModelProperty(value = "退单数量")
private Integer refundNumber;
@Column(name = "`category_id`")
@ApiModelProperty(value = "分类Id")
private String categoryId;
@Column(name = "`status`")
@ApiModelProperty(value = "'购物车关闭 closed',' 购物车挂起 refund',' 购物车列表生效create',' 购物车完成final'")
private String status;
@Column(name = "`type`")
@ApiModelProperty(value = "是否为组合商品 0-单商品 1为组合商品")
private Integer type;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`user_id`")
@ApiModelProperty(value = "用户的openId")
private Integer userId;
@Column(name = "`table_id`")
@ApiModelProperty(value = "台桌id")
private Integer tableId;
@Column(name = "`pack_fee`")
@ApiModelProperty(value = "打包费")
private BigDecimal packFee;
@Column(name = "`trade_day`")
@ApiModelProperty(value = "tradeDay")
private String tradeDay;
@Column(name = "`is_pack`")
@ApiModelProperty(value = "isPack")
private String isPack;
@Column(name = "`is_gift`")
@ApiModelProperty(value = "isGift")
private String isGift;
@Column(name = "`pending_at`")
@ApiModelProperty(value = "pendingAt")
private Long pendingAt;
public void copy(TbCashierCart source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.order;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-03-02
**/
@Entity
@Data
@Table(name="tb_order_detail")
public class TbOrderDetail implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`order_id`")
@ApiModelProperty(value = "orderId")
private Integer orderId;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "shopId")
private Integer shopId;
@Column(name = "`product_id`")
@ApiModelProperty(value = "productId")
private Integer productId;
@Column(name = "`product_sku_id`")
@ApiModelProperty(value = "productSkuId")
private Integer productSkuId;
@Column(name = "`num`")
@ApiModelProperty(value = "num")
private Integer num;
@Column(name = "`product_name`")
@ApiModelProperty(value = "productName")
private String productName;
@Column(name = "`product_sku_name`")
@ApiModelProperty(value = "productSkuName")
private String productSkuName;
@Column(name = "`product_img`")
@ApiModelProperty(value = "productImg")
private String productImg;
@Column(name = "`create_time`")
@ApiModelProperty(value = "createTime")
private Timestamp createTime;
@Column(name = "`update_time`")
@ApiModelProperty(value = "updateTime")
private Timestamp updateTime;
@Column(name = "`price`")
@ApiModelProperty(value = "price")
private BigDecimal price;
@Column(name = "`price_amount`")
@ApiModelProperty(value = "priceAmount")
private BigDecimal priceAmount;
@Column(name = "`status`")
@ApiModelProperty(value = "status")
private String status;
@Column(name = "`pack_amount`",nullable = false)
@NotNull
@ApiModelProperty(value = "打包费")
private BigDecimal packAmount;
public void copy(TbOrderDetail source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,214 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.order;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-03-02
**/
@Entity
@Data
@Table(name="tb_order_info")
public class TbOrderInfo implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`order_no`")
@ApiModelProperty(value = "订单编号")
private String orderNo;
@Column(name = "`settlement_amount`")
@ApiModelProperty(value = "商户结算金额")
private BigDecimal settlementAmount;
@Column(name = "`pack_fee`")
@ApiModelProperty(value = "包装费")
private BigDecimal packFee;
@Column(name = "`origin_amount`")
@ApiModelProperty(value = "订单原金额")
private BigDecimal originAmount;
@Column(name = "`product_amount`")
@ApiModelProperty(value = "商品售价")
private BigDecimal productAmount;
@Column(name = "`amount`")
@ApiModelProperty(value = "最终金额---退单后,金额变动")
private BigDecimal amount;
@Column(name = "`refund_amount`")
@ApiModelProperty(value = "退单金额")
private BigDecimal refundAmount;
@Column(name = "`pay_amount`")
@ApiModelProperty(value = "支付金额")
private BigDecimal payAmount;
@Column(name = "`freight_amount`")
@ApiModelProperty(value = "订单邮递费用")
private BigDecimal freightAmount;
@Column(name = "`discount_amount`")
@ApiModelProperty(value = "折扣金额")
private BigDecimal discountAmount;
@Column(name = "`table_id`")
@ApiModelProperty(value = "台桌Id")
private String tableId;
@Column(name = "`small_change`")
@ApiModelProperty(value = "订单抹零")
private BigDecimal smallChange;
@Column(name = "`send_type`")
@ApiModelProperty(value = "发货类型")
private String sendType;
@Column(name = "`order_type`")
@ApiModelProperty(value = "订单类型-cash收银-miniapp小程序-offline线下")
private String orderType;
@Column(name = "`product_type`")
@ApiModelProperty(value = "订单里面商品的类型")
private String productType;
@Column(name = "`status`")
@ApiModelProperty(value = "状态: unpaid 待支付unsend待发货 closed 订单完成 send 已发refunding申请退单refund退单cancelled取消订单merge合台")
private String status;
@Column(name = "`billing_id`")
@ApiModelProperty(value = "orderType为union-minor时parentId生效为其上级合单id")
private String billingId;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "对于平台订单,是收款商户Id")
private String merchantId;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`is_vip`")
@ApiModelProperty(value = "是否vip订单")
private Integer isVip;
@Column(name = "`member_id`")
@ApiModelProperty(value = "商户会员Id")
private String memberId;
@Column(name = "`user_id`")
@ApiModelProperty(value = "用户Id")
private String userId;
@Column(name = "`product_score`")
@ApiModelProperty(value = "该订单商品赠送的积分")
private Integer productScore;
@Column(name = "`deduct_score`")
@ApiModelProperty(value = "抵扣积分")
private Integer deductScore;
@Column(name = "`user_coupon_id`")
@ApiModelProperty(value = "用户使用的卡券")
private String userCouponId;
@Column(name = "`user_coupon_amount`")
@ApiModelProperty(value = "优惠券抵扣金额")
private BigDecimal userCouponAmount;
@Column(name = "`master_id`")
@ApiModelProperty(value = "如果为退单时,主单号")
private String masterId;
@Column(name = "`refund_able`")
@ApiModelProperty(value = "是否支持退款1支持退单 0不支持退单")
private Integer refundAble;
@Column(name = "`paid_time`")
@ApiModelProperty(value = "支付时间")
private Long paidTime;
@Column(name = "`is_effect`")
@ApiModelProperty(value = "是否生效,若订单合单之后,则原订单不会生效")
private Integer isEffect;
@Column(name = "`is_group`")
@ApiModelProperty(value = "是否合台")
private Integer isGroup;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`system_time`")
@ApiModelProperty(value = "系统时间")
private Long systemTime;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`is_accepted`")
@ApiModelProperty(value = "收银台是否已接单")
private Integer isAccepted;
@Column(name = "`pay_type`")
@ApiModelProperty(value = "支付类型")
private String payType;
@Column(name = "`order_amount`")
@ApiModelProperty(value = "订单金额")
private BigDecimal orderAmount;
@Column(name = "`discount_ratio`")
@ApiModelProperty(value = "折扣比例")
private BigDecimal discountRatio;
@Column(name = "`pay_order_no`")
@ApiModelProperty(value = "支付订单号")
private String payOrderNo;
@Column(name = "`trade_day`")
@ApiModelProperty(value = "tradeDay")
private String tradeDay;
@Column(name = "`source`")
@ApiModelProperty(value = "source")
private Integer source;
@Column(name = "`remark`")
@ApiModelProperty(value = "remark")
private String remark;
public void copy(TbOrderInfo source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,312 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2023-12-11
**/
@Entity
@Data
@Table(name="tb_product")
public class TbProduct implements Serializable {
@Id
@Column(name = "`id`")
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`source_path`")
@ApiModelProperty(value = "商品来源 NORMAL普通商品 --,SCORE积分商品")
private String sourcePath="NORMAL";
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId = "PLANT_ID";
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺id")
private String shopId;
@Column(name = "`name`")
@ApiModelProperty(value = "商品名称")
private String name;
@Column(name = "`type`")
@ApiModelProperty(value = "商品类型(属性):REAL- 实物商品 VIR---虚拟商品")
private String type = "REAL";
@Column(name = "`pack_fee`")
@ApiModelProperty(value = "包装费")
private BigDecimal packFee;
@Column(name = "`low_price`",nullable = false)
@NotNull
@ApiModelProperty(value = "商品最低价")
private BigDecimal lowPrice;
@Column(name = "`unit_id`")
@ApiModelProperty(value = "单位Id")
private String unitId;
@Column(name = "`cover_img`")
@ApiModelProperty(value = "商品封面图")
private String coverImg;
@Column(name = "`category_id`")
@ApiModelProperty(value = "categoryId")
private String categoryId;
@Column(name = "`spec_id`")
@ApiModelProperty(value = "商品规格")
private Integer specId;
@Column(name = "`brand_id`")
@ApiModelProperty(value = "品牌Id")
private Integer brandId;
@Column(name = "`short_title`")
@ApiModelProperty(value = "短标题--促销语")
private String shortTitle;
@Column(name = "`low_member_price`")
@ApiModelProperty(value = "lowMemberPrice")
private BigDecimal lowMemberPrice;
@Column(name = "`unit_snap`")
@ApiModelProperty(value = "单位镜像")
private String unitSnap;
@Column(name = "`share_img`")
@ApiModelProperty(value = "商品分享图")
private String shareImg;
@Column(name = "`images`")
@ApiModelProperty(value = "商品图片(第一张为缩略图,其他为详情)")
private String images;
@Column(name = "`video`")
@ApiModelProperty(value = "商品视频URL地址")
private String video;
@Column(name = "`video_cover_img`")
@ApiModelProperty(value = "视频封面图")
private String videoCoverImg;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort = 0;
@Column(name = "`limit_number`")
@ApiModelProperty(value = "0-不限购")
private Integer limitNumber = 0;
@Column(name = "`product_score`")
@ApiModelProperty(value = "商品赚送积分")
private Integer productScore;
@Column(name = "`status`",nullable = false)
@NotNull
@ApiModelProperty(value = "0--待审核 1审核通过 -1审核失败 -2违规下架")
private Integer status = 0;
@Column(name = "`fail_msg`")
@ApiModelProperty(value = "审核失败原因")
private String failMsg;
@Column(name = "`is_recommend`")
@ApiModelProperty(value = "是否推荐,店铺推荐展示")
private Integer isRecommend = 0;
@Column(name = "`is_hot`")
@ApiModelProperty(value = "是否热销")
private Integer isHot = 0;
@Column(name = "`is_new`")
@ApiModelProperty(value = "是否新品")
private Integer isNew;
@Column(name = "`is_on_sale`")
@ApiModelProperty(value = "是否促销1-是0-否")
private Integer isOnSale = 0;
@Column(name = "`is_show`")
@ApiModelProperty(value = "是否展示0-下架 1上架---废弃")
private Integer isShow = 0;
@Column(name = "`type_enum`")
@ApiModelProperty(value = "商品规格0-单规格 1多规格")
private String typeEnum;
@Column(name = "`is_distribute`")
@ApiModelProperty(value = "是否独立分销")
private Integer isDistribute = 0;
@Column(name = "`is_del`",nullable = false)
@NotNull
@ApiModelProperty(value = "是否回收站 0-否1回收站")
private Integer isDel = 0;
@Column(name = "`is_stock`")
@ApiModelProperty(value = "是否开启库存")
private Integer isStock = 1;
@Column(name = "`is_pause_sale`")
@ApiModelProperty(value = "是否暂停销售")
private Integer isPauseSale = 0;
@Column(name = "`is_free_freight`",nullable = false)
@NotNull
@ApiModelProperty(value = "是否免邮1-是 0-否")
private Integer isFreeFreight=1;
@Column(name = "`freight_id`")
@ApiModelProperty(value = "邮费模版")
private Long freightId;
@Column(name = "`strategy_type`")
@ApiModelProperty(value = "商品当前生效策略")
private String strategyType;
@Column(name = "`strategy_id`")
@ApiModelProperty(value = "策略Id")
private Integer strategyId = 1;
@Column(name = "`is_vip`")
@ApiModelProperty(value = "vip专属")
private Integer isVip = 0;
@Column(name = "`is_delete`",nullable = false)
@NotNull
@ApiModelProperty(value = "是否删除")
private Integer isDelete = 0;
@Column(name = "`notice`")
@ApiModelProperty(value = "购买须知")
private String notice;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`base_sales_number`")
@ApiModelProperty(value = "基础出售数量")
private Double baseSalesNumber =0.00;
@Column(name = "`real_sales_number`")
@ApiModelProperty(value = "实际销量")
private Integer realSalesNumber = 0;
@Column(name = "`sales_number`")
@ApiModelProperty(value = "合计销量")
private Integer salesNumber = 0;
@Column(name = "`thumb_count`")
@ApiModelProperty(value = "点赞次数")
private Integer thumbCount = 0;
@Column(name = "`store_count`")
@ApiModelProperty(value = "收藏次数")
private Integer storeCount = 0;
@Column(name = "`furnish_meal`")
@ApiModelProperty(value = "支持堂食")
private Integer furnishMeal = 0;
@Column(name = "`furnish_express`")
@ApiModelProperty(value = "支持配送")
private Integer furnishExpress = 0;
@Column(name = "`furnish_draw`")
@ApiModelProperty(value = "支持自提")
private Integer furnishDraw = 0;
@Column(name = "`furnish_vir`")
@ApiModelProperty(value = "支持虚拟")
private Integer furnishVir = 0;
@Column(name = "`is_combo`")
@ApiModelProperty(value = "是否套餐")
private Integer isCombo =0;
@Column(name = "`group_snap`")
@ApiModelProperty(value = "套餐内容")
private String groupSnap;
@Column(name = "`is_show_cash`")
@ApiModelProperty(value = "isShowCash")
private Integer isShowCash =0;
@Column(name = "`is_show_mall`")
@ApiModelProperty(value = "isShowMall")
private Integer isShowMall = 0;
@Column(name = "`is_need_examine`")
@ApiModelProperty(value = "是否需要审核")
private Integer isNeedExamine = 0;
@Column(name = "`show_on_mall_status`")
@ApiModelProperty(value = "线上商城展示状态0待审核 -1 异常 1正常")
private Integer showOnMallStatus = 1;
@Column(name = "`show_on_mall_time`")
@ApiModelProperty(value = "提交审核时间")
private Long showOnMallTime;
@Column(name = "`show_on_mall_error_msg`")
@ApiModelProperty(value = "线上商城展示失败原因")
private String showOnMallErrorMsg;
@Column(name = "`enable_label`")
@ApiModelProperty(value = "使用标签打印 选择 是 并在 前台>本机设置 勾选打印标签后,收银完成后会自动打印对应数量的标签数")
private Integer enableLabel = 0;
@Column(name = "`tax_config_id`")
@ApiModelProperty(value = "税率")
private String taxConfigId;
@Column(name = "spec_info")
@ApiModelProperty(value = "specInfo")
private String specInfo;
@Column(name = "select_spec")
@ApiModelProperty(value = "selectSpec")
private String selectSpec;
@Column(name = "spec_table_headers")
@ApiModelProperty(value = "specTableHeaders")
private String specTableHeaders;
public void copy(TbProduct source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2023-12-16
**/
@Entity
@Data
@Table(name="tb_product_group")
public class TbProductGroup implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "分组名称")
private String name;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺Id")
private Integer shopId;
@Column(name = "`pic`")
@ApiModelProperty(value = "图标")
private String pic;
@Column(name = "`is_show`",nullable = false)
@NotNull
@ApiModelProperty(value = "是否显示")
private Integer isShow;
@Column(name = "`detail`")
@ApiModelProperty(value = "分类描述")
private String detail;
@Column(name = "`style`")
@ApiModelProperty(value = "style")
private String style;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
@Column(name = "`product_ids`")
@ApiModelProperty(value = "商品列表")
private String productIds;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbProductGroup source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,131 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-03
**/
@Entity
@Data
@Table(name="tb_product_sku")
public class TbProductSku implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "shopId")
private String shopId;
@Column(name = "`bar_code`")
@ApiModelProperty(value = "条形码")
private String barCode;
@Column(name = "`product_id`",nullable = false)
@NotBlank
@ApiModelProperty(value = "商品Id")
private String productId;
@Column(name = "`origin_price`")
@ApiModelProperty(value = "原价")
private BigDecimal originPrice = new BigDecimal("0.00");
@Column(name = "`cost_price`")
@ApiModelProperty(value = "成本价")
private BigDecimal costPrice = new BigDecimal("0.00");
@Column(name = "`member_price`")
@ApiModelProperty(value = "会员价")
private BigDecimal memberPrice;
@Column(name = "`meal_price`")
@ApiModelProperty(value = "mealPrice")
private BigDecimal mealPrice = new BigDecimal("0.00");
@Column(name = "`sale_price`")
@ApiModelProperty(value = "售价")
private BigDecimal salePrice = new BigDecimal("0.00");
@Column(name = "`guide_price`")
@ApiModelProperty(value = "进货参考价")
private BigDecimal guidePrice;
@Column(name = "`strategy_price`")
@ApiModelProperty(value = "strategyPrice")
private BigDecimal strategyPrice;
@Column(name = "`stock_number`")
@ApiModelProperty(value = "库存数量")
private Double stockNumber = 0.00;
@Column(name = "`spec_snap`")
@ApiModelProperty(value = "标签镜像")
private String specSnap;
@Column(name = "`cover_img`")
@ApiModelProperty(value = "coverImg")
private String coverImg;
@Column(name = "`warn_line`")
@ApiModelProperty(value = "库存警戒线")
private Integer warnLine;
@Column(name = "`weight`")
@ApiModelProperty(value = "weight")
private Double weight;
@Column(name = "`volume`")
@ApiModelProperty(value = "volume")
private Float volume;
@Column(name = "`real_sales_number`")
@ApiModelProperty(value = "销量")
private Double realSalesNumber = 0.00;
@Column(name = "`first_shared`")
@ApiModelProperty(value = "一级分销金额")
private BigDecimal firstShared;
@Column(name = "`second_shared`")
@ApiModelProperty(value = "二级分销金额")
private BigDecimal secondShared;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbProductSku source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-02-08
**/
@Entity
@Data
@Table(name="tb_product_sku_result")
public class TbProductSkuResult implements Serializable {
@Id
@Column(name = "`id`")
@ApiModelProperty(value = "商品Id")
private Integer id;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId;
@Column(name = "`spec_id`")
@ApiModelProperty(value = "规格id")
private Long specId;
@Column(name = "`tag_snap`")
@ApiModelProperty(value = "标签列表,包括名称,显示")
private String tagSnap;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbProductSkuResult source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-03
**/
@Entity
@Data
@Table(name="tb_product_spec")
public class TbProductSpec implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "shopId")
private String shopId;
@Column(name = "`name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "商品属性名称")
private String name;
@Column(name = "`spec_tag`")
@ApiModelProperty(value = "规格属性")
private String specTag;
@Column(name = "`spec_tag_detail`")
@ApiModelProperty(value = "属性介绍")
private String specTagDetail;
@Column(name = "`spec_list`")
@ApiModelProperty(value = "specList")
private String specList;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbProductSpec source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,153 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-19
**/
@Entity
@Data
@Table(name="tb_product_stock_detail")
public class TbProductStockDetail implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Long id;
@Column(name = "`sku_id`")
@ApiModelProperty(value = "skuId")
private String skuId;
@Column(name = "`product_id`")
@ApiModelProperty(value = "商品Id")
private String productId;
@Column(name = "`product_name`")
@ApiModelProperty(value = "商品名称")
private String productName;
@Column(name = "`is_stock`")
@ApiModelProperty(value = "是否开启库存")
private Integer isStock;
@Column(name = "`spec_snap`")
@ApiModelProperty(value = "规格")
private String specSnap;
@Column(name = "`unit_name`")
@ApiModelProperty(value = "商品单位")
private String unitName;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺Id")
private String shopId;
/**
* 操作日志id
*/
@Column(name = "`record_id`")
@ApiModelProperty(value = "recordId")
private String recordId;
@Column(name = "`batch_number`")
@ApiModelProperty(value = "操作批次号")
private String batchNumber;
@Column(name = "`source_path`")
@ApiModelProperty(value = "库存操作来源:收银端调用 CASHIER 系统后台调用SHOP")
private String sourcePath;
@Column(name = "`order_id`")
@ApiModelProperty(value = "关联订单Id")
private String orderId;
@Column(name = "`sub_type`",nullable = false)
@NotNull
@ApiModelProperty(value = " 1入库 -1出库")
private Integer subType;
@Column(name = "`type`",nullable = false)
@NotBlank
@ApiModelProperty(value = "purchase采购入库 transfer调拔入库 ")
private String type;
@Column(name = "`left_number`")
@ApiModelProperty(value = "上次剩余数量")
private Integer leftNumber;
@Column(name = "`stock_time`")
@ApiModelProperty(value = "出入库时间")
private Long stockTime;
@Column(name = "`stock_number`")
@ApiModelProperty(value = "本次操作库存数量")
private Double stockNumber;
@Column(name = "`cost_amount`")
@ApiModelProperty(value = "入库合计成本金额")
private BigDecimal costAmount;
@Column(name = "`sales_amount`")
@ApiModelProperty(value = "出售合计金额")
private BigDecimal salesAmount;
@Column(name = "`operator`")
@ApiModelProperty(value = "操作人")
private String operator;
@Column(name = "`remark`")
@ApiModelProperty(value = "备注")
private String remark;
@Column(name = "`stock_snap`")
@ApiModelProperty(value = "库存镜像")
private String stockSnap;
@Column(name = "`bar_code`")
@ApiModelProperty(value = "barCode")
private String barCode;
@Column(name = "`cover_img`")
@ApiModelProperty(value = "coverImg")
private String coverImg;
@Column(name = "`created_at`",nullable = false)
@NotNull
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`",nullable = false)
@NotNull
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbProductStockDetail source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-25
**/
@Entity
@Data
@Table(name="tb_product_stock_operate")
public class TbProductStockOperate implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`shop_id`",nullable = false)
@NotBlank
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`stock_snap`")
@ApiModelProperty(value = "操作镜像")
private String stockSnap;
@Column(name = "`type`")
@ApiModelProperty(value = "type")
private String type;
@Column(name = "`sub_type`")
@ApiModelProperty(value = "subType")
private Integer subType;
@Column(name = "`batch_number`")
@ApiModelProperty(value = "批次")
private String batchNumber;
@Column(name = "`remark`")
@ApiModelProperty(value = "remark")
private String remark;
@Column(name = "`stock_time`")
@ApiModelProperty(value = "操作时间")
private Long stockTime;
@Column(name = "`operator_snap`")
@ApiModelProperty(value = "操作人")
private String operatorSnap;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`purveyor_id`")
@ApiModelProperty(value = "供应商Id")
private String purveyorId;
@Column(name = "`purveyor_name`")
@ApiModelProperty(value = "供应商名称")
private String purveyorName;
@Column(name = "`status`")
@ApiModelProperty(value = "nullify作废normal正常")
private String status;
public void copy(TbProductStockOperate source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.product;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-08
**/
@Entity
@Data
@Table(name="tb_shop_category")
public class TbShopCategory implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "分类名称")
private String name;
@Column(name = "`short_name`")
@ApiModelProperty(value = "简称")
private String shortName;
@Column(name = "`tree`")
@ApiModelProperty(value = "分类层级")
private Integer tree;
@Column(name = "`pid`")
@ApiModelProperty(value = "上级分类id-为0则表示是顶级")
private String pid;
@Column(name = "`pic`")
@ApiModelProperty(value = "图标")
private String pic;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId;
@Column(name = "`shop_id`",nullable = false)
@NotBlank
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`style`")
@ApiModelProperty(value = "颜色格式标识")
private String style;
@Column(name = "`is_show`",nullable = false)
@NotNull
@ApiModelProperty(value = "是否显示1显示 0不显示")
private Integer isShow;
@Column(name = "`detail`")
@ApiModelProperty(value = "分类描述")
private String detail;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
@Column(name = "`key_word`")
@ApiModelProperty(value = "关键词")
private String keyWord;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbShopCategory source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-02-08
**/
@Entity
@Data
@Table(name="tb_merchant_account")
public class TbMerchantAccount implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`account`",nullable = false)
@NotBlank
@ApiModelProperty(value = "登陆帐号")
private String account;
@Column(name = "`password`")
@ApiModelProperty(value = "登陆密码")
private String password;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商家Id")
private String merchantId;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "门店Id")
private String shopId;
@Column(name = "`shop_snap`")
@ApiModelProperty(value = "shopSnap")
private String shopSnap;
@Column(name = "`is_admin`")
@ApiModelProperty(value = "是否管理员")
private Integer isAdmin;
@Column(name = "`is_mercantile`")
@ApiModelProperty(value = "是否商户1商户帐号0-店铺帐号")
private Integer isMercantile;
@Column(name = "`name`")
@ApiModelProperty(value = "姓名")
private String name;
@Column(name = "`sex`")
@ApiModelProperty(value = "性别:0女 1 男")
private Integer sex;
@Column(name = "`email`")
@ApiModelProperty(value = "邮箱")
private String email;
@Column(name = "`head_img`")
@ApiModelProperty(value = "头像")
private String headImg;
@Column(name = "`telephone`")
@ApiModelProperty(value = "联系电话")
private String telephone;
@Column(name = "`status`",nullable = false)
@NotNull
@ApiModelProperty(value = "状态")
private Integer status;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
@Column(name = "`role_id`")
@ApiModelProperty(value = "roleId")
private Integer roleId;
@Column(name = "`last_login_at`")
@ApiModelProperty(value = "最后登陆时间")
private Integer lastLoginAt;
@Column(name = "`mp_open_id`")
@ApiModelProperty(value = "公众号openId")
private String mpOpenId;
@Column(name = "`msg_able`")
@ApiModelProperty(value = "是否接收消息通知")
private Integer msgAble;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbMerchantAccount source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,123 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-02-23
**/
@Entity
@Data
@Table(name="tb_merchant_register")
public class TbMerchantRegister implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`register_code`")
@ApiModelProperty(value = "激活码")
private String registerCode;
@Column(name = "`app_code`")
@ApiModelProperty(value = "授权token")
private String appCode;
@Column(name = "`telephone`")
@ApiModelProperty(value = "telephone")
private String telephone;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "merchantId")
private String merchantId;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺id")
private String shopId;
@Column(name = "`type`")
@ApiModelProperty(value = "版本类型")
private String type;
@Column(name = "`amount`")
@ApiModelProperty(value = "激活码金额")
private BigDecimal amount;
@Column(name = "`period_year`")
@ApiModelProperty(value = "激活时长(月)")
private Integer periodYear;
@Column(name = "`name`")
@ApiModelProperty(value = "name")
private String name = "";
@Column(name = "`address`")
@ApiModelProperty(value = "address")
private String address;
@Column(name = "`logo`")
@ApiModelProperty(value = "logo")
private String logo;
@Column(name = "`industry`")
@ApiModelProperty(value = "industry")
private String industry;
@Column(name = "`industry_name`")
@ApiModelProperty(value = "industryName")
private String industryName;
@Column(name = "`status`")
@ApiModelProperty(value = "状态0未使用1已使用")
private Integer status;
@Column(name = "`limit_shop_number`")
@ApiModelProperty(value = "limitShopNumber")
private Integer limitShopNumber;
@Column(name = "`source_path`")
@ApiModelProperty(value = "sourcePath")
private String sourcePath;
@Column(name = "`created_at`")
@ApiModelProperty(value = "创建时间")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "proxy_id")
@ApiModelProperty(value = "代理id")
private String proxyId;
public void copy(TbMerchantRegister source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-02-02
**/
@Entity
@Data
@Table(name="tb_merchant_third_apply")
public class TbMerchantThirdApply implements Serializable {
@Id
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`type`")
@ApiModelProperty(value = "type")
private String type;
@Column(name = "`app_id`",unique = true)
@ApiModelProperty(value = "商户应用")
private String appId;
@Column(name = "`app_token`")
@ApiModelProperty(value = "商户token")
private String appToken;
@Column(name = "`status`")
@ApiModelProperty(value = "审核详情-1未提交0已提交不可修改 1审核通过")
private Integer status;
@Column(name = "`pay_password`")
@ApiModelProperty(value = "支付密码")
private String payPassword;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "shopId")
private Integer shopId;
public void copy(TbMerchantThirdApply source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-03-01
**/
@Entity
@Data
@Table(name="tb_pluss_shop_staff")
public class TbPlussShopStaff implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增")
private Integer id;
@Column(name = "`code`")
@ApiModelProperty(value = "员工编号")
private String code;
@Column(name = "`name`")
@ApiModelProperty(value = "员工名称")
private String name;
@Column(name = "`account`")
@ApiModelProperty(value = "登录账号")
private String account;
@Column(name = "`password`")
@ApiModelProperty(value = "密码")
private String password;
@Column(name = "`max_discount_amount`")
@ApiModelProperty(value = "最大优惠金额")
private BigDecimal maxDiscountAmount;
@Column(name = "`status`")
@ApiModelProperty(value = "1启用0不启用")
private Integer status;
@Column(name = "`employee`")
@ApiModelProperty(value = "登录端")
private String employee;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "shopId")
private String shopId;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbPlussShopStaff source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,120 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-08
**/
@Entity
@Data
@Table(name="tb_receipt_sales")
public class TbReceiptSales implements Serializable {
@Id
@Column(name = "`id`")
@ApiModelProperty(value = "shopId")
private Integer id;
@Column(name = "`title`")
@ApiModelProperty(value = "标题")
private String title="";
@Column(name = "`logo`")
@ApiModelProperty(value = "是否显示公司Logo")
private String logo="";
@Column(name = "`show_contact_info`")
@ApiModelProperty(value = "打印联系电话等信息")
private Integer showContactInfo=0;
@Column(name = "`show_member`")
@ApiModelProperty(value = "打印会员开关 01")
private Integer showMember=0;
@Column(name = "`show_member_code`")
@ApiModelProperty(value = "打印会员编号开关")
private Integer showMemberCode=0;
@Column(name = "`show_member_score`")
@ApiModelProperty(value = "打印会员积分")
private Integer showMemberScore=0;
@Column(name = "`show_member_wallet`")
@ApiModelProperty(value = "打印会员余额开关 01")
private Integer showMemberWallet=0;
@Column(name = "`footer_remark`")
@ApiModelProperty(value = "店铺Id")
private String footerRemark="";
@Column(name = "`show_cash_charge`")
@ApiModelProperty(value = "打印找零")
private Integer showCashCharge=0;
@Column(name = "`show_serial_no`")
@ApiModelProperty(value = "流水号")
private Integer showSerialNo=0;
@Column(name = "`big_serial_no`")
@ApiModelProperty(value = "用大号字打印流水号 在showSerialNo可用前提下")
private Integer bigSerialNo;
@Column(name = "`header_text`")
@ApiModelProperty(value = "头部文字")
private String headerText;
@Column(name = "`header_text_align`")
@ApiModelProperty(value = "文字 对齐方式")
private String headerTextAlign;
@Column(name = "`footer_text`")
@ApiModelProperty(value = "尾部文字")
private String footerText="";
@Column(name = "`footer_text_align`")
@ApiModelProperty(value = "文字 对齐方式")
private String footerTextAlign;
@Column(name = "`footer_image`")
@ApiModelProperty(value = "尾部图像")
private String footerImage="";
@Column(name = "`pre_print`")
@ApiModelProperty(value = "预打印YES开启 NO不开启")
private String prePrint;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbReceiptSales source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-31
**/
@Entity
@Data
@Table(name="tb_shop_area")
public class TbShopArea implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`shop_id`",nullable = false)
@NotNull
@ApiModelProperty(value = "店铺Id")
private Integer shopId;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
@Column(name = "`name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "区域名称")
private String name;
@Column(name = "`price`")
@ApiModelProperty(value = "区域价格")
private Integer price;
@Column(name = "`view`")
@ApiModelProperty(value = "图片")
private String view;
@Column(name = "`capacity_range`")
@ApiModelProperty(value = "建议人数 5-10")
private String capacityRange;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbShopArea source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-05
**/
@Entity
@Data
@Table(name="tb_shop_cash_spread")
public class TbShopCashSpread implements Serializable {
@Id
@Column(name = "`id`")
@ApiModelProperty(value = "shopId")
private Integer id;
@Column(name = "`sale_receipt`")
@ApiModelProperty(value = "登陆密码")
private String saleReceipt;
@Column(name = "`triplicate_receipt`")
@ApiModelProperty(value = "状态")
private String triplicateReceipt;
@Column(name = "`screen_config`")
@ApiModelProperty(value = "到期提醒时间")
private String screenConfig;
@Column(name = "`tag_config`")
@ApiModelProperty(value = "tagConfig")
private String tagConfig;
@Column(name = "`scale_config`")
@ApiModelProperty(value = "scaleConfig")
private String scaleConfig;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbShopCashSpread source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,130 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-05
**/
@Entity
@Data
@Table(name="tb_shop_currency")
public class TbShopCurrency implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`prepare_amount`")
@ApiModelProperty(value = "备用金")
private BigDecimal prepareAmount;
@Column(name = "`currency`")
@ApiModelProperty(value = "货币单位 ¥,$")
private String currency;
@Column(name = "`decimals_digits`")
@ApiModelProperty(value = "小数位012")
private Integer decimalsDigits;
@Column(name = "`discount_round`")
@ApiModelProperty(value = "四舍五入五舍六入none,round4up5,round5up6,round12up34")
private String discountRound;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId;
@Column(name = "`small_change`")
@ApiModelProperty(value = "订单抹零 -1无0元 1角2分 0.5=0.5元")
private Integer smallChange;
@Column(name = "`enable_custom_discount`")
@ApiModelProperty(value = "使折扣生效")
private Integer enableCustomDiscount;
@Column(name = "`max_discount`")
@ApiModelProperty(value = "最大抹零金额(100)")
private BigDecimal maxDiscount;
@Column(name = "`max_percent`")
@ApiModelProperty(value = "最大折扣百分比,优先级高于max_discount")
private Double maxPercent;
@Column(name = "`discount_configs`")
@ApiModelProperty(value = "折扣显示详情")
private String discountConfigs;
@Column(name = "`biz_duration`")
@ApiModelProperty(value = "营业时间(弃用)")
private String bizDuration;
@Column(name = "`allow_web_pay`")
@ApiModelProperty(value = "允许网络支付")
private Integer allowWebPay;
@Column(name = "`is_auto_to_zero`")
@ApiModelProperty(value = "自动抹零,开启时,系统自动抹零")
private Integer isAutoToZero;
@Column(name = "`is_include_tax_price`")
@ApiModelProperty(value = "商品含税")
private Integer isIncludeTaxPrice;
@Column(name = "`service_charge`")
@ApiModelProperty(value = "服务费配置(小费)")
private String serviceCharge;
@Column(name = "`tax_number`")
@ApiModelProperty(value = "税号")
private String taxNumber;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`auto_lock_screen`")
@ApiModelProperty(value = "自动锁屏")
private Integer autoLockScreen;
@Column(name = "`voice_notification`")
@ApiModelProperty(value = "语音通知")
private Integer voiceNotification;
public void copy(TbShopCurrency source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,224 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2023-11-07
**/
@Entity
@Data
@Table(name="tb_shop_info")
public class TbShopInfo implements Serializable {
@Id
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "`account`")
@ApiModelProperty(value = "店铺帐号")
private String account;
@Column(name = "`shop_code`")
@ApiModelProperty(value = "店铺代号策略方式为city +店铺号8位")
private String shopCode;
@Column(name = "`sub_title`")
@ApiModelProperty(value = "店铺口号")
private String subTitle;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "商户Id")
private String merchantId;
@Column(name = "`shop_name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "店铺名称")
private String shopName;
@Column(name = "`chain_name`")
@ApiModelProperty(value = "连锁店扩展店名")
private String chainName;
@Column(name = "`back_img`")
@ApiModelProperty(value = "背景图")
private String backImg;
@Column(name = "`front_img`")
@ApiModelProperty(value = "门头照")
private String frontImg;
@Column(name = "`contact_name`")
@ApiModelProperty(value = "联系人姓名")
private String contactName;
@Column(name = "`phone`")
@ApiModelProperty(value = "联系电话")
private String phone;
@Column(name = "`logo`")
@ApiModelProperty(value = "店铺log")
private String logo;
@Column(name = "`is_deposit`")
@ApiModelProperty(value = "是否参与代收 0--不参与 1参与 ")
private Integer isDeposit;
@Column(name = "`is_supply`")
@ApiModelProperty(value = "是否为供应商")
private Integer isSupply;
@Column(name = "`cover_img`")
@ApiModelProperty(value = "封面图")
private String coverImg;
@Column(name = "`share_img`")
@ApiModelProperty(value = "店铺分享图")
private String shareImg;
@Column(name = "`view`")
@ApiModelProperty(value = "轮播图")
private String view;
@Column(name = "`detail`")
@ApiModelProperty(value = "店铺简介")
private String detail;
@Column(name = "`lat`")
@ApiModelProperty(value = "经纬度")
private String lat;
@Column(name = "`lng`")
@ApiModelProperty(value = "经纬度")
private String lng;
@Column(name = "`mch_id`")
@ApiModelProperty(value = "未用")
private String mchId;
@Column(name = "`register_type`")
@ApiModelProperty(value = "registerType")
private String registerType;
@Column(name = "`is_wx_ma_independent`")
@ApiModelProperty(value = "是否独立的微信小程序")
private Integer isWxMaIndependent;
@Column(name = "`address`")
@ApiModelProperty(value = "详细地址")
private String address;
@Column(name = "`city`")
@ApiModelProperty(value = "类似于这种规则51.51.570")
private String city;
@Column(name = "`type`")
@ApiModelProperty(value = "店铺类型 超市--MARKET---其它店SHOP")
private String type;
@Column(name = "`industry`")
@ApiModelProperty(value = "行业")
private String industry;
@Column(name = "`industry_name`")
@ApiModelProperty(value = "行业名称")
private String industryName;
@Column(name = "`business_time`")
@ApiModelProperty(value = "营业时间")
private String businessTime;
@Column(name = "`post_time`")
@ApiModelProperty(value = "配送时间")
private String postTime;
@Column(name = "`post_amount_line`")
@ApiModelProperty(value = "postAmountLine")
private BigDecimal postAmountLine;
@Column(name = "`on_sale`")
@ApiModelProperty(value = "0停业1正常营业,网上售卖")
private Integer onSale;
@Column(name = "`settle_type`")
@ApiModelProperty(value = "0今日1次日")
private Integer settleType;
@Column(name = "`settle_time`")
@ApiModelProperty(value = "时间")
private String settleTime;
@Column(name = "`enter_at`")
@ApiModelProperty(value = "入驻时间")
private Integer enterAt;
@Column(name = "`expire_at`")
@ApiModelProperty(value = "到期时间")
private Long expireAt;
@Column(name = "`status`",nullable = false)
@NotNull
@ApiModelProperty(value = "门店状态")
private Integer status;
@Column(name = "`average`")
@ApiModelProperty(value = "人均消费")
private Float average;
@Column(name = "`order_wait_pay_minute`")
@ApiModelProperty(value = "订单等待时间")
private Integer orderWaitPayMinute;
@Column(name = "`support_device_number`")
@ApiModelProperty(value = "支持登陆设备个数")
private Integer supportDeviceNumber;
@Column(name = "`distribute_level`")
@ApiModelProperty(value = "分销层级1-下级分销 2-两下级分销)")
private Integer distributeLevel;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`proxy_id`")
@ApiModelProperty(value = "proxyId")
private String proxyId;
@Column(name = "profiles")
@ApiModelProperty(value = "未激活 no 试用probation 正式release")
private String profiles="";
public void copy(TbShopInfo source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(false));
}
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-22
**/
@Entity
@Data
@Table(name="tb_shop_purveyor")
public class TbShopPurveyor implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`shop_id`",nullable = false)
@NotBlank
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
@Column(name = "`name`")
@ApiModelProperty(value = "名称")
private String name;
@Column(name = "`purveyor_name`")
@ApiModelProperty(value = "联系人名字")
private String purveyorName;
@Column(name = "`purveyor_telephone`")
@ApiModelProperty(value = "联系人电话")
private String purveyorTelephone;
@Column(name = "`period`")
@ApiModelProperty(value = "结算周期(日)")
private Integer period;
@Column(name = "`address`")
@ApiModelProperty(value = "供应商地址")
private String address;
@Column(name = "`tip`")
@ApiModelProperty(value = "标签")
private String tip;
@Column(name = "`remark`")
@ApiModelProperty(value = "备注")
private String remark;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`last_transact_at`")
@ApiModelProperty(value = "最后一次交易时间(主要做排序)")
private Long lastTransactAt;
public void copy(TbShopPurveyor source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-23
**/
@Entity
@Data
@Table(name="tb_shop_purveyor_transact")
public class TbShopPurveyorTransact implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`shop_id`",nullable = false)
@NotBlank
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`purveyor_name`")
@ApiModelProperty(value = "供应商名字")
private String purveyorName;
@Column(name = "`purveyor_id`")
@ApiModelProperty(value = "供应商Id")
private String purveyorId;
@Column(name = "`status`")
@ApiModelProperty(value = "0待付款1已付款 -1是否作废")
private Integer status;
@Column(name = "`remark`")
@ApiModelProperty(value = "备注")
private String remark;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`total_amount`")
@ApiModelProperty(value = "应付金额")
private BigDecimal totalAmount;
@Column(name = "`wait_amount`")
@ApiModelProperty(value = "待付款金额")
private BigDecimal waitAmount;
@Column(name = "`paid_amount`")
@ApiModelProperty(value = "已支付金额")
private BigDecimal paidAmount;
@Column(name = "`paid_at`")
@ApiModelProperty(value = "paidAt")
private Long paidAt;
@Column(name = "`type`")
@ApiModelProperty(value = "type")
private String type;
public void copy(TbShopPurveyorTransact source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,111 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-18
**/
@Entity
@Data
@Table(name="tb_shop_table")
public class TbShopTable implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "自增id")
private Integer id;
@Column(name = "`name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "name")
private String name;
@Column(name = "`shop_id`",nullable = false)
@NotNull
@ApiModelProperty(value = "shopId")
private Integer shopId;
@Column(name = "`max_capacity`")
@ApiModelProperty(value = "客座数,允许的客座数量")
private Integer maxCapacity;
@Column(name = "`sort`")
@ApiModelProperty(value = "台桌排序")
private Integer sort;
@Column(name = "`area_id`")
@ApiModelProperty(value = "区域Id")
private Integer areaId;
@Column(name = "`is_predate`")
@ApiModelProperty(value = "是否接受网络预定")
private Integer isPredate;
@Column(name = "`predate_amount`")
@ApiModelProperty(value = "网络预定台桌支付金额")
private BigDecimal predateAmount = new BigDecimal("0.00");
@Column(name = "`status`",nullable = false)
@NotBlank
@ApiModelProperty(value = "subscribe预定closed--关台, opening 开台中cleaning 台桌清理中")
private String status = "opening";
@Column(name = "`type`")
@ApiModelProperty(value = "台桌计算价格类型0-低消类型amount 2计时类型")
private Integer type;
@Column(name = "`amount`")
@ApiModelProperty(value = "当type=0时amount生效,为台桌的低消金额")
private BigDecimal amount;
@Column(name = "`perhour`")
@ApiModelProperty(value = "当type=2时perhour生效为计时类型,每小时收款金额")
private BigDecimal perhour;
@Column(name = "`view`")
@ApiModelProperty(value = "台桌展示图---预留")
private String view;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`qrcode`")
@ApiModelProperty(value = "二维码")
private String qrcode = "";
public void copy(TbShopTable source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-01-02
**/
@Entity
@Data
@Table(name="tb_shop_unit")
public class TbShopUnit implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "单位名称")
private String name;
@Column(name = "`decimals_digits`")
@ApiModelProperty(value = "小数位个数大于0表示小数据精度位数")
private Integer decimalsDigits;
@Column(name = "`unit_type`")
@ApiModelProperty(value = "单位类型(weight代表重量小数单位为number代表个数)")
private String unitType;
@Column(name = "`is_system`")
@ApiModelProperty(value = "0后台添加 -1系统默认 (公斤、瓶)")
private Integer isSystem;
@Column(name = "`status`")
@ApiModelProperty(value = "预留字段1-正常")
private Integer status;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "merchantId")
private String merchantId;
@Column(name = "`shop_id`")
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
public void copy(TbShopUnit source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}

View File

@@ -0,0 +1,157 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.pojo.shop;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @website https://eladmin.vip
* @description /
* @author lyf
* @date 2024-03-01
**/
@Entity
@Data
@Table(name="tb_shop_user")
public class TbShopUser implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "(随机)")
private Integer id;
@Column(name = "`amount`")
@ApiModelProperty(value = "钱包余额")
private BigDecimal amount;
@Column(name = "`credit_amount`")
@ApiModelProperty(value = "授权金额")
private BigDecimal creditAmount;
@Column(name = "`consume_amount`")
@ApiModelProperty(value = "消费累计")
private BigDecimal consumeAmount;
@Column(name = "`consume_number`")
@ApiModelProperty(value = "消费数量累计")
private Integer consumeNumber;
@Column(name = "`level_consume`",nullable = false)
@NotNull
@ApiModelProperty(value = "等级积分")
private BigDecimal levelConsume;
@Column(name = "`status`")
@ApiModelProperty(value = "0-不可使用 1可使用")
private Integer status;
@Column(name = "`merchant_id`")
@ApiModelProperty(value = "代理Id")
private String merchantId;
@Column(name = "`shop_id`",nullable = false)
@NotBlank
@ApiModelProperty(value = "店铺Id")
private String shopId;
@Column(name = "`user_id`")
@ApiModelProperty(value = "用户Id")
private String userId;
@Column(name = "`parent_id`")
@ApiModelProperty(value = "上级Id")
private String parentId;
@Column(name = "`parent_level`")
@ApiModelProperty(value = "上级的层级")
private String parentLevel;
@Column(name = "`name`")
@ApiModelProperty(value = "真实名字")
private String name;
@Column(name = "`head_img`")
@ApiModelProperty(value = "headImg")
private String headImg;
@Column(name = "`sex`")
@ApiModelProperty(value = "性别")
private Integer sex;
@Column(name = "`birth_day`")
@ApiModelProperty(value = "生日")
private String birthDay;
@Column(name = "`telephone`")
@ApiModelProperty(value = "联系电话")
private String telephone;
@Column(name = "`is_vip`")
@ApiModelProperty(value = "是否会员,")
private Integer isVip;
@Column(name = "`code`")
@ApiModelProperty(value = "会员编号")
private String code;
@Column(name = "`is_attention`")
@ApiModelProperty(value = "是否通过关注而成为会员的,此字段固定后不改")
private Integer isAttention;
@Column(name = "`attention_at`")
@ApiModelProperty(value = "关注时间")
private Integer attentionAt;
@Column(name = "`is_shareholder`")
@ApiModelProperty(value = "是否股东(分销商)")
private Integer isShareholder;
@Column(name = "`level`")
@ApiModelProperty(value = "层级1-顶级 2-次级 3最低")
private Integer level;
@Column(name = "`distribute_type`")
@ApiModelProperty(value = "分销类型 auto-自动获取 set手动设置 charge充值")
private String distributeType;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
@Column(name = "`created_at`")
@ApiModelProperty(value = "createdAt")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "updatedAt")
private Long updatedAt;
@Column(name = "`mini_open_id`")
@ApiModelProperty(value = "小程序openId")
private String miniOpenId;
public void copy(TbShopUser source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}