2021-10-12 18:05:01 +08:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Yi.Framework.Interface;
|
|
|
|
|
|
using Yi.Framework.Model.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Service
|
|
|
|
|
|
{
|
2021-10-17 17:35:18 +08:00
|
|
|
|
public partial class MouldService:BaseService<mould>, IMouldService
|
2021-10-12 18:05:01 +08:00
|
|
|
|
{
|
2021-10-26 00:59:06 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 这个获取的是菜单,用的是菜单表,应该放到菜单service里面,像这种只用到id的,就传一个id就可以了
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="_mould"></param>
|
|
|
|
|
|
/// <returns></returns>
|
2021-10-12 18:05:01 +08:00
|
|
|
|
public async Task<menu> GetMenuByMould(mould _mould)
|
|
|
|
|
|
{
|
2021-10-26 00:59:06 +08:00
|
|
|
|
var menu_data = await _Db.Set<menu>().Include(u => u.mould).Where(u => u.mould == _mould && u.is_delete == (short)Common.Enum.DelFlagEnum.Normal).FirstOrDefaultAsync();
|
2021-10-13 23:08:42 +08:00
|
|
|
|
return menu_data;
|
2021-10-12 18:05:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|