|
|
|
@ -52,7 +52,7 @@ namespace Myshipping.Application
|
|
|
|
|
public async Task<dynamic> Page([FromQuery] QueryBookingGoodsStatusConfigInput input)
|
|
|
|
|
{
|
|
|
|
|
//初次使用没有数据,进行初始化
|
|
|
|
|
InitGoodsStatusConfig(UserManager.UserId);
|
|
|
|
|
InitGoodsStatusConfig(UserManager.UserId,UserManager.Name);
|
|
|
|
|
|
|
|
|
|
var entities = await _rep.AsQueryable()
|
|
|
|
|
.Where(m => m.CreatedUserId == UserManager.UserId)
|
|
|
|
@ -127,7 +127,7 @@ namespace Myshipping.Application
|
|
|
|
|
/// 初始化当前用户的货物状态配置
|
|
|
|
|
/// </summary>
|
|
|
|
|
[NonAction]
|
|
|
|
|
public async void InitGoodsStatusConfig(long userid)
|
|
|
|
|
public async void InitGoodsStatusConfig(long userid,string username)
|
|
|
|
|
{
|
|
|
|
|
if (_rep.AsQueryable().Count(x => x.CreatedUserId == userid) == 0)
|
|
|
|
|
{
|
|
|
|
@ -139,7 +139,11 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
StatusName = itm.Value,
|
|
|
|
|
Sort = itm.Sort,
|
|
|
|
|
SystemCode = itm.Code
|
|
|
|
|
SystemCode = itm.Code,
|
|
|
|
|
CreatedUserId=userid,
|
|
|
|
|
TenantId=UserManager.TENANT_ID,
|
|
|
|
|
CreatedUserName= username,
|
|
|
|
|
CreatedTime=DateTime.Now
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|