mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:53:25 +08:00
【优化】移除后台提货单的删除功能,防止删除后导致无法提货的问题。
This commit is contained in:
@@ -327,25 +327,25 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Description("单选删除")]
|
||||
public async Task<AdminUiCallBack> DoDelete([FromBody] FMIntId entity)
|
||||
{
|
||||
var jm = new AdminUiCallBack();
|
||||
//[HttpPost]
|
||||
//[Description("单选删除")]
|
||||
//public async Task<AdminUiCallBack> DoDelete([FromBody] FMIntId entity)
|
||||
//{
|
||||
// var jm = new AdminUiCallBack();
|
||||
|
||||
var model = await _coreCmsBillLadingServices.QueryByIdAsync(entity.id);
|
||||
if (model == null)
|
||||
{
|
||||
jm.msg = GlobalConstVars.DataisNo;
|
||||
return jm;
|
||||
}
|
||||
// var model = await _coreCmsBillLadingServices.QueryByIdAsync(entity.id);
|
||||
// if (model == null)
|
||||
// {
|
||||
// jm.msg = GlobalConstVars.DataisNo;
|
||||
// return jm;
|
||||
// }
|
||||
|
||||
var bl = await _coreCmsBillLadingServices.DeleteByIdAsync(entity.id);
|
||||
jm.code = bl ? 0 : 1;
|
||||
jm.msg = bl ? GlobalConstVars.DeleteSuccess : GlobalConstVars.DeleteFailure;
|
||||
return jm;
|
||||
// var bl = await _coreCmsBillLadingServices.DeleteByIdAsync(entity.id);
|
||||
// jm.code = bl ? 0 : 1;
|
||||
// jm.msg = bl ? GlobalConstVars.DeleteSuccess : GlobalConstVars.DeleteFailure;
|
||||
// return jm;
|
||||
|
||||
}
|
||||
//}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user