更新MybatisPlusSaasConfig中的租户ID默认值为1002;在ShiroConfig中添加MES密炼物料管理和系统分类字典的免密接口;在MesMixerMaterialController中实现密炼物料信息的免密增删改查接口,并添加相应的事件广播功能;在SysCategoryController中新增分类字典的免密查询接口;更新前端导航和菜单数据以支持密炼物料信息模块。
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using YY.Admin.Core.Entity;
|
||||
|
||||
namespace YY.Admin.Core.Services;
|
||||
|
||||
public record MixerMaterialPageResult(List<MesMixerMaterial> Records, long Total, int Current, int Size);
|
||||
|
||||
public interface IMixerMaterialService
|
||||
{
|
||||
Task<MixerMaterialPageResult> PageAsync(
|
||||
int pageNo,
|
||||
int pageSize,
|
||||
string? materialCode = null,
|
||||
string? materialName = null,
|
||||
string? erpCode = null,
|
||||
string? majorCategoryId = null,
|
||||
string? minorCategoryId = null,
|
||||
CancellationToken ct = default);
|
||||
|
||||
Task<MesMixerMaterial?> GetByIdAsync(string id, CancellationToken ct = default);
|
||||
Task<bool> AddAsync(MesMixerMaterial material, CancellationToken ct = default);
|
||||
Task<bool> EditAsync(MesMixerMaterial material, CancellationToken ct = default);
|
||||
Task<bool> DeleteAsync(string id, CancellationToken ct = default);
|
||||
Task<bool> DeleteBatchAsync(string ids, CancellationToken ct = default);
|
||||
Task<List<KeyValuePair<string, string>>> GetMajorCategoryOptionsAsync(CancellationToken ct = default);
|
||||
Task<List<KeyValuePair<string, string>>> GetMinorCategoryOptionsAsync(string majorCategoryId, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user