|
@@ -1340,21 +1340,7 @@ def getDeXilie(value, id):
|
|
|
return filtered.to_json(force_ascii=False)
|
|
return filtered.to_json(force_ascii=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
-def getQufei(name):
|
|
|
|
|
- if name == "0":
|
|
|
|
|
- gj = pd.read_csv("de/tj/JD_PeiBi.csv")
|
|
|
|
|
- return gj.to_json(force_ascii=False)
|
|
|
|
|
- shu = pd.read_csv("de/tj/JD_PeiBiFLB.csv")
|
|
|
|
|
- hit = shu[shu["ID"]==int(name)]
|
|
|
|
|
- ##print(hit)
|
|
|
|
|
- if len(hit) == 0:
|
|
|
|
|
- return []
|
|
|
|
|
- hit0 = hit.iloc[0]
|
|
|
|
|
- index = str(hit0['pblbh'])
|
|
|
|
|
- index_list = index.split(";")
|
|
|
|
|
- gj = pd.read_csv("de/tj/JD_PeiBi.csv")
|
|
|
|
|
- filtered = gj[gj["PBBH"].str.startswith(tuple(index_list))]
|
|
|
|
|
- return filtered.to_json(force_ascii=False)
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
def getPbxl(name, zhuanye):
|
|
def getPbxl(name, zhuanye):
|
|
|
if name == "0":
|
|
if name == "0":
|
|
@@ -1917,6 +1903,7 @@ def getSingleDeXilie_xstj(debh):
|
|
|
detail = pd.read_csv("de/xstj/JD_CaiLiaoK.csv")
|
|
detail = pd.read_csv("de/xstj/JD_CaiLiaoK.csv")
|
|
|
detail = detail[detail['RcjLb'].isin([2, '2'])]
|
|
detail = detail[detail['RcjLb'].isin([2, '2'])]
|
|
|
added = detail[detail['CLBH'].isin(additional)]
|
|
added = detail[detail['CLBH'].isin(additional)]
|
|
|
|
|
+ added = added.drop_duplicates(subset=['CLBH'])
|
|
|
for _, entry in added.iterrows():
|
|
for _, entry in added.iterrows():
|
|
|
clde_ = {}
|
|
clde_ = {}
|
|
|
CLBH = entry["CLBH"]
|
|
CLBH = entry["CLBH"]
|
|
@@ -2316,6 +2303,7 @@ def getSingleDeXilie_az(debh):
|
|
|
detail = pd.read_csv("de/az/JD_CaiLiaoK.csv")
|
|
detail = pd.read_csv("de/az/JD_CaiLiaoK.csv")
|
|
|
detail = detail[detail['RcjLb'].isin([2, '2'])]
|
|
detail = detail[detail['RcjLb'].isin([2, '2'])]
|
|
|
added = detail[detail['CLBH'].isin(additional)]
|
|
added = detail[detail['CLBH'].isin(additional)]
|
|
|
|
|
+ added = added.drop_duplicates(subset=['CLBH'])
|
|
|
for _, entry in added.iterrows():
|
|
for _, entry in added.iterrows():
|
|
|
clde_ = {}
|
|
clde_ = {}
|
|
|
CLBH = entry["CLBH"]
|
|
CLBH = entry["CLBH"]
|
|
@@ -2828,6 +2816,7 @@ def getSingleDeXilie_tj(debh):
|
|
|
detail = pd.read_csv("de/tj/JD_CaiLiaoK.csv")
|
|
detail = pd.read_csv("de/tj/JD_CaiLiaoK.csv")
|
|
|
detail = detail[detail['RcjLb'].isin([2, '2'])]
|
|
detail = detail[detail['RcjLb'].isin([2, '2'])]
|
|
|
added = detail[detail['CLBH'].isin(additional)]
|
|
added = detail[detail['CLBH'].isin(additional)]
|
|
|
|
|
+ added = added.drop_duplicates(subset=['CLBH'])
|
|
|
for _, entry in added.iterrows():
|
|
for _, entry in added.iterrows():
|
|
|
clde_ = {}
|
|
clde_ = {}
|
|
|
CLBH = entry["CLBH"]
|
|
CLBH = entry["CLBH"]
|
|
@@ -2840,6 +2829,7 @@ def getSingleDeXilie_tj(debh):
|
|
|
clde_["YSJG"] = YSJG.item() if type(YSJG) == float64 else YSJG
|
|
clde_["YSJG"] = YSJG.item() if type(YSJG) == float64 else YSJG
|
|
|
clde_["SL"] = 0
|
|
clde_["SL"] = 0
|
|
|
clde_["HJ"] = 0
|
|
clde_["HJ"] = 0
|
|
|
|
|
+
|
|
|
clde.append(clde_)
|
|
clde.append(clde_)
|
|
|
detail = pd.read_csv("de/tj/JD_PeiBi.csv")
|
|
detail = pd.read_csv("de/tj/JD_PeiBi.csv")
|
|
|
added = detail[detail['PBBH'].isin(additional)]
|
|
added = detail[detail['PBBH'].isin(additional)]
|