1. 新增法會活動品項:牌位陽上與超度人數限制功能
2. 信眾資料新增全年性選項以及開始參加活動日期,自動報名並代入前一次的報名資料(品項)
This commit is contained in:
@@ -10,6 +10,7 @@ using System.Collections;
|
||||
using DocumentFormat.OpenXml.Office2010.Excel;
|
||||
using MyWeb;
|
||||
using System.Data.Entity;
|
||||
using System.Diagnostics;
|
||||
|
||||
// api/Follower
|
||||
//[ezAuthorize(Roles = "admin")]//群組:*
|
||||
@@ -672,6 +673,31 @@ public class FollowerController : ApiController
|
||||
return Ok(data);
|
||||
}
|
||||
[HttpPost]
|
||||
[Route("api/follower/pending_orders")]
|
||||
public IHttpActionResult GetPendingOrders(int id, string targetDate)
|
||||
{
|
||||
|
||||
DateTime today = DateTime.Today;
|
||||
if (!DateTime.TryParse(targetDate, out DateTime limitDate))
|
||||
{
|
||||
limitDate = new DateTime(2099, 12, 31);
|
||||
}
|
||||
var orderrecord = _db.pro_order
|
||||
.Where(x => x.f_num == id && x.activity.startDate_solar >= today && x.activity.startDate_solar < limitDate)
|
||||
.Include(x => x.activity)
|
||||
.ToList();
|
||||
var data = new
|
||||
{
|
||||
list = orderrecord.Select(x => new
|
||||
{
|
||||
orderno = x.order_no,
|
||||
activitydate = x.activity.startDate_solar.Value.ToString("yyyy/MM/dd"),
|
||||
activityname = x.activity.subject,
|
||||
})
|
||||
};
|
||||
return Ok(data);
|
||||
}
|
||||
[HttpPost]
|
||||
[Route("api/follower/totalorderamount")]
|
||||
public IHttpActionResult GetTotalOrderCount(int id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user