|
|
|
@ -61,7 +61,7 @@ public class SearchChoicenessSourceItemService extends SPIBaseService implements
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(ddCanUsed != null && ddCanUsed > 0 && cid != null && cid > 0) {
|
|
|
|
|
cid = getSingleDdCanUsedDsCid(cid);
|
|
|
|
|
cid = getSingleDdCanUsedDsCid(String.valueOf(cid));
|
|
|
|
|
if (cid == 0) {
|
|
|
|
|
result.put("result", "success");
|
|
|
|
|
result.put("sourceItems", new ArrayList<>());
|
|
|
|
@ -148,8 +148,8 @@ public class SearchChoicenessSourceItemService extends SPIBaseService implements
|
|
|
|
|
return getDsCidByDdCid(ddCid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Integer getSingleDdCanUsedDsCid(Integer curCid) {
|
|
|
|
|
return ddCategoryToSourceRelationIdService.getSingleDdCanUsedDsCid(shopId, String.valueOf(curCid));
|
|
|
|
|
private Integer getSingleDdCanUsedDsCid(String curCid) {
|
|
|
|
|
return ddCategoryToSourceRelationIdService.getSingleDdCanUsedDsCid(shopId, curCid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Integer getDsCidByDdCid(Long ddCid) {
|
|
|
|
|