|
|
@ -142,7 +142,6 @@ def client_empty():
|
|
|
|
def get_client_drawer():
|
|
|
|
def get_client_drawer():
|
|
|
|
client_id = request.values.get("client_id")
|
|
|
|
client_id = request.values.get("client_id")
|
|
|
|
data_list = BllClientCell().findList(EntityClientCell.client_id==client_id).all()
|
|
|
|
data_list = BllClientCell().findList(EntityClientCell.client_id==client_id).all()
|
|
|
|
print(data_list)
|
|
|
|
|
|
|
|
if data_list:
|
|
|
|
if data_list:
|
|
|
|
return jsonify(Utils.true_return(data=data_list))
|
|
|
|
return jsonify(Utils.true_return(data=data_list))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
@ -202,7 +201,6 @@ def set_client_drawer_power():
|
|
|
|
# cell_user_obj.session.commit()
|
|
|
|
# cell_user_obj.session.commit()
|
|
|
|
# 按条件添加
|
|
|
|
# 按条件添加
|
|
|
|
inster_add_list = []
|
|
|
|
inster_add_list = []
|
|
|
|
print(drawer_id, client_cell_code, client_code, client_id)
|
|
|
|
|
|
|
|
for i in drawer_add_user_list:
|
|
|
|
for i in drawer_add_user_list:
|
|
|
|
obj = EntityClientCellUser(
|
|
|
|
obj = EntityClientCellUser(
|
|
|
|
client_cell_id=drawer_id,
|
|
|
|
client_cell_id=drawer_id,
|
|
|
|