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