|
@@ -25,6 +25,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -603,8 +604,16 @@ public class KuaiShouGroupTemplateServiceImpl extends ServiceImpl<KuaiShouGroupT
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Integer getApiCreateCount(Long accountId, String date) {
|
|
|
- return groupTemplateMapper.getApiCreateCount(accountId, date);
|
|
|
+ public Result<Object> getApiCreateCount(Long accountId, String date) {
|
|
|
+ //自定义
|
|
|
+ Integer ctmCount = groupTemplateMapper.getApiCreateCount(accountId, date, 4);
|
|
|
+ //程序化
|
|
|
+ Integer pgdCount = groupTemplateMapper.getApiCreateCount(accountId, date, 7);
|
|
|
+ JSONObject obj = new JSONObject();
|
|
|
+ obj.put("ctmCount", ctmCount);
|
|
|
+ obj.put("pgdCount", pgdCount);
|
|
|
+ return Result.ok(obj);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|