diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/BillingRecordSummaryQueryInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/BillingRecordSummaryQueryInput.cs
new file mode 100644
index 0000000..253cef3
--- /dev/null
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/BillingRecordSummaryQueryInput.cs
@@ -0,0 +1,31 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using NCC.Common.Filter;
+
+namespace NCC.Extend.Entitys.Dto.LqKdKdjlb
+{
+ ///
+ /// 开单记录汇总查询输入
+ ///
+ public class BillingRecordSummaryQueryInput : PageInputBase
+ {
+ ///
+ /// 门店ID
+ ///
+ [Required(ErrorMessage = "门店ID不能为空")]
+ [Display(Name = "门店ID", Description = "查询开单记录汇总的门店ID")]
+ public string StoreId { get; set; }
+
+ ///
+ /// 开始时间
+ ///
+ [Display(Name = "开始时间", Description = "查询开单记录的开始时间")]
+ public DateTime? StartTime { get; set; }
+
+ ///
+ /// 结束时间
+ ///
+ [Display(Name = "结束时间", Description = "查询开单记录的结束时间")]
+ public DateTime? EndTime { get; set; }
+ }
+}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbInfoOutput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbInfoOutput.cs
index 8fd8d40..498657a 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbInfoOutput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbInfoOutput.cs
@@ -163,6 +163,16 @@ namespace NCC.Extend.Entitys.Dto.LqKdKdjlb
public string cancelRefRemarks { get; set; }
///
+ /// 营销活动ID
+ ///
+ public string activityId { get; set; }
+
+ ///
+ /// 营销活动名称
+ ///
+ public string activityName { get; set; }
+
+ ///
/// 健康师业绩
///
public List lqKdJksyjList { get; set; }
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbListOutput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbListOutput.cs
index c876f90..1b40dfc 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbListOutput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbListOutput.cs
@@ -143,8 +143,16 @@ namespace NCC.Extend.Entitys.Dto.LqKdKdjlb
///
public string cancelRefRemarks { get; set; }
+ ///
+ /// 营销活动ID
+ ///
+ public string activityId { get; set; }
///
+ /// 营销活动名称
+ ///
+ public string activityName { get; set; }
+ ///
/// 补缴开单ID
///
public string supplementBillingId { get; set; }
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbUpdateAmountInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbUpdateAmountInput.cs
new file mode 100644
index 0000000..93ea226
--- /dev/null
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqKdKdjlb/LqKdKdjlbUpdateAmountInput.cs
@@ -0,0 +1,82 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+
+namespace NCC.Extend.Entitys.Dto.LqKdKdjlb
+{
+ ///
+ /// 修改开单金额输入
+ ///
+ public class LqKdKdjlbUpdateAmountInput
+ {
+ ///
+ /// 开单记录ID
+ ///
+ [Required(ErrorMessage = "开单记录ID不能为空")]
+ public string BillingId { get; set; }
+
+ ///
+ /// 整单业绩
+ ///
+ [Range(0, double.MaxValue, ErrorMessage = "整单业绩必须大于等于0")]
+ public decimal Zdyj { get; set; }
+
+ ///
+ /// 实付业绩
+ ///
+ [Range(0, double.MaxValue, ErrorMessage = "实付业绩必须大于等于0")]
+ public decimal Sfyj { get; set; }
+
+ ///
+ /// 储扣总金额
+ ///
+ [Range(0, double.MaxValue, ErrorMessage = "储扣总金额必须大于等于0")]
+ public decimal DeductAmount { get; set; }
+
+ ///
+ /// 欠款
+ ///
+ [Range(0, double.MaxValue, ErrorMessage = "欠款必须大于等于0")]
+ public decimal Qk { get; set; }
+
+ ///
+ /// 品项明细金额列表
+ ///
+ public List ItemDetails { get; set; } = new List();
+
+ ///
+ /// 修改备注
+ ///
+ public string Remark { get; set; }
+ }
+
+ ///
+ /// 品项明细金额更新
+ ///
+ public class LqKdPxmxAmountUpdate
+ {
+ ///
+ /// 品项明细ID
+ ///
+ [Required(ErrorMessage = "品项明细ID不能为空")]
+ public string ItemDetailId { get; set; }
+
+ ///
+ /// 品项价格
+ ///
+ [Range(0, double.MaxValue, ErrorMessage = "品项价格必须大于等于0")]
+ public decimal Pxjg { get; set; }
+
+ ///
+ /// 金额合计
+ ///
+ [Range(0, double.MaxValue, ErrorMessage = "金额合计必须大于等于0")]
+ public decimal TotalPrice { get; set; }
+
+ ///
+ /// 实付金额
+ ///
+ [Range(0, double.MaxValue, ErrorMessage = "实付金额必须大于等于0")]
+ public decimal ActualPrice { get; set; }
+ }
+}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListOutput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListOutput.cs
index dbd905b..faed5a2 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListOutput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListOutput.cs
@@ -12,54 +12,84 @@ namespace NCC.Extend.Entitys.Dto.LqPackageInfo
/// 营销活动ID
///
[Display(Name = "营销活动ID", Description = "营销活动的唯一标识")]
- public string Id { get; set; }
+ public string id { get; set; }
///
/// 活动名称
///
[Display(Name = "活动名称", Description = "营销活动的名称")]
- public string ActivityName { get; set; }
+ public string activityName { get; set; }
///
/// 活动描述
///
[Display(Name = "活动描述", Description = "营销活动的描述")]
- public string ActivityDesc { get; set; }
+ public string activityDesc { get; set; }
///
/// 活动开始时间
///
[Display(Name = "活动开始时间", Description = "营销活动的开始时间")]
- public DateTime StartTime { get; set; }
+ public DateTime startTime { get; set; }
///
/// 活动结束时间
///
[Display(Name = "活动结束时间", Description = "营销活动的结束时间")]
- public DateTime EndTime { get; set; }
+ public DateTime endTime { get; set; }
///
/// 至少购买品项数量
///
[Display(Name = "至少购买品项数量", Description = "参与活动需要购买的最少品项数量")]
- public int MinItemQuantity { get; set; }
+ public int minItemQuantity { get; set; }
///
/// 活动规则说明
///
[Display(Name = "活动规则说明", Description = "营销活动的规则说明")]
- public string ActivityRules { get; set; }
+ public string activityRules { get; set; }
///
/// 排序
///
[Display(Name = "排序", Description = "营销活动的显示排序")]
- public int SortOrder { get; set; }
+ public int sortOrder { get; set; }
///
/// 创建时间
///
[Display(Name = "创建时间", Description = "营销活动的创建时间")]
- public DateTime CreateTime { get; set; }
+ public DateTime createTime { get; set; }
+
+ ///
+ /// 是否有效
+ ///
+ [Display(Name = "是否有效", Description = "营销活动是否有效")]
+ public int isEffective { get; set; }
+
+ ///
+ /// 创建人
+ ///
+ [Display(Name = "创建人", Description = "营销活动的创建人")]
+ public string createUser { get; set; }
+
+ ///
+ /// 更新时间
+ ///
+ [Display(Name = "更新时间", Description = "营销活动的更新时间")]
+ public DateTime updateTime { get; set; }
+
+ ///
+ /// 更新人
+ ///
+ [Display(Name = "更新人", Description = "营销活动的更新人")]
+ public string updateUser { get; set; }
+
+ ///
+ /// 活动图片
+ ///
+ [Display(Name = "活动图片", Description = "营销活动的图片")]
+ public string activityImages { get; set; }
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListQueryInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListQueryInput.cs
index c9d74e5..0a1b977 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListQueryInput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqPackageInfo/LqPackageInfoListQueryInput.cs
@@ -62,5 +62,11 @@ namespace NCC.Extend.Entitys.Dto.LqPackageInfo
///
[Display(Name = "创建时间结束", Description = "创建时间范围结束")]
public DateTime? CreateTimeEnd { get; set; }
+
+ ///
+ /// 是否有效
+ ///
+ [Display(Name = "是否有效", Description = "营销活动是否有效")]
+ public int? IsEffective { get; set; }
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatisticsPersonalPerformance/LqStatisticsPersonalPerformanceListQueryInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatisticsPersonalPerformance/LqStatisticsPersonalPerformanceListQueryInput.cs
index f24e5ad..e02dcd0 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatisticsPersonalPerformance/LqStatisticsPersonalPerformanceListQueryInput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqStatisticsPersonalPerformance/LqStatisticsPersonalPerformanceListQueryInput.cs
@@ -19,6 +19,11 @@ namespace NCC.Extend.Entitys.Dto.LqStatisticsPersonalPerformance
public string StoreId { get; set; }
///
+ /// 门店名称
+ ///
+ public string StoreName { get; set; }
+
+ ///
/// 员工ID
///
public string EmployeeId { get; set; }
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlCrInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlCrInput.cs
index c0041db..9c0a8d9 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlCrInput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlCrInput.cs
@@ -58,15 +58,6 @@ namespace NCC.Extend.Entitys.Dto.LqXmzl
///
public string fl4 { get; set; }
- ///
- /// 统计类别
- ///
- public string tjlb { get; set; }
-
- ///
- /// 折扣类别
- ///
- public string zklb { get; set; }
///
/// 分类
@@ -83,25 +74,21 @@ namespace NCC.Extend.Entitys.Dto.LqXmzl
///
public string qt2 { get; set; }
- ///
- /// 溯源金额
- ///
- public decimal? syje { get; set; }
///
- /// Cell金额
+ /// 手工费
///
- public decimal? cellje { get; set; }
+ public decimal? sgf { get; set; }
///
- /// 手工费
+ /// 科美类型
///
- public decimal? sgf { get; set; }
+ public string beautyType { get; set; }
///
- /// 项目次数
+ /// 是否有效
///
- public int? projectNumber { get; set; }
+ public int isEffective { get; set; }
///
/// 来源类型
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlInfoOutput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlInfoOutput.cs
index 21612ed..32bc357 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlInfoOutput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlInfoOutput.cs
@@ -12,101 +12,88 @@ namespace NCC.Extend.Entitys.Dto.LqXmzl
/// 主键
///
public string id { get; set; }
-
+
///
/// 项目编号
///
public string xmbh { get; set; }
-
+
///
/// 项目名称
///
public string xmmc { get; set; }
-
+
///
/// 标准价格
///
public decimal bzjg { get; set; }
-
+
///
/// 项目时长(分钟)
///
public int? xmsc { get; set; }
-
+
///
/// 基础服务提成
///
public decimal jcfwtc { get; set; }
-
+
///
/// 分类①-汇总表
///
public string fl1 { get; set; }
-
+
///
/// 分类②-汇总表
///
public string fl2 { get; set; }
-
+
///
/// 分类③-工资用
///
public string fl3 { get; set; }
-
+
///
/// 分类④-统计品项用
///
public string fl4 { get; set; }
-
- ///
- /// 统计类别
- ///
- public string tjlb { get; set; }
-
- ///
- /// 折扣类别
- ///
- public string zklb { get; set; }
-
+
+
///
/// 分类
///
public string fl { get; set; }
-
+
///
/// 其它1
///
public string qt1 { get; set; }
-
+
///
/// 其它2
///
public string qt2 { get; set; }
-
- ///
- /// 溯源金额
- ///
- public decimal? syje { get; set; }
-
- ///
- /// Cell金额
- ///
- public decimal? cellje { get; set; }
-
+
+
///
/// 手工费
///
public decimal? sgf { get; set; }
///
- /// 项目次数
+ /// 科美类型
///
- public int? projectNumber { get; set; }
-
+ public string beautyType { get; set; }
+
+ ///
+ /// 是否有效
+ ///
+ public int isEffective { get; set; }
+
///
/// 来源类型
///
public string sourceType { get; set; }
-
+
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListOutput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListOutput.cs
index ec281ca..f463317 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListOutput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListOutput.cs
@@ -57,15 +57,6 @@ namespace NCC.Extend.Entitys.Dto.LqXmzl
///
public string fl4 { get; set; }
- ///
- /// 统计类别
- ///
- public string tjlb { get; set; }
-
- ///
- /// 折扣类别
- ///
- public string zklb { get; set; }
///
/// 分类
@@ -82,25 +73,21 @@ namespace NCC.Extend.Entitys.Dto.LqXmzl
///
public string qt2 { get; set; }
- ///
- /// 溯源金额
- ///
- public decimal? syje { get; set; }
///
- /// Cell金额
+ /// 手工费
///
- public decimal? cellje { get; set; }
+ public decimal? sgf { get; set; }
///
- /// 手工费
+ /// 科美类型
///
- public decimal? sgf { get; set; }
+ public string beautyType { get; set; }
///
- /// 项目次数
+ /// 是否有效
///
- public int? projectNumber { get; set; }
+ public int isEffective { get; set; }
///
/// 来源类型
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListQueryInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListQueryInput.cs
index 10e434d..4620ec2 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListQueryInput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlListQueryInput.cs
@@ -23,91 +23,106 @@ namespace NCC.Extend.Entitys.Dto.LqXmzl
/// 主键
///
public string id { get; set; }
-
+
///
/// 项目编号
///
public string xmbh { get; set; }
-
+
///
/// 项目名称
///
public string xmmc { get; set; }
-
+
///
/// 标准价格
///
public string bzjg { get; set; }
-
+
///
/// 项目时长(分钟)
///
public string xmsc { get; set; }
-
+
///
/// 基础服务提成
///
public string jcfwtc { get; set; }
-
+
///
/// 分类①-汇总表
///
public string fl1 { get; set; }
-
+
///
/// 分类②-汇总表
///
public string fl2 { get; set; }
-
+
///
/// 分类③-工资用
///
public string fl3 { get; set; }
-
+
///
/// 分类④-统计品项用
///
public string fl4 { get; set; }
-
+
///
/// 统计类别
///
public string tjlb { get; set; }
-
+
///
/// 折扣类别
///
public string zklb { get; set; }
-
+
///
/// 分类
///
public string fl { get; set; }
-
+
///
/// 其它1
///
public string qt1 { get; set; }
-
+
///
/// 其它2
///
public string qt2 { get; set; }
-
+
///
/// 溯源金额
///
public string syje { get; set; }
-
+
///
/// Cell金额
///
public string cellje { get; set; }
-
+
///
/// 手工费
///
public string sgf { get; set; }
-
+
+ ///
+ /// 科美类型
+ ///
+ public string beautyType { get; set; }
+
+ ///
+ /// 是否有效
+ ///
+ public int isEffective { get; set; } = 0;
+
+ ///
+ /// 来源类型
+ ///
+ public string sourceType { get; set; }
+
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlUpInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlUpInput.cs
index ec504bb..71291ec 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlUpInput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqXmzl/LqXmzlUpInput.cs
@@ -12,6 +12,6 @@ namespace NCC.Extend.Entitys.Dto.LqXmzl
/// 主键
///
public string id { get; set; }
-
+
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqYyjl/LqYyjlCrInput.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqYyjl/LqYyjlCrInput.cs
index f31fccf..b060522 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqYyjl/LqYyjlCrInput.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Dto/LqYyjl/LqYyjlCrInput.cs
@@ -12,66 +12,66 @@ namespace NCC.Extend.Entitys.Dto.LqYyjl
/// 预约编号
///
public string id { get; set; }
-
+
///
/// 单据门店
///
public string djmd { get; set; }
-
+
///
/// 邀约人
///
public string yyr { get; set; }
-
+
///
/// 顾客类型
///
public string gklx { get; set; }
-
+
///
/// 预约体验项目
///
public string yytyxm { get; set; }
-
+
///
/// 操作人
///
public string czr { get; set; }
-
+
///
/// 操作时间
///
public DateTime? czsj { get; set; }
-
+
///
/// 顾客
///
public string gk { get; set; }
-
+
///
/// 顾客姓名
///
public string gkxm { get; set; }
-
+
///
/// 预约健康师
///
public string yyjks { get; set; }
-
+
///
/// 预约开始时间
///
public DateTime? yysj { get; set; }
-
+
///
/// 预约结束时间
///
public DateTime? yyjs { get; set; }
-
+
///
/// 预约状态
///
public string F_Status { get; set; }
-
+
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_tkjlb/LqTkjlbEntity.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_tkjlb/LqTkjlbEntity.cs
index 76f24c6..b63cfe9 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_tkjlb/LqTkjlbEntity.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_tkjlb/LqTkjlbEntity.cs
@@ -95,5 +95,11 @@ namespace NCC.Extend.Entitys.lq_tkjlb
[SugarColumn(ColumnName = "F_CreateTime")]
public DateTime CreateTime { get; set; } = DateTime.Now;
+ ///
+ /// 会员id
+ ///
+ [SugarColumn(ColumnName = "F_MemberId")]
+ public string MemberId { get; set; }
+
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_xmzl/LqXmzlEntity.cs b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_xmzl/LqXmzlEntity.cs
index 378d958..b19156e 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_xmzl/LqXmzlEntity.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend.Entitys/Entity/lq_xmzl/LqXmzlEntity.cs
@@ -16,119 +16,103 @@ namespace NCC.Extend.Entitys.lq_xmzl
///
[SugarColumn(ColumnName = "F_Id", IsPrimaryKey = true)]
public string Id { get; set; }
-
+
///
/// 项目编号
///
- [SugarColumn(ColumnName = "xmbh")]
+ [SugarColumn(ColumnName = "xmbh")]
public string Xmbh { get; set; }
-
+
///
/// 项目名称
///
- [SugarColumn(ColumnName = "xmmc")]
+ [SugarColumn(ColumnName = "xmmc")]
public string Xmmc { get; set; }
-
+
///
/// 标准价格
///
- [SugarColumn(ColumnName = "bzjg")]
+ [SugarColumn(ColumnName = "bzjg")]
public decimal Bzjg { get; set; }
-
+
///
/// 项目时长(分钟)
///
- [SugarColumn(ColumnName = "xmsc")]
+ [SugarColumn(ColumnName = "xmsc")]
public int? Xmsc { get; set; }
-
+
///
/// 基础服务提成
///
- [SugarColumn(ColumnName = "jcfwtc")]
+ [SugarColumn(ColumnName = "jcfwtc")]
public decimal Jcfwtc { get; set; }
-
+
///
/// 分类①-汇总表
///
- [SugarColumn(ColumnName = "fl1")]
+ [SugarColumn(ColumnName = "fl1")]
public string Fl1 { get; set; }
-
+
///
/// 分类②-汇总表
///
- [SugarColumn(ColumnName = "fl2")]
+ [SugarColumn(ColumnName = "fl2")]
public string Fl2 { get; set; }
-
+
///
/// 分类③-工资用
///
- [SugarColumn(ColumnName = "fl3")]
+ [SugarColumn(ColumnName = "fl3")]
public string Fl3 { get; set; }
-
+
///
/// 分类④-统计品项用
///
- [SugarColumn(ColumnName = "fl4")]
+ [SugarColumn(ColumnName = "fl4")]
public string Fl4 { get; set; }
-
- ///
- /// 统计类别
- ///
- [SugarColumn(ColumnName = "tjlb")]
- public string Tjlb { get; set; }
-
- ///
- /// 折扣类别
- ///
- [SugarColumn(ColumnName = "zklb")]
- public string Zklb { get; set; }
-
+
+
///
/// 分类
///
- [SugarColumn(ColumnName = "fl")]
+ [SugarColumn(ColumnName = "fl")]
public string Fl { get; set; }
-
+
///
/// 其它1
///
- [SugarColumn(ColumnName = "qt1")]
+ [SugarColumn(ColumnName = "qt1")]
public string Qt1 { get; set; }
-
+
///
/// 其它2
///
- [SugarColumn(ColumnName = "qt2")]
+ [SugarColumn(ColumnName = "qt2")]
public string Qt2 { get; set; }
-
- ///
- /// 溯源金额
- ///
- [SugarColumn(ColumnName = "syje")]
- public decimal? Syje { get; set; }
-
- ///
- /// Cell金额
- ///
- [SugarColumn(ColumnName = "cellje")]
- public decimal? Cellje { get; set; }
-
+
+
///
/// 手工费
///
- [SugarColumn(ColumnName = "sgf")]
+ [SugarColumn(ColumnName = "sgf")]
public decimal? Sgf { get; set; }
///
- /// 项目次数
+ /// 科美类型
+ ///
+ [SugarColumn(ColumnName = "F_BeautyType")]
+ public string BeautyType { get; set; }
+
+ ///
+ /// 是否有效
///
- [SugarColumn(ColumnName = "F_ProjectNumber")]
- public int? ProjectNumber { get; set; }
+ [SugarColumn(ColumnName = "F_IsEffective")]
+ public int IsEffective { get; set; }
///
/// 来源类型
///
- [SugarColumn(ColumnName = "F_SourceType")]
+ [SugarColumn(ColumnName = "F_SourceType")]
public string SourceType { get; set; }
}
}
\ No newline at end of file
diff --git a/netcore/src/Modularity/Extend/NCC.Extend/LqAttendanceSummaryService.cs b/netcore/src/Modularity/Extend/NCC.Extend/LqAttendanceSummaryService.cs
index 8c56b8d..26fac40 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend/LqAttendanceSummaryService.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend/LqAttendanceSummaryService.cs
@@ -325,6 +325,7 @@ namespace NCC.Extend
.WhereIF(input.Year.HasValue, a => a.Year == input.Year)
.WhereIF(input.Month.HasValue, a => a.Month == input.Month)
.WhereIF(input.EmployeeStatus.HasValue, a => a.EmployeeStatus == input.EmployeeStatus)
+
.Select(a => new LqAttendanceSummaryListOutput
{
id = a.Id,
@@ -353,7 +354,26 @@ namespace NCC.Extend
#endregion
#region 清空某一个月的数据
-
+ ///
+ /// 清空某一个月的数据
+ ///
+ /// 年份
+ /// 月份
+ ///
+ [HttpDelete("DeleteByMonth/{year}/{month}")]
+ public async Task DeleteByMonth(string year, string month)
+ {
+ int yearInt = int.Parse(year);
+ int monthInt = int.Parse(month);
+ await _db.Deleteable().Where(p => p.Year == yearInt && p.Month == monthInt).ExecuteCommandAsync();
+ return new
+ {
+ success = true,
+ message = "清空成功"
+ };
+ }
#endregion
+
+
}
}
diff --git a/netcore/src/Modularity/Extend/NCC.Extend/LqKdKdjlbService.cs b/netcore/src/Modularity/Extend/NCC.Extend/LqKdKdjlbService.cs
index 12b2625..9504739 100644
--- a/netcore/src/Modularity/Extend/NCC.Extend/LqKdKdjlbService.cs
+++ b/netcore/src/Modularity/Extend/NCC.Extend/LqKdKdjlbService.cs
@@ -39,6 +39,7 @@ using NCC.JsonSerialization;
using NCC.System.Entitys.Permission;
using SqlSugar;
using Yitter.IdGenerator;
+using NCC.Extend.Entitys.lq_package_info;
namespace NCC.Extend.LqKdKdjlb
{
@@ -117,6 +118,10 @@ namespace NCC.Extend.LqKdKdjlb
var MemberInfo = await _db.Queryable().FirstAsync(p => p.Id == entity.Kdhy);
output.kdhyc = MemberInfo.Khmc;
output.kdhysjh = MemberInfo.Sjh;
+ if (!string.IsNullOrEmpty(entity.ActivityId))
+ {
+ output.activityName = await _db.Queryable().Where(x => x.Id == entity.ActivityId).Select(x => x.ActivityName).FirstAsync();
+ }
// 2. 查询品项明细列表
var lqKdPxmxList = await _db.Queryable().Where(w => w.Glkdbh == entity.Id).ToListAsync();
@@ -251,6 +256,8 @@ namespace NCC.Extend.LqKdKdjlb
isEffective = it.IsEffective,
createUser = it.CreateUser,
createUserName = SqlFunc.Subqueryable().Where(x => x.Id == it.CreateUser).Select(x => x.RealName),
+ activityId = it.ActivityId,
+ activityName = SqlFunc.Subqueryable().Where(x => x.Id == it.ActivityId).Select(x => x.ActivityName),
})
.MergeTable()
.OrderBy(sidx + " " + input.sort)
@@ -1381,11 +1388,11 @@ namespace NCC.Extend.LqKdKdjlb
//关闭事务
_db.CommitTran();
}
- catch (Exception)
+ catch (Exception ex)
{
//回滚事务
_db.RollbackTran();
- throw NCCException.Oh(ErrorCode.COM1001);
+ throw NCCException.Oh($"创建开单记录失败: {ex.Message}");
}
}
#endregion
@@ -1896,6 +1903,356 @@ namespace NCC.Extend.LqKdKdjlb
}
#endregion
+ #region 修改开单金额
+ ///
+ /// 修改开单金额
+ ///
+ /// 修改开单金额输入
+ /// 修改结果
+ ///
+ /// 修改开单记录表的金额以及品项明细表里面的金额
+ ///
+ /// 示例请求:
+ /// ```json
+ /// {
+ /// "billingId": "123456789",
+ /// "zdyj": 1000.00,
+ /// "sfyj": 800.00,
+ /// "deductAmount": 200.00,
+ /// "qk": 0.00,
+ /// "itemDetails": [
+ /// {
+ /// "itemDetailId": "item001",
+ /// "pxjg": 500.00,
+ /// "totalPrice": 500.00,
+ /// "actualPrice": 400.00
+ /// }
+ /// ],
+ /// "remark": "金额调整"
+ /// }
+ /// ```
+ ///
+ /// 参数说明:
+ /// - billingId: 开单记录ID(必填)
+ /// - zdyj: 整单业绩
+ /// - sfyj: 实付业绩
+ /// - deductAmount: 储扣总金额
+ /// - qk: 欠款
+ /// - itemDetails: 品项明细金额列表
+ /// - remark: 修改备注
+ ///
+ /// 成功修改开单金额
+ /// 请求参数错误
+ /// 开单记录不存在
+ /// 服务器内部错误
+ [HttpPut("UpdateBillingAmount")]
+ public async Task UpdateBillingAmount(LqKdKdjlbUpdateAmountInput input)
+ {
+ try
+ {
+ // 验证输入参数
+ if (string.IsNullOrEmpty(input.BillingId))
+ {
+ throw NCCException.Oh("开单记录ID不能为空");
+ }
+ // 检查开单记录是否存在且有效
+ var billingEntity = await _db.Queryable().Where(w => w.Id == input.BillingId && w.IsEffective == StatusEnum.有效.GetHashCode()).FirstAsync();
+ if (billingEntity == null)
+ {
+ throw NCCException.Oh("开单记录不存在或已作废");
+ }
+ // 验证品项明细
+ if (input.ItemDetails != null && input.ItemDetails.Any())
+ {
+ var itemDetailIds = input.ItemDetails.Select(x => x.ItemDetailId).ToList();
+ var existingItems = await _db.Queryable().Where(w => w.Glkdbh == input.BillingId && itemDetailIds.Contains(w.Id)).ToListAsync();
+ if (existingItems.Count != input.ItemDetails.Count)
+ {
+ throw NCCException.Oh("部分品项明细不存在或不属于该开单记录");
+ }
+ }
+ // 开始事务
+ _db.BeginTran();
+ try
+ {
+ // 更新开单记录金额
+ var updateResult = await _db.Updateable().SetColumns(it => new LqKdKdjlbEntity
+ {
+ Zdyj = input.Zdyj,
+ Sfyj = input.Sfyj,
+ DeductAmount = input.DeductAmount,
+ Qk = input.Qk,
+ UpdateTime = DateTime.Now
+ }).Where(w => w.Id == input.BillingId).ExecuteCommandAsync();
+
+ if (updateResult <= 0)
+ {
+ throw NCCException.Oh("更新开单记录金额失败");
+ }
+
+ // 更新品项明细金额
+ if (input.ItemDetails != null && input.ItemDetails.Any())
+ {
+ foreach (var itemDetail in input.ItemDetails)
+ {
+ var itemUpdateResult = await _db.Updateable().SetColumns(it => new LqKdPxmxEntity
+ {
+ Pxjg = itemDetail.Pxjg,
+ TotalPrice = itemDetail.TotalPrice,
+ ActualPrice = itemDetail.ActualPrice
+ }).Where(w => w.Id == itemDetail.ItemDetailId && w.Glkdbh == input.BillingId).ExecuteCommandAsync();
+
+ if (itemUpdateResult <= 0)
+ {
+ throw NCCException.Oh($"更新品项明细金额失败,品项ID: {itemDetail.ItemDetailId}");
+ }
+ }
+ }
+ // 提交事务
+ _db.CommitTran();
+ return "修改开单金额成功";
+ }
+ catch (Exception ex)
+ {
+ // 回滚事务
+ _db.RollbackTran();
+ throw NCCException.Oh($"修改开单金额失败: {ex.Message}");
+ }
+ }
+ catch (Exception ex)
+ {
+ throw NCCException.Oh($"修改开单金额时发生错误: {ex.Message}");
+ }
+ }
+ #endregion
+
+ #region 获取门店某个时间段的开单记录汇总信息
+ ///
+ /// 获取门店某个时间段的开单记录汇总信息
+ ///
+ /// 查询参数
+ /// 开单记录汇总信息
+ [HttpGet("GetBillingRecordSummaryByStoreId")]
+ public async Task GetBillingRecordSummaryByStoreId([FromQuery] BillingRecordSummaryQueryInput input)
+ {
+ try
+ {
+ // 验证参数
+ if (string.IsNullOrEmpty(input.StoreId))
+ {
+ throw NCCException.Oh("门店ID不能为空");
+ }
+
+ // 如果开始时间和结束时间为空,就默认是当月
+ if (input.StartTime == null || input.EndTime == null)
+ {
+ input.StartTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
+ input.EndTime = DateTime.Now.AddDays(DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month));
+ }
+
+ // 查询开单记录
+ var billingRecords = await _db.Queryable()
+ .Where(w => w.Djmd == input.StoreId
+ && w.Kdrq >= input.StartTime
+ && w.Kdrq <= input.EndTime
+ && w.IsEffective == StatusEnum.有效.GetHashCode())
+ .Select(it => new
+ {
+ id = it.Id,
+ djmd = it.Djmd,
+ jsj = it.Jsj,
+ kdrq = it.Kdrq,
+ gjlx = it.Gjlx,
+ zdyj = it.Zdyj,
+ sfyj = it.Sfyj,
+ qk = it.Qk,
+ kdhyc = it.Kdhyc,
+ kdhysjh = it.Kdhysjh,
+ fkfs = it.Fkfs, // 付款方式
+ khly = it.Khly, // 客户来源
+ bz = it.Bz, // 备注
+ createTime = it.CreateTime
+ })
+ .ToListAsync();
+
+ if (!billingRecords.Any())
+ {
+ return new
+ {
+ success = true,
+ data = new
+ {
+ billingSummary = new
+ {
+ totalCount = 0,
+ totalAmount = 0,
+ totalPaidAmount = 0,
+ totalDebt = 0,
+ billingRecords = new List