- exclude skuname 12506

This commit is contained in:
gazebo
2019-01-11 13:58:05 +08:00
parent a6d9d2f953
commit 829279b1a1

View File

@@ -206,7 +206,9 @@ func DeleteWrongSpu(ctx *jxcontext.Context, isAsync, isContinueWhenError bool) (
sql := `
SELECT *
FROM sku_name t1
WHERE t1.link_id <> 0 AND t1.unit <> '份' AND t1.is_spu = 1 AND t1.deleted_at = ?;
WHERE t1.link_id <> 0 AND t1.unit <> '份'
AND t1.is_spu = 1 AND t1.deleted_at = ?
AND t1.id <> 12506;
`
db := dao.GetDB()
var skuNameList []*model.SkuName