增加信眾牌位範本及疏文

This commit is contained in:
2026-08-25 17:52:36 +08:00
parent a8d3990784
commit fa1ed1f827
14 changed files with 943 additions and 375 deletions
+25
View File
@@ -16,6 +16,31 @@ public class shuwensController: BaseApiController
// TODO: 在這裡新增建構函式邏輯
//
}
[HttpPost]
[Route("api/shuwens/GetActShuwen")]
public IHttpActionResult GetActShuwen([FromBody] Model.activity_shuwen temp)
{
var qry = _db.activity_shuwen.AsQueryable();
if (temp.act_num > 0)
{
qry = qry.Where(x => x.act_num == temp.act_num);
}
if (!string.IsNullOrEmpty(temp.shuwen_type))
{
qry = qry.Where(x => x.shuwen_type == temp.shuwen_type);
}
return Ok(new
{
result = "Y",
data = qry.Select(x => new
{
x.act_num,
x.shuwen_type,
x.shuwen_num,
x.contents
}).FirstOrDefault()
});
}
[HttpPost]
[Route("api/shuwens/GetShuwenTemplate")]