|
@@ -3409,6 +3409,32 @@ func (this *FutureGoodChartInfoController) BaseInfoEdit() {
|
|
|
return
|
|
|
}
|
|
|
chartItem.ExtraConfig = string(barConfigByte)
|
|
|
+
|
|
|
+ xDataByte, e := json.Marshal(xDataList)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "商品价格曲线图配置异常"
|
|
|
+ br.ErrMsg = "商品价格曲线图配置异常 Err:" + e.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //同步修改利润表扩展表
|
|
|
+ chartInfoFutureGoodProfit := new(future_good.ChartInfoFutureGoodProfit)
|
|
|
+ if e = chartInfoFutureGoodProfit.GetItemById(chartItem.ChartInfoId); e != nil {
|
|
|
+ br.Msg = "商品利润曲线图不存在"
|
|
|
+ br.ErrMsg = "商品利润曲线图查询出错 Err:" + e.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ chartInfoFutureGoodProfit.XValue = string(xDataByte)
|
|
|
+ // 更改扩展图表信息
|
|
|
+ // 查找商品利润图表的扩展信息
|
|
|
+ chartInfoFutureGoodProfit.ModifyTime = time.Now()
|
|
|
+ updateStr := []string{"ModifyTime", "XValue"}
|
|
|
+ err = chartInfoFutureGoodProfit.Update(updateStr)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "商品利润曲线图更新失败"
|
|
|
+ br.ErrMsg = "商品利润曲线图更新失败 Err:" + e.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
err = data_manage.EditBaseFutureGoodProfitChartInfoAndEdbEnInfo(chartItem, &req, this.Lang)
|
|
|
default:
|