修改创建下级子商户bug问题
This commit is contained in:
parent
c800ccb046
commit
581e5aa852
|
|
@ -321,8 +321,7 @@ namespace Waste.Application
|
|||
parentid = currentUser.BusinessId;
|
||||
var bcode = currentUser.BusinessCode;
|
||||
var len = bcode.Length;
|
||||
var maxcode = await dbClient.Queryable<W_Business>().Where(x => SqlFunc.StartsWith(x.Code, code) && SqlFunc.Length(x.Code) > len).MaxAsync(x => x.Code);
|
||||
var cnt = maxcode.Substring(maxcode.Length - 4).ToInt();
|
||||
int cnt = await dbClient.Queryable<W_Business>().Where(x => x.ParentId == parentid).CountAsync();
|
||||
code = GenCode(bcode, cnt);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue