添加用户,增加创建时间和创建人

duizhaopin
apan 2 years ago
parent 2bac8945b1
commit 3dced1e339

@ -68,6 +68,7 @@ def get_user_info_list():
@user_router.route("/add", methods=["GET", "POST"])
@token_auth.login_required
def add_user_info():
create_user_info = g.current_user
try:
obj = EntityUser(
real_name=request.values.get("real_name"),
@ -75,9 +76,12 @@ def add_user_info():
sex=request.values.get("sex"),
email=request.values.get("email"),
user_code=request.values.get("user_code"),
role_name=request.values.get("role_name"),
qq=request.values.get("qq"),
role_id=request.values.get("role_id"),
role_name=request.values.get("role_name"),
create_date=Utils.get_str_datetime(),
create_user_id=create_user_info.user_id,
create_user_name=create_user_info.real_name,
is_enabled=request.values.get("is_enabled")
)
BllUser().insert(obj)

Loading…
Cancel
Save