username@email.com
2024-08-15 d3bf3cea8c5a35a8a6ecd5c7d2652f869bac6c44

2个文件已修改
6个文件已添加
545 ■■■■■ 已修改文件
cylsg/cylsg.Core/BaseModelBase.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Model/OrderModel/Order.cs 138 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Model/OrderModel/OrderBidding.cs 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Model/OrderModel/OrderBiddingDetail.cs 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Model/OrderModel/OrderBiddingDetailCheck.cs 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Model/UserModel/User.cs 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Model/UserModel/UserCompany.cs 100 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Model/UserModel/UserWorker.cs 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cylsg/cylsg.Core/BaseModelBase.cs
@@ -23,7 +23,7 @@
        /// 创建人
        /// </summary>
        [Display(Name = "创建人 ")]
        [SugarColumn(ColumnDescription = "创建人 ", Length = 100)]
        [SugarColumn(ColumnDescription = "创建人 ", ColumnDataType = "nvarchar(100)")]
        public string CreateBy { get; set; }
        /// <summary>
        /// 修改时间
@@ -35,7 +35,7 @@
        /// 修改人
        /// </summary>
        [Display(Name = "修改人 ")]
        [SugarColumn(ColumnDescription = "修改人 ", Length = 100)]
        [SugarColumn(ColumnDescription = "修改人 ", ColumnDataType = "nvarchar(100)")]
        public string UpDataBy { get; set; }
