|
@@ -353,10 +353,12 @@ func handleIndex(indexItem *models.HandleMysteelIndex) (err error) {
|
|
|
indexObj.Frequency = indexItem.Frequency
|
|
|
indexObj.ModifyTime = time.Now()
|
|
|
indexId = item.BaseFromMysteelChemicalIndexId
|
|
|
+ indexObj.IsSupplierStop = item.IsSupplierStop
|
|
|
|
|
|
var isStop int
|
|
|
if strings.Contains(indexItem.IndexName, "停") {
|
|
|
isStop = 1
|
|
|
+ indexObj.IsSupplierStop = 1
|
|
|
}
|
|
|
indexObj.IsStop = isStop
|
|
|
|
|
@@ -371,6 +373,7 @@ func handleIndex(indexItem *models.HandleMysteelIndex) (err error) {
|
|
|
updateColsArr = append(updateColsArr, "describe")
|
|
|
updateColsArr = append(updateColsArr, "end_date")
|
|
|
updateColsArr = append(updateColsArr, "is_stop")
|
|
|
+ updateColsArr = append(updateColsArr, "is_supplier_stop")
|
|
|
updateColsArr = append(updateColsArr, "modify_time")
|
|
|
|
|
|
e := indexObj.Update(updateColsArr)
|