|
@@ -62,9 +62,7 @@ func (c *UserController) List() {
|
|
|
T_power := c.GetString("T_power")
|
|
|
T_dept, _ := c.GetInt("T_dept")
|
|
|
T_dept_leader, _ := c.GetInt("T_dept_leader")
|
|
|
- if T_dept_leader == 1 {
|
|
|
- T_dept = c.User.T_dept
|
|
|
- }
|
|
|
+
|
|
|
R_List, R_cnt := Account.Read_User_List(T_name, T_power, T_dept, T_dept_leader, page, page_z)
|
|
|
|
|
|
var r_jsons lib.R_JSONS
|
|
@@ -313,12 +311,12 @@ func (c *UserController) Edit() {
|
|
|
cols = append(cols, "T_post")
|
|
|
}
|
|
|
|
|
|
- if T_dept_leader_err != nil {
|
|
|
+ if T_dept_leader_err == nil {
|
|
|
user.T_dept_leader = T_dept_leader
|
|
|
cols = append(cols, "T_dept_leader")
|
|
|
}
|
|
|
|
|
|
- if T_sex_err != nil {
|
|
|
+ if T_sex_err == nil {
|
|
|
user.T_sex = T_sex
|
|
|
cols = append(cols, "T_sex")
|
|
|
}
|
|
@@ -346,7 +344,7 @@ func (c *UserController) Edit() {
|
|
|
user.T_phone = T_phone
|
|
|
cols = append(cols, "T_phone")
|
|
|
}
|
|
|
- if T_marry_err != nil {
|
|
|
+ if T_marry_err == nil {
|
|
|
user.T_marry = T_marry
|
|
|
cols = append(cols, "T_marry")
|
|
|
}
|
|
@@ -378,7 +376,7 @@ func (c *UserController) Edit() {
|
|
|
user.T_contract_end_time = T_contract_end_time
|
|
|
cols = append(cols, "T_contract_end_time")
|
|
|
}
|
|
|
- if T_expire_err != nil {
|
|
|
+ if T_expire_err == nil {
|
|
|
user.T_expire = T_expire
|
|
|
cols = append(cols, "T_expire")
|
|
|
}
|