|
@@ -24,7 +24,6 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
@@ -66,8 +65,7 @@ public class KuaishouItemListController extends BaseController {
|
|
|
@Value("${ownership.id}")
|
|
|
private String ownershipId;
|
|
|
|
|
|
- @Autowired
|
|
|
- private MongoTemplate mongoTemplate;
|
|
|
+
|
|
|
|
|
|
@GetMapping("/cleanData")
|
|
|
@ApiOperation(value = "检查此商品是否被绑定")
|
|
@@ -82,7 +80,7 @@ public class KuaishouItemListController extends BaseController {
|
|
|
JSONObject mongoVo = new JSONObject();
|
|
|
mongoVo.put("_id", itemId);
|
|
|
mongoVo.put("ownership", ownershipId);
|
|
|
- mongoTemplate.save(mongoVo, "itemCheck");
|
|
|
+ // mongoTemplate.save(mongoVo, "itemCheck");
|
|
|
}
|
|
|
}
|
|
|
|