using Xunit;
public class MyClass
{
public MyClass()
{
// Some logic to test
}
public int GetResult()
{
return 123;
}
}
public class MyClassFacts
{
[Fact]
public void Ctor()
{
var myClass = new MyClass();
Assert.NotNull(myClass);
// Any other asserts you require
}
// Nested classes to test each of MyClass' methods
public class GetResult
{
[Fact]
public void IsCorrect()
{
var myClass = new MyClass();
int result = myClass.GetResult();
Assert.Equal(123, result);
}
// Other tests for MyClass.GetResult()...
}
}
运算符不存在:字符变化= tra_dt LINE 1
a.exp_date =字符变化;
甚至尝试过now()函数还没有运气。 帮助我!这里a.exp_date是变化的角色;
答案 0 :(得分:1)
试试这个
SELECT distinct a.exp_date, a.indent_req_id,b.id,b.approval_status,b.date,c.department from tra_dt a
join tra_head b on b.id = a.indent_req_id
join mas_dep c on b.req_dpt_id = c.dept_id where b.approval_status = 'a' and exp_date >= '$now'"