回退
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"CorsAccessorSettings": {
|
||||
"PolicyName": "JNPFCorsAccessor",
|
||||
"WithOrigins": [ "http://192.168.10.12:9230", "http://192.168.10.18:9230","http://localhost:8080","http://localhost:9230" ],
|
||||
"WithOrigins": [ "http://192.168.10.12:9230", "http://localhost:8080" ],
|
||||
"WithExposedHeaders": [ "access-token", "x-access-token", "Content-Disposition" ]
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ public class PrintDevService : IDynamicApiController, ITransient
|
||||
{
|
||||
var list = await _repository.AsSugarClient().Queryable<PrintDevEntity, UserEntity, UserEntity, DictionaryDataEntity>((a, b, c, d) =>
|
||||
new JoinQueryInfos(JoinType.Left, b.Id == a.CreatorUserId, JoinType.Left, c.Id == a.LastModifyUserId, JoinType.Left, a.Category == d.EnCode))
|
||||
.Where((a, b, c, d) => a.DeleteMark == null ).WhereIF(input.category.IsNotEmptyOrNull(), a => a.Category == input.category)
|
||||
.Where((a, b, c, d) => a.DeleteMark == null && d.DictionaryTypeId == "202931027482510597").WhereIF(input.category.IsNotEmptyOrNull(), a => a.Category == input.category)
|
||||
.WhereIF(input.keyword.IsNotEmptyOrNull(), a => a.FullName.Contains(input.keyword) || a.EnCode.Contains(input.keyword))
|
||||
.OrderBy(a => a.SortCode).OrderBy(a => a.CreatorTime, OrderByType.Desc)
|
||||
.Select((a, b, c, d) => new PrintDevListOutput
|
||||
|
||||
Reference in New Issue
Block a user