charge_unit FROM mcms_goods_info WHERE id ='%s';"""%hos_goods_id
charge_unit FROM mcms_goods_info WHERE id ='%s';"""%hos_goods_id
res_dict=get_dict_data_sql(cursor,sql)
print('res_dict',res_dict)
returnres_dict
...
...
@@ -248,7 +248,7 @@ def get_id(sql):
defget_DRId(branch_id,type):
db,cursor=get_sql_conn()
cursor.execute(
"select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_LYTK' order by CREATE_TIME desc LIMIT 1;"%(branch_id,type))
"select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_LYTK' order by CREATE_TIME desc LIMIT 1;"%(branch_id,type))