Commit d75637ad authored by liudong1993's avatar liudong1993

1

parent bc4ef199
......@@ -76,7 +76,7 @@ namespace Edu.Repository.Sell
/// <returns></returns>
public bool ExsitModelByMonth(int groupId,string month,int type)
{
var sql = "select Count(0) from RB_ReturnMoney_Batch where GroupId=@gid and DATE_FORMAT(a.CreateDate,'%Y-%m')=@month and a.CommissionType=@type";
var sql = "select Count(0) from RB_ReturnMoney_Batch a where a.GroupId=@gid and DATE_FORMAT(a.CreateDate,'%Y-%m')=@month and a.CommissionType=@type";
DynamicParameters parameters = new DynamicParameters();
parameters.Add("gid", groupId);
parameters.Add("month", month);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment