|
@@ -136,7 +136,7 @@ namespace MySystem
|
|
|
string start = date.Substring(0, 4) + "-" + date.Substring(4) + "-01 00:00:00";
|
|
|
string end = DateTime.Parse(start).AddMonths(1).ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
string sql = "";
|
|
|
- DataTable dt = CustomerSqlConn.dtable("select UserId,301 ChangeType,ProfitAmount,(case when DirectFlag=1 then '直拓商户分润' else '品牌推广服务费' end) Remark from ProfitRecord where SeoTitle='" + date + "' and Version=0 and UserId>0 order by Id", MysqlConn.connstr);
|
|
|
+ DataTable dt = CustomerSqlConn.dtable("select UserId,301 ChangeType,ProfitAmount,(case when DirectFlag=0 then '直拓商户分润' else '品牌推广服务费' end) Remark from ProfitRecord where SeoTitle='" + date + "' and Version=0 and UserId>0 order by Id", MysqlConn.connstr);
|
|
|
int num = 0;
|
|
|
foreach(DataRow dr in dt.Rows)
|
|
|
{
|
|
@@ -171,7 +171,7 @@ namespace MySystem
|
|
|
string start = date.Substring(0, 4) + "-" + date.Substring(4) + "-01 00:00:00";
|
|
|
string end = DateTime.Parse(start).AddMonths(1).ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
string sql = "";
|
|
|
- DataTable dt = CustomerSqlConn.dtable("select UserId,301 ChangeType,ProfitAmount,(case when DirectFlag=1 then '直拓商户分润(银联)' else '品牌推广服务费(银联)' end) Remark from ProfitRecord where SeoTitle='" + date + "' and Version=0 and UserId>0 order by Id", MysqlConn.connstr2);
|
|
|
+ DataTable dt = CustomerSqlConn.dtable("select UserId,301 ChangeType,ProfitAmount,(case when DirectFlag=0 then '直拓商户分润(银联)' else '品牌推广服务费(银联)' end) Remark from ProfitRecord where SeoTitle='" + date + "' and Version=0 and UserId>0 order by Id", MysqlConn.connstr2);
|
|
|
int num = 0;
|
|
|
foreach(DataRow dr in dt.Rows)
|
|
|
{
|