- add created_at, updated_at, last_operator to WeiXins

This commit is contained in:
gazebo
2019-01-26 16:53:14 +08:00
parent 51dd016bac
commit 600d66568c
3 changed files with 15 additions and 10 deletions

View File

@@ -16,7 +16,8 @@ func CreateWeiXins(db *DaoDB, user *legacymodel.WeiXins) (err error) {
openid = IF(openid = '', NULL, openid),
openid_mini = IF(openid_mini = '', NULL, openid_mini),
openid_union = IF(openid_union = '', NULL, openid_union),
tel = IF(tel = '', NULL, tel)
tel = IF(tel = '', NULL, tel),
parentid = IF(parentid = 0, -1, parentid)
WHERE id = ?
`, user.ID); err != nil {
Rollback(db)

View File

@@ -15,7 +15,6 @@ func TestCreateWeiXins(t *testing.T) {
if err != nil {
t.Fatal(err)
}
// globals.SugarLogger.Debug(utils.Format4Output(places, false))
}
func TestGetWeiXinUserByIDs(t *testing.T) {