|
@@ -13,6 +13,7 @@ import org.jeecg.common.api.vo.Result;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -33,6 +34,13 @@ public class KuaishouProjectStrategyServiceImpl extends ServiceImpl<KuaishouProj
|
|
|
|
|
|
@Override
|
|
|
public Result<Object> queryProjectList(JSONObject data) {
|
|
|
+ List<Long> projectIds = new ArrayList<>();
|
|
|
+ if (Check.isNull(data.getLong("projectId"))) {
|
|
|
+ projectIds = kuaishouProjectStrategyMapper.queryProjectId();
|
|
|
+ } else {
|
|
|
+ projectIds.add(data.getLong("projectId"));
|
|
|
+ }
|
|
|
+ data.put("projectIds", projectIds);
|
|
|
JSONObject result = new JSONObject();
|
|
|
JSONObject allInfo = kuaishouProjectStrategyMapper.queryProjectAll(data);
|
|
|
Integer pageNo = Check.isNull(data.getInteger("pageNo")) ? 1 : data.getInteger("pageNo");
|
|
@@ -71,7 +79,7 @@ public class KuaishouProjectStrategyServiceImpl extends ServiceImpl<KuaishouProj
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<KuaishouProjectStrategy> getAllEffectStrategy(int unitType,String sourceMaterial) {
|
|
|
- return kuaishouProjectStrategyMapper.getAllEffectStrategy(unitType,sourceMaterial);
|
|
|
+ public List<KuaishouProjectStrategy> getAllEffectStrategy(int unitType, String sourceMaterial) {
|
|
|
+ return kuaishouProjectStrategyMapper.getAllEffectStrategy(unitType, sourceMaterial);
|
|
|
}
|
|
|
}
|