|
@@ -175,11 +175,9 @@ func (this *EdbInfoController) FenweiIndexData() {
|
|
|
product.CreateTime = v.CreateTime
|
|
|
product.ModifyTime = v.ModifyTime
|
|
|
|
|
|
- _, ok := edbCodeMap[v.IndexCode]
|
|
|
- if ok {
|
|
|
- product.EdbExist = true
|
|
|
- } else {
|
|
|
- product.EdbExist = false
|
|
|
+ edbInfo := edbCodeMap[v.IndexCode]
|
|
|
+ if edbInfo != nil {
|
|
|
+ product.EdbInfoId = edbInfo.EdbInfoId
|
|
|
}
|
|
|
|
|
|
total := countMap[v.IndexCode]
|
|
@@ -322,9 +320,8 @@ func (this *EdbInfoController) FenweiSingleData() {
|
|
|
}
|
|
|
ret.Data = dataList
|
|
|
if len(edbCodeList) > 0 {
|
|
|
- ret.EdbExist = true
|
|
|
- } else {
|
|
|
- ret.EdbExist = false
|
|
|
+ edbInfo := edbCodeList[0]
|
|
|
+ ret.EdbInfoId = edbInfo.EdbInfoId
|
|
|
}
|
|
|
|
|
|
br.Ret = 200
|