cylsg/cylsg.Model/OrderModel/Order.cs
New file
@@ -0,0 +1,138 @@
using cylsg.Core;
using cylsg.Core.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.OrderModel
{
    /// <summary>
    /// 招工订单
    /// </summary>
    [Description("招工订单")]
    [CoderFirst]
    public class Order : BaseModel
    {
        /// <summary>
        /// 招工Id
        /// </summary>
        [SugarColumn(ColumnDescription = "招工Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 招工用户id
        /// </summary>
        [SugarColumn(ColumnDescription = "招工用户id")]
        public int OrderUserId { get; set; }
        /// <summary>
        /// 招工名称
        /// </summary>
        [SugarColumn(ColumnDescription = "招工名称", ColumnDataType = "nvarchar(100)")]
        public string OrderName { get; set; }
        /// <summary>
        /// 工作开始时间
        /// </summary>
        [Display(Name = "工作开始时间")]
        [SugarColumn(ColumnDescription = "工作开始时间", IsNullable = true)]
        public DateTime? WordStartTime { get; set; }
        /// <summary>
        /// 工作结束时间
        /// </summary>
        [Display(Name = "工作结束时间")]
        [SugarColumn(ColumnDescription = "工作结束时间", IsNullable = true)]
        public DateTime? WordEndTime { get; set; }
        /// <summary>
        /// 需求
        /// </summary>
        [SugarColumn(ColumnDescription = "需求", ColumnDataType = "nvarchar(2000)", IsNullable = true)]
        public string Demand { get; set; }
        /// <summary>
        /// 招工人数
        /// </summary>
        [SugarColumn(ColumnDescription = "招工人数",  IsNullable = true)]
        public int? WorderCount { get; set; }
        /// <summary>
        /// 工作地点
        /// </summary>
        [SugarColumn(ColumnDescription = "工作地点", ColumnDataType = "nvarchar(500)", IsNullable = true)]
        public string WorderAddress { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [SugarColumn(ColumnDescription = "联系电话", ColumnDataType = "nvarchar(30)", IsNullable = true)]
        public string ContactPhone { get; set; }
        /// <summary>
        /// 工作方式
        /// </summary>
        [SugarColumn(ColumnDescription = "工作方式", IsNullable = true)]
        public WorkerTypes? WorkerType { get; set; }
        /// <summary>
        /// 工价
        /// </summary>
        [SugarColumn(ColumnDescription = "工价", Length = 18, DecimalDigits = 2, IsNullable = true)]
        public decimal? WorkPrice { get; set; }
        /// <summary>
        /// 招工状态
        /// </summary>
        [SugarColumn(ColumnDescription = "招工状态", IsNullable = true)]
        public OrderStatuses? OrderStatus { get; set; }
    }
    /// <summary>
    /// 工作方式
    /// </summary>
    public enum WorkerTypes
    {
        /// <summary>
        ///计时
        /// </summary>
        time = 0,
        /// <summary>
        ///计件
        /// </summary>
        count = 1
    }
    /// <summary>
    /// 招工状态
    /// </summary>
    public enum OrderStatuses
    {
        /// <summary>
        ///发布
        /// </summary>
        fabu = 0,
        /// <summary>
        ///招工完毕
        /// </summary>
        zhaogongwanbi = 1,
        /// <summary>
        ///结算完毕
        /// </summary>
        jiesuanwanbi = 2
    }
}
cylsg/cylsg.Model/OrderModel/OrderBidding.cs
New file
@@ -0,0 +1,57 @@
using cylsg.Core;
using cylsg.Core.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.OrderModel
{
    /// <summary>
    /// 工人投递
    /// </summary>
    [Description("工人投递")]
    [CoderFirst]
    public class OrderBidding : BaseModel
    {
        /// <summary>
        /// 工人投递Id
        /// </summary>
        [SugarColumn(ColumnDescription = "工人投递Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnDescription = "用户id")]
        public int WorkerUserId { get; set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        [SugarColumn(ColumnDescription = "是否选中", IsNullable = true)]
        public bool? IsSelected { get; set; }
        /// <summary>
        /// 选中时间
        /// </summary>
        [SugarColumn(ColumnDescription = "选中时间", IsNullable = true)]
        public DateTime? Selectedtime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", ColumnDataType = "nvarchar(250)", IsNullable = true)]
        public string Remark { get; set; }
        /// <summary>
        /// 工资总额
        /// </summary>
        [SugarColumn(ColumnDescription = "工资总额", Length = 18, DecimalDigits = 2, IsNullable = true)]
        public decimal? Salary { get; set; }
    }
}
cylsg/cylsg.Model/OrderModel/OrderBiddingDetail.cs
New file
@@ -0,0 +1,99 @@
using cylsg.Core;
using cylsg.Core.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.OrderModel
{
    /// <summary>
    /// 工人工作明细表
    /// </summary>
    [Description("工人工作明细表")]
    [CoderFirst]
    public class OrderBiddingDetail : BaseModel
    {
        /// <summary>
        /// 工人工作明细表Id
        /// </summary>
        [SugarColumn(ColumnDescription = "工人工作明细表Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 工人投递id
        /// </summary>
        [SugarColumn(ColumnDescription = "工人投递id")]
        public int OrderBiddingId { get; set; }
        /// <summary>
        /// 工作日期
        /// </summary>
        [SugarColumn(ColumnDescription = "工作日期", IsNullable = true)]
        public DateTime? WorkDate { get; set; }
        /// <summary>
        /// 工作时长
        /// </summary>
        [SugarColumn(ColumnDescription = "工作时长", Length = 18, DecimalDigits = 2, IsNullable = true)]
        public decimal? WorkTime { get; set; }
        /// <summary>
        /// 计件数量
        /// </summary>
        [SugarColumn(ColumnDescription = "计件数量", Length = 18, DecimalDigits = 2, IsNullable = true)]
        public decimal? WorkCount { get; set; }
        /// <summary>
        /// 当日工资
        /// </summary>
        [SugarColumn(ColumnDescription = "当日工资", Length = 18, DecimalDigits = 2, IsNullable = true)]
        public decimal? TodaySalary { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        [SugarColumn(ColumnDescription = "审批状态", IsNullable = true)]
        public IsShenPis? IsShenPi { get; set; }
        /// <summary>
        /// 审批时间
        /// </summary>
        [SugarColumn(ColumnDescription = "审批时间", IsNullable = true)]
        public DateTime? ShenPitime { get; set; }
        /// <summary>
        /// 是否提现
        /// </summary>
        [SugarColumn(ColumnDescription = "是否提现", IsNullable = true)]
        public bool? IsTiXian { get; set; }
        /// <summary>
        /// 提现时间
        /// </summary>
        [SugarColumn(ColumnDescription = "提现时间", IsNullable = true)]
        public DateTime? TiXiantime { get; set; }
    }
    /// <summary>
    /// 审批状态
    /// </summary>
    public enum IsShenPis
    {
        /// <summary>
        ///计时
        /// </summary>
        weishenpi = 0,
        /// <summary>
        ///计件
        /// </summary>
        yishenpi = 1
    }
}
cylsg/cylsg.Model/OrderModel/OrderBiddingDetailCheck.cs
New file
@@ -0,0 +1,47 @@
using cylsg.Core;
using cylsg.Core.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.OrderModel
{
    /// <summary>
    /// 打卡记录表
    /// </summary>
    [Description("打卡记录表")]
    [CoderFirst]
    public class OrderBiddingDetailCheck : BaseModel
    {
        /// <summary>
        /// 打卡记录表Id
        /// </summary>
        [SugarColumn(ColumnDescription = "打卡记录表Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 工人工作明细表Id
        /// </summary>
        [SugarColumn(ColumnDescription = "工人工作明细表Id")]
        public int OrderBiddingDetailId { get; set; }
        /// <summary>
        /// 打卡照片
        /// </summary>
        [SugarColumn(ColumnDescription = "打卡照片", ColumnDataType = "nvarchar(500)", IsNullable = true)]
        public string CheckPhoto { get; set; }
        /// <summary>
        /// 打卡时间
        /// </summary>
        [SugarColumn(ColumnDescription = "打卡时间", IsNullable = true)]
        public DateTime? Checktime { get; set; }
    }
}
cylsg/cylsg.Model/UserModel/User.cs
@@ -26,37 +26,37 @@
        /// <summary>
        /// 电话
        /// </summary>
        [SugarColumn(ColumnDescription = "电话")]
        [SugarColumn(ColumnDescription = "电话", ColumnDataType = "nvarchar(30)")]
        public string Phone { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnDescription = "名称",Length =100)]
        [SugarColumn(ColumnDescription = "名称", ColumnDataType = "nvarchar(100)")]
        public string name { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        [SugarColumn(ColumnDescription = "电话号码", Length = 30)]
        [SugarColumn(ColumnDescription = "电话号码", ColumnDataType = "nvarchar(30)")]
        public string ItCode { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        [SugarColumn(ColumnDescription = "用户ID", Length = 100)]
        public int Nickname { get; set; }
        [SugarColumn(ColumnDescription = "用户ID", ColumnDataType = "nvarchar(100)")]
        public string Nickname { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnDescription = "密码", Length = 100)]
        public int PassWord { get; set; }
        [SugarColumn(ColumnDescription = "密码", ColumnDataType = "nvarchar(100)")]
        public string PassWord { get; set; }
        /// <summary>
        /// 头像地址
        /// </summary>
        [SugarColumn(ColumnDescription = "头像地址")]
        public int Avatar { get; set; }
        [SugarColumn(ColumnDescription = "头像地址", ColumnDataType = "nvarchar(500)")]
        public string Avatar { get; set; }
    }
}
cylsg/cylsg.Model/UserModel/UserCompany.cs
New file
@@ -0,0 +1,100 @@
using cylsg.Core;
using cylsg.Core.Attributes;
using Microsoft.AspNetCore.Routing.Constraints;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.UserModel
{
    /// <summary>
    /// 用户公司
    /// </summary>
    [Description("用户公司")]
    [CoderFirst]
    public class UserCompany : BaseModel
    {
        /// <summary>
        /// 用户公司Id
        /// </summary>
        [SugarColumn(ColumnDescription = "用户公司ID", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnDescription = "用户id")]
        public int UserId { get; set; }
        /// <summary>
        /// 营业执照路径
        /// </summary>
        [SugarColumn(ColumnDescription = "营业执照路径", ColumnDataType = "nvarchar(500)")]
        public string BusinessLicense { get; set; }
        /// <summary>
        /// 企业名称
        /// </summary>
        [SugarColumn(ColumnDescription = "企业名称", ColumnDataType = "nvarchar(100)", IsNullable = true)]
        public string Suppliername { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        [SugarColumn(ColumnDescription = "注册时间", IsNullable = true)]
        public DateTime? Regtime { get; set; }
        /// <summary>
        /// 联系地址
        /// </summary>
        [SugarColumn(ColumnDescription = "联系地址", ColumnDataType = "nvarchar(500)", IsNullable = true)]
        public string Address { get; set; }
        /// <summary>
        /// 企业注册号
        /// </summary>
        [SugarColumn(ColumnDescription = "企业注册号", ColumnDataType = "nvarchar(30)", IsNullable = true)]
        public string Suppliercode { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnDescription = "联系人", ColumnDataType = "nvarchar(50)", IsNullable = true)]
        public string Contact { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [SugarColumn(ColumnDescription = "联系电话", ColumnDataType = "nvarchar(50)", IsNullable = true)]
        public string Phone { get; set; }
        /// <summary>
        /// 公司简介
        /// </summary>
        [SugarColumn(ColumnDescription = "公司简介", ColumnDataType = "nvarchar(2000)", IsNullable = true)]
        public string Resume { get; set; }
        /// <summary>
        /// 充值余额
        /// </summary>
       [SugarColumn(ColumnDescription = "充值余额",  Length = 18,DecimalDigits =2 , IsNullable = true)]
        public decimal? ChongZhiYue { get; set; }
        /// <summary>
        /// 是否可以充值,工人提现
        /// </summary>
        [SugarColumn(ColumnDescription = "是否可以充值,工人提现", IsNullable = true)]
        public bool? IsTiXian { get; set; }
    }
}
cylsg/cylsg.Model/UserModel/UserWorker.cs
New file
@@ -0,0 +1,82 @@
using cylsg.Core;
using cylsg.Core.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.UserModel
{
    /// <summary>
    /// 用户工人
    /// </summary>
    [Description("用户工人")]
    [CoderFirst]
    public class  UserWorker : BaseModel
    {
        /// <summary>
        /// 用户工人Id
        /// </summary>
        [SugarColumn(ColumnDescription = "用户工人ID", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnDescription = "用户id")]
        public int UserId { get; set; }
        /// <summary>
        /// 身份证正面路径
        /// </summary>
        [SugarColumn(ColumnDescription = "身份证正面路径", ColumnDataType = "nvarchar(500)")]
        public string IdCardFace { get; set; }
        /// <summary>
        /// 身份证反面路径
        /// </summary>
        [SugarColumn(ColumnDescription = "身份证反面路径", ColumnDataType = "nvarchar(500)")]
        public string IdCardBack { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(ColumnDescription = "姓名", ColumnDataType = "nvarchar(100)", IsNullable = true)]
        public string name { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        [SugarColumn(ColumnDescription = "电话号码", ColumnDataType = "nvarchar(30)", IsNullable = true)]
        public string Phone { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [SugarColumn(ColumnDescription = "身份证号", ColumnDataType = "nvarchar(30)", IsNullable = true)]
        public string IdCode { get; set; }
        /// <summary>
        /// 联系地址
        /// </summary>
        [SugarColumn(ColumnDescription = "联系地址", ColumnDataType = "nvarchar(500)", IsNullable = true)]
        public string Address{ get; set; }
        /// <summary>
        /// 简历描述
        /// </summary>
        [SugarColumn(ColumnDescription = "简历描述", ColumnDataType = "nvarchar(2000)", IsNullable = true)]
        public string Resume { get; set; }
        /// <summary>
        /// 提现余额
        /// </summary>
        [SugarColumn(ColumnDescription = "提现余额", Length = 18, DecimalDigits = 2, IsNullable = true)]
        public decimal? TiXianYue { get; set; }
    }
}