|
|
@ -39,7 +39,7 @@ namespace BWP.B3WeChat.BL |
|
|
|
|
|
|
|
|
public void Follow(string customerCode, string customerUsername, string openID) |
|
|
public void Follow(string customerCode, string customerUsername, string openID) |
|
|
{ |
|
|
{ |
|
|
var user = InnerBLUtil.GetSingleDmo<CustomerUser>(Session, new Tuple<string, object>("CustomerCode", "customerCode"), |
|
|
|
|
|
|
|
|
var user = InnerBLUtil.GetSingleDmo<CustomerUser>(Session, new Tuple<string, object>("CustomerCode", customerCode), |
|
|
new Tuple<string, object>("CustomerUsername", customerUsername)); |
|
|
new Tuple<string, object>("CustomerUsername", customerUsername)); |
|
|
|
|
|
|
|
|
if (user != null) |
|
|
if (user != null) |
|
|
@ -51,7 +51,7 @@ new Tuple<string, object>("CustomerUsername", customerUsername)); |
|
|
Session.Update(user); |
|
|
Session.Update(user); |
|
|
var update = new DQUpdateDom(typeof(ApproveMessage)); |
|
|
var update = new DQUpdateDom(typeof(ApproveMessage)); |
|
|
update.Where.Conditions.Add(DQCondition.EQ("CustomerCode", user.CustomerCode)); |
|
|
update.Where.Conditions.Add(DQCondition.EQ("CustomerCode", user.CustomerCode)); |
|
|
update.Where.Conditions.Add(DQCondition.EQ("CustomerUsername", user.CustomerUsername)); |
|
|
|
|
|
|
|
|
update.Where.Conditions.Add(DQCondition.EQ("Username", user.CustomerUsername)); |
|
|
update.Columns.Add(new DQUpdateColumn("OpenID", openID)); |
|
|
update.Columns.Add(new DQUpdateColumn("OpenID", openID)); |
|
|
Session.ExecuteNonQuery(update); |
|
|
Session.ExecuteNonQuery(update); |
|
|
|
|
|
|
|
|
|