// 成本计算列表
func CostingSelect(c *gin.Context) {
//获得请求头信息
jwtBase := c.GetHeader("jwtBase")
configs.BaseName(jwtBase)
//var data []model.WbBillflow
//configs.Db.Raw("select * from wb_billflow where id>=?", 1).Find(&data)
var data []map[string]interface{}
configs.Db.Raw("select * from wb_billflow where id>=?", 1).Find(&data)
for i, it := range data {
data[i]["dade3"] = "6666"
fmt.Println(it["date"])
}
c.JSON(200, gin.H{
"code": 2000,
"data": data,
"message": "查询成功",
})
}
07-14
2151
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-21
2072
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-09
487
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-07