4 changed files with 135 additions and 7 deletions
@ -0,0 +1,29 @@ |
|||||
|
using BBWY.Server.Business.Sync; |
||||
|
using Microsoft.AspNetCore.Http; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using System; |
||||
|
|
||||
|
namespace BBWY.Server.API.Controllers |
||||
|
{ |
||||
|
|
||||
|
public class JDPopularizeSyncController : BaseApiController |
||||
|
{ |
||||
|
private JDPopularizeSyncBusiness jdPopularizeSyncBusiness; |
||||
|
public JDPopularizeSyncController(IHttpContextAccessor httpContextAccessor, JDPopularizeSyncBusiness jdPopularizeSyncBusiness) : base(httpContextAccessor) |
||||
|
{ |
||||
|
this.jdPopularizeSyncBusiness = jdPopularizeSyncBusiness; |
||||
|
} |
||||
|
|
||||
|
[HttpGet] |
||||
|
public void SyncAllShopPopularizeRecord() |
||||
|
{ |
||||
|
jdPopularizeSyncBusiness.SyncAllShopPopularizeRecord(); |
||||
|
} |
||||
|
|
||||
|
[HttpGet] |
||||
|
public void SyncShopPopularizeRecordByDate(long? shopId, DateTime startDate, DateTime endDate) |
||||
|
{ |
||||
|
jdPopularizeSyncBusiness.SyncShopPopularizeRecordByDate(shopId, startDate, endDate); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
using System; |
||||
|
|
||||
|
namespace BBWY.Server.Model.Db |
||||
|
{ |
||||
|
|
||||
|
[Table(Name = "shoppopularize", DisableSyncStructure = true)] |
||||
|
public partial class Shoppopularize { |
||||
|
|
||||
|
[Column(IsPrimary = true)] |
||||
|
public long Id { get; set; } |
||||
|
|
||||
|
[Column(DbType = "decimal(18,2)")] |
||||
|
public decimal Cost { get; set; } = 0.0M; |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? Date { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string ItemName { get; set; } |
||||
|
|
||||
|
public long? ShopId { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue