增加信眾牌位範本及疏文
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user