| | |
| | | ***********************************************************************/ |
| | | |
| | | using System; |
| | | using System.ComponentModel; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using Chuanyin.Attribute; |
| | | using SqlSugar; |
| | | |
| | | namespace CoreCms.Net.Model.Entities |
| | |
| | | /// <summary> |
| | | /// 商品表 |
| | | /// </summary> |
| | | [SqlCodeFirst] |
| | | public partial class CoreCmsGoods |
| | | { |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "区域代码")] |
| | | public string areaCode { get; set; } |
| | | /// <summary> |
| | | /// 发布者cmsUserID |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "发布者cmsUserID",IsNullable =true)] |
| | | public int? publisherId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 审核者员工SYSUserID" |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "审核者员工SYSUserID", IsNullable = true)] |
| | | public int? approverId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 审核状态 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "审核状态", IsNullable = true)] |
| | | public AuditStatusTypoe? auditStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 审核时间 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "审核时间", IsNullable = true)] |
| | | public DateTime? auditTime { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 审核状态枚举,用于表示不同业务流程中的审核状态。 |
| | | /// </summary> |
| | | public enum AuditStatusTypoe |
| | | { |
| | | /// <summary> |
| | | /// 待审核状态,表示审核尚未开始。 |
| | | /// </summary> |
| | | Pending = 0, |
| | | |
| | | /// <summary> |
| | | /// 已批准状态,表示审核已通过。 |
| | | /// </summary> |
| | | Approved = 1, |
| | | |
| | | /// <summary> |
| | | /// 已拒绝状态,表示审核未通过。 |
| | | /// </summary> |
| | | Rejected = 2, |
| | | |
| | | /// <summary> |
| | | /// 审核进行中状态,表示审核正在处理中。 |
| | | /// </summary> |
| | | InProgress = 3, |
| | | |
| | | /// <summary> |
| | | /// 已取消状态,表示审核已被取消。 |
| | | /// </summary> |
| | | Cancelled = 4 |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// 货品表 |
| | | /// </summary> |
| | | |
| | | public partial class CoreCmsProducts |
| | | { |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [Display(Name = "货品市场价")] |
| | | |
| | | [Required(ErrorMessage = "请输入{0}")] |
| | | |
| | | |
| | | |
| | | [Required(ErrorMessage = "请输入{0}")] |
| | | public System.Decimal mktprice { get; set; } |
| | | |
| | | |
| | |
| | | [SugarColumn(IsIgnore = true)] |
| | | public System.Int32 nums { get; set; } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// 订单表 |
| | | /// </summary> |
| | | |
| | | [SqlCodeFirst] |
| | | public partial class CoreCmsOrder |
| | | { |
| | | /// <summary> |
| | |
| | | |
| | | public System.String planorderId { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 发布者cmsUserID |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "发布者cmsUserID", IsNullable = true)] |
| | | public int? publisherId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 原订单ID |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "原订单ID", IsNullable = true)] |
| | | public string oldOderId { get; set; } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | /// 供应商发货配发记录 |
| | | /// </summary> |
| | | [SugarTable(TableDescription = "供应商发货配发记录")] |
| | | [SqlCodeFirst] |
| | | |
| | | public partial class DistributionSendOder: BFBaseModel |
| | | { |
| | | |
| | |
| | | /// <summary> |
| | | /// 铺货 |
| | | /// </summary> |
| | | [SqlCodeFirst] |
| | | |
| | | public class Puhuo : BFBaseModel |
| | | { |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// 铺货 |
| | | /// </summary> |
| | | [SqlCodeFirst] |
| | | |
| | | public class PuhuoShoukuan : BFBaseModel |
| | | { |
| | | |
| | |
| | | }, |
| | | "CoreCms.Net.Web.Admin": { |
| | | "commandName": "Project", |
| | | "launchBrowser": false, |
| | | "launchBrowser": true, |
| | | "environmentVariables": { |
| | | "ASPNETCORE_ENVIRONMENT": "Development" |
| | | }, |
| | |
| | | iData.storeCoordinate =entity.storeCoordinate; |
| | | iData.schoolName = entity.schoolName; |
| | | iData.idCradNumber = entity.idCradNumber; |
| | | |
| | | jm = await _distributionServices.AddData(iData, _user.ID); |
| | | |
| | | return jm; |
New file |
| | |
| | | using CoreCms.Net.Model.Entities.baifenbingfa.jon; |
| | | using CoreCms.Net.Model.ViewModels.UI; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Swashbuckle.AspNetCore.Annotations; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace CoreCms.Net.Web.WebApi.Controllers.baifenbingfa |
| | | { |
| | | /// <summary> |
| | | /// 经销商创建商品接口 |
| | | /// </summary> |
| | | [Route("api/[controller]/[action]")] |
| | | [ApiController] |
| | | [Authorize] |
| | | public class DistributorGoodsController : ControllerBase |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetGoodslist")] |
| | | [SwaggerResponse(200, "返回数据", typeof(WebApiCallBack))] |
| | | [SwaggerResponse(201, "Data类型", typeof(Job_jobSeting))] |
| | | public async Task<WebApiCallBack> GetGoodslist() |
| | | { |
| | | var jm = new WebApiCallBack(); |
| | | |
| | | |
| | | jm.status = true; |
| | | return jm; |
| | | |
| | | } |
| | | } |
| | | } |