You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
738 B
C#
28 lines
738 B
C#
using AUCMA.STORE.Common;
|
|
using AUCMA.STORE.Entity.DAO;
|
|
using AUCMA.STORE.SqlSugar.serviceImpl;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq.Expressions;
|
|
|
|
namespace AUCMA.STORE.UnitTest
|
|
{
|
|
[TestClass]
|
|
public class UnitTest4
|
|
{
|
|
[TestMethod]
|
|
public void TestMethod1()
|
|
{
|
|
test();
|
|
}
|
|
|
|
public async void test()
|
|
{
|
|
Expression<Func<RecordTask, bool>> exp = s1 => true;
|
|
exp = exp.And(x => x.taskCode == "2109110009" && x.taskStatus != Entity.Enums.TaskStatus.Achieve);
|
|
List<RecordTask> recordTasks = await new BaseServices<RecordTask>().Query(exp);
|
|
}
|
|
}
|
|
}
|