添加生成舒文异常处理
This commit is contained in:
@@ -74,9 +74,9 @@ public class ShuWenController : ApiController
|
|||||||
{
|
{
|
||||||
shuwen.ShuWenList = ProcessDesserts2(_db.pro_order_detail.Where(a => a.pro_order.activity_num == activitynum.Value).ToList());
|
shuwen.ShuWenList = ProcessDesserts2(_db.pro_order_detail.Where(a => a.pro_order.activity_num == activitynum.Value).ToList());
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
return BadRequest("生成舒文失败:" + ex.Message);
|
||||||
}
|
}
|
||||||
shuwen.IsGenerating = false;
|
shuwen.IsGenerating = false;
|
||||||
shuwen.UpdateTime = DateTime.Now;
|
shuwen.UpdateTime = DateTime.Now;
|
||||||
|
|||||||
Reference in New Issue
Block a user