|
|
@@ -2,7 +2,7 @@ package oilsupplier
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
- "fmt"
|
|
|
+ //"fmt"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
@@ -306,16 +306,14 @@ func (this *OilSupplierCertSubController) DeleteEntity() {
|
|
|
// @router /addgoodsbus [post]
|
|
|
func (this *OilSupplierCertSubController) AddGoodsBus() {
|
|
|
var jsonblob = this.Ctx.Input.RequestBody
|
|
|
- fmt.Println("===========================", string(jsonblob))
|
|
|
var datamain suppliercertsub.OilSupplierCertSub
|
|
|
var dataother suppliercertsub.SupplierCertSubModel
|
|
|
json.Unmarshal(jsonblob, &datamain)
|
|
|
json.Unmarshal(jsonblob, &dataother)
|
|
|
+
|
|
|
var errinfo ErrorDataInfo
|
|
|
- fmt.Println("000000000000000000000===========", dataother.CheckList)
|
|
|
for n := 0; ; n++ {
|
|
|
if n == len(dataother.CheckList) {
|
|
|
- fmt.Println("11111111111111111110===========", len(dataother.CheckList))
|
|
|
errinfo.Message = "操作成功!"
|
|
|
errinfo.Code = 0
|
|
|
this.Data["json"] = &errinfo
|