|
@@ -945,10 +945,10 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
|
|
KuaishouSupplyChain supplyChain = new KuaishouSupplyChain(info, "1");
|
|
KuaishouSupplyChain supplyChain = new KuaishouSupplyChain(info, "1");
|
|
|
|
|
|
String ownership = null;
|
|
String ownership = null;
|
|
- Criteria criteria = new Criteria();
|
|
|
|
|
|
+ /* Criteria criteria = new Criteria();
|
|
criteria = Criteria.where("_id").is(supplyChain.getItemId());
|
|
criteria = Criteria.where("_id").is(supplyChain.getItemId());
|
|
- Query query = new Query(criteria);
|
|
|
|
- ItemCheck itemCheck = mongoTemplate.findOne(query, ItemCheck.class);
|
|
|
|
|
|
+ Query query = new Query(criteria);*/
|
|
|
|
+ ItemCheck itemCheck = null;
|
|
if (!Check.isNull(itemCheck)) {
|
|
if (!Check.isNull(itemCheck)) {
|
|
ownership = itemCheck.getOwnership();
|
|
ownership = itemCheck.getOwnership();
|
|
}
|
|
}
|
|
@@ -1123,10 +1123,10 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
|
|
if (!Check.isNull(cpsOrderProductView)) {
|
|
if (!Check.isNull(cpsOrderProductView)) {
|
|
JSONObject itemJson = cpsOrderProductView.getJSONObject(0);
|
|
JSONObject itemJson = cpsOrderProductView.getJSONObject(0);
|
|
Long itemId = itemJson.getLong("itemId");
|
|
Long itemId = itemJson.getLong("itemId");
|
|
- Criteria criteria = new Criteria();
|
|
|
|
|
|
+ /* Criteria criteria = new Criteria();
|
|
criteria = Criteria.where("_id").is(itemId);
|
|
criteria = Criteria.where("_id").is(itemId);
|
|
- Query query = new Query(criteria);
|
|
|
|
- ItemCheck itemCheck = mongoTemplate.findOne(query, ItemCheck.class);
|
|
|
|
|
|
+ Query query = new Query(criteria);*/
|
|
|
|
+ ItemCheck itemCheck = null;
|
|
if (Check.isNull(itemCheck)) {
|
|
if (Check.isNull(itemCheck)) {
|
|
ruixuanList.add(info.getLong("oid"));
|
|
ruixuanList.add(info.getLong("oid"));
|
|
}
|
|
}
|
|
@@ -1238,10 +1238,10 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
|
|
JSONArray cpsOrderProductView = info.getJSONArray("cpsOrderProductView");
|
|
JSONArray cpsOrderProductView = info.getJSONArray("cpsOrderProductView");
|
|
JSONObject itemJson = cpsOrderProductView.getJSONObject(0);
|
|
JSONObject itemJson = cpsOrderProductView.getJSONObject(0);
|
|
Long itemId = itemJson.getLong("itemId");
|
|
Long itemId = itemJson.getLong("itemId");
|
|
- Criteria criteria = new Criteria();
|
|
|
|
|
|
+ /* Criteria criteria = new Criteria();
|
|
criteria = Criteria.where("_id").is(itemId);
|
|
criteria = Criteria.where("_id").is(itemId);
|
|
- Query query = new Query(criteria);
|
|
|
|
- ItemCheck itemCheck = mongoTemplate.findOne(query, ItemCheck.class);
|
|
|
|
|
|
+ Query query = new Query(criteria);*/
|
|
|
|
+ ItemCheck itemCheck = null;
|
|
if (Check.isNull(itemCheck)) {
|
|
if (Check.isNull(itemCheck)) {
|
|
mgsList.add(info.getLong("oid"));
|
|
mgsList.add(info.getLong("oid"));
|
|
}
|
|
}
|
|
@@ -1461,10 +1461,10 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
|
|
JSONArray cpsOrderProductView = info.getJSONArray("cpsOrderProductView");
|
|
JSONArray cpsOrderProductView = info.getJSONArray("cpsOrderProductView");
|
|
JSONObject itemJson = cpsOrderProductView.getJSONObject(0);
|
|
JSONObject itemJson = cpsOrderProductView.getJSONObject(0);
|
|
Long itemId = itemJson.getLong("itemId");
|
|
Long itemId = itemJson.getLong("itemId");
|
|
- Criteria criteria = new Criteria();
|
|
|
|
|
|
+ /* Criteria criteria = new Criteria();
|
|
criteria = Criteria.where("_id").is(itemId);
|
|
criteria = Criteria.where("_id").is(itemId);
|
|
- Query query = new Query(criteria);
|
|
|
|
- ItemCheck itemCheck = mongoTemplate.findOne(query, ItemCheck.class);
|
|
|
|
|
|
+ Query query = new Query(criteria);*/
|
|
|
|
+ ItemCheck itemCheck = null;
|
|
if (Check.isNull(itemCheck)) {
|
|
if (Check.isNull(itemCheck)) {
|
|
yufuList.add(info.getLong("oid"));
|
|
yufuList.add(info.getLong("oid"));
|
|
}
|
|
}
|