...
|
...
|
@@ -2,10 +2,11 @@ package dao |
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/constant"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/constant"
|
|
|
|
|
|
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/pg/models"
|
|
|
)
|
...
|
...
|
@@ -115,7 +116,7 @@ func (d *MaterialK3cloudDao) SyncDataProudct(version int64, orgName string) erro |
|
|
)
|
|
|
SELECT %v,%v,"join_product_id","number","name","material_group_name",
|
|
|
json_build_object('unit',specification),now(),now(),json_build_object('orgName','%v')
|
|
|
FROM "manufacture"."material_k3cloud" WHERE "data_version">=? AND "material_group_number" LIKE '05%'
|
|
|
FROM "manufacture"."material_k3cloud" WHERE "data_version">=? AND "material_group_number" LIKE '05%%'
|
|
|
ON conflict ( product_id ) DO
|
|
|
UPDATE
|
|
|
SET (
|
...
|
...
|
|