diff --git a/README.md b/README.md index bca87cb..c53cc58 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ # RMS后台管理系统4.0 +# # 待入库接口 + +/api/drug/stay_putin_return_list +client_id +page +page_size +status +根据status判断是待入库还是待归还接口 +返回类型{"data":{"data_list":[{试剂表内所有字段}], total_count:总数}, "status":0}} + +# # 待领用接口 + +/api/temporary_auth/get_stay_use_list +client_id +返回类型{"data":[ + {'name': '氨水', 'num': '2', 'client_id':'1c39cb24-07f8-11ed-abd4-f47b094925e1', 'purity': '25~28%', 'speci': '500', 'stay_use_num':1}, + {'name': '硫酸', 'num': '2', 'client_id': '1c39cb24-07f8-11ed-abd4-f47b094925e1', 'purity': '26~29%', 'speci': '500','stay_use_num':1}] "status":0}} + +# # 修改试剂状态 + +/api/drug/update_drug_status +bar_code +status +返回类型{"data":"", "msg":"修改成功", "status":0} diff --git a/demo.py b/demo.py index 830371d..a2ac268 100644 --- a/demo.py +++ b/demo.py @@ -31,12 +31,12 @@ def picture_shoot(image_name='img.png', image_path=r'C:/local_project/imgs') -> # if __name__ == '__main__': # picture_shoot() # from db_logic.module import BllModule -from Common.Utils import Utils -data = BllModule().findList(EntityModule.module_type=='4') -for i in data: - i.module_name = str(i.module_name).replace("耗材", "对照品") +# from Common.Utils import Utils +# data = BllModule().findList(EntityModule.module_type=='4') +# for i in data: +# i.module_name = str(i.module_name).replace("耗材", "对照品") - BllModule().update(i) +# BllModule().update(i) # data = BllModule().execute("select * from rms_module where module_type=2 order by sort_index").fetchall() # data_list = Utils.msyql_table_model(data) @@ -54,4 +54,8 @@ for i in data: # inster_list.append(EntityModule(**d)) # ind += 1 # print(11111) -# BllModule().insert_many(inster_list) \ No newline at end of file +# BllModule().insert_many(inster_list) + +a = "[{\"name\":\"\u6c28\u6c34\",\"num\":\"2\",\"client_id\":\"1c39cb24-07f8-11ed-abd4-f47b094925e1\",\"purity\":\"25~28%\",\"speci\":\"500\"},{\"name\":\"\u786b\u9178\",\"num\":\"2\",\"client_id\":\"1c39cb24-07f8-11ed-abd4-f47b094925e1\",\"purity\":\"26~29%\",\"speci\":\"500\"}]" +import json +print(json.loads(a)) \ No newline at end of file