diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 1312e9a62..6c5a85dcb 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1827,14 +1827,15 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // }) // } var ( - // db = dao.GetDB() + db = dao.GetDB() + gy []*model.SkuName ) - nameIDs := []int{ - 8023057, 8023062, 8023063, 8023074, 8023075, 8023077, 8023082, 8023093, 8023102, 8023103, 8023108, 8023110, 8023112, 8023121, 8023123, 8023141, 8023145, 8023148, 8023153, 8023161, 8023180, 8023183, 8023187, 8023188, 8023190, 8023199, 8023201, 8023204, 8023211, 8023224, 8023226, 8023233, 8023236, 8023240, 8023241, 8023244, 8023258, 8023266, 8023297, 8023304, 8023305, 8023308, 8023313, 8023317, 8023323, 8023328, 8023337, 8023351, 8023353, 8023358, 8023361, 8023365, 8023366, 8023370, 8023372, 8023375, 8023395, 8023406, 8023413, 8023415, 8023422, 8023423, 8023424, 8023434, 8023435, 8023436, 8023443, 8023444, 8023446, 8023467, 8023468, 8023476, 8023481, 8023487, 8023491, 8023495, 8023504, 8023505, 8023515, 8023519, 8023522, 8023528, 8023529, 8023531, 8023534, 8023536, 8023539, 8023540, 8023541, 8023545, 8023546, 8023550, 8023552, 8023557, 8023558, 8023559, 8023602, 8023622, 8023627, 8023629, 8023634, 8023639, 8023643, 8023646, 8023666, 8023668, 8025481, 8025800, 8025814, 8025855, 8025864, 8027074, 8027112, 8027116, 8027132, - } - for _, v := range nameIDs { - cms.DeleteSkuName(ctx, v, "jxadmin") - } + sql := ` + SELECT * FROM jxgy.sku_name WHERE deleted_at = ? AND category_id IN (3039,3040,3041,3042,3070) + ` + sqlParams := []interface{}{utils.DefaultTimeValue} + err = dao.GetRows(db, &gy, sql, sqlParams) + fmt.Println("123123123213123123123123", utils.Format4Output(gy, false)) return err }