正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
@@ -2,10 +2,11 @@ package dao | @@ -2,10 +2,11 @@ package dao | ||
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "fmt" | 4 | "fmt" |
5 | - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/constant" | ||
6 | "strconv" | 5 | "strconv" |
7 | "strings" | 6 | "strings" |
8 | 7 | ||
8 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/constant" | ||
9 | + | ||
9 | pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | 10 | pgTransaction "github.com/linmadan/egglib-go/transaction/pg" |
10 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/pg/models" | 11 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/pg/models" |
11 | ) | 12 | ) |
@@ -115,7 +116,7 @@ func (d *MaterialK3cloudDao) SyncDataProudct(version int64, orgName string) erro | @@ -115,7 +116,7 @@ func (d *MaterialK3cloudDao) SyncDataProudct(version int64, orgName string) erro | ||
115 | ) | 116 | ) |
116 | SELECT %v,%v,"join_product_id","number","name","material_group_name", | 117 | SELECT %v,%v,"join_product_id","number","name","material_group_name", |
117 | json_build_object('unit',specification),now(),now(),json_build_object('orgName','%v') | 118 | json_build_object('unit',specification),now(),now(),json_build_object('orgName','%v') |
118 | - FROM "manufacture"."material_k3cloud" WHERE "data_version">=? AND "material_group_number" LIKE '05%' | 119 | + FROM "manufacture"."material_k3cloud" WHERE "data_version">=? AND "material_group_number" LIKE '05%%' |
119 | ON conflict ( product_id ) DO | 120 | ON conflict ( product_id ) DO |
120 | UPDATE | 121 | UPDATE |
121 | SET ( | 122 | SET ( |
-
请 注册 或 登录 后发表评论