Commit 9b614996 by 吴迪

【修改】点击区间时间范围

parent c3b2ec39
...@@ -103,7 +103,6 @@ public class WebsiteHitCountDetailController extends AbstractController { ...@@ -103,7 +103,6 @@ public class WebsiteHitCountDetailController extends AbstractController {
@RequestMapping("/getTotalCount") @RequestMapping("/getTotalCount")
// @RequiresPermissions("manage:websitehitcountdetail:list") // @RequiresPermissions("manage:websitehitcountdetail:list")
public R getTotalCount(@RequestBody WebsiteHitCountDetailForm websiteHitCountDetailForm) { public R getTotalCount(@RequestBody WebsiteHitCountDetailForm websiteHitCountDetailForm) {
return R.ok().put("data", websiteHitCountDetailService.getTotalCount(websiteHitCountDetailForm)); return R.ok().put("data", websiteHitCountDetailService.getTotalCount(websiteHitCountDetailForm));
} }
} }
...@@ -22,6 +22,6 @@ public interface WebsiteHitCountDetailDao extends BaseMapper<WebsiteHitCountDeta ...@@ -22,6 +22,6 @@ public interface WebsiteHitCountDetailDao extends BaseMapper<WebsiteHitCountDeta
List<WebsiteHitCountDetailForm> getListPage(@Param("websiteHitCountDetailForm") WebsiteHitCountDetailForm websiteHitCountDetailForm, Page page); List<WebsiteHitCountDetailForm> getListPage(@Param("websiteHitCountDetailForm") WebsiteHitCountDetailForm websiteHitCountDetailForm, Page page);
int getTotalCount(@Param("websiteHitCountDetailForm") WebsiteHitCountDetailForm websiteHitCountDetailForm); WebsiteHitCountDetailForm getTotalCount(@Param("websiteHitCountDetailForm") WebsiteHitCountDetailForm websiteHitCountDetailForm);
} }
...@@ -32,6 +32,6 @@ public interface WebsiteHitCountDetailService extends IService<WebsiteHitCountDe ...@@ -32,6 +32,6 @@ public interface WebsiteHitCountDetailService extends IService<WebsiteHitCountDe
Page<WebsiteHitCountDetailForm> getListPage(WebsiteHitCountDetailForm websiteHitCountDetailForm, Page page); Page<WebsiteHitCountDetailForm> getListPage(WebsiteHitCountDetailForm websiteHitCountDetailForm, Page page);
int getTotalCount(WebsiteHitCountDetailForm websiteHitCountDetailForm); WebsiteHitCountDetailForm getTotalCount(WebsiteHitCountDetailForm websiteHitCountDetailForm);
} }
package io.office.modules.manage.service.impl; package io.office.modules.manage.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.office.common.utils.PageUtils;
import io.office.common.utils.Query;
import io.office.modules.manage.dao.ShortCodeDao; import io.office.modules.manage.dao.ShortCodeDao;
import io.office.modules.manage.entity.ShortCodeEntity; import io.office.modules.manage.entity.ShortCodeEntity;
import io.office.modules.manage.service.ShortCodeService; import io.office.modules.manage.service.ShortCodeService;
...@@ -8,11 +13,6 @@ import org.springframework.stereotype.Service; ...@@ -8,11 +13,6 @@ import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.office.common.utils.PageUtils;
import io.office.common.utils.Query;
...@@ -37,4 +37,4 @@ public class ShortCodeServiceImpl extends ServiceImpl<ShortCodeDao, ShortCodeEnt ...@@ -37,4 +37,4 @@ public class ShortCodeServiceImpl extends ServiceImpl<ShortCodeDao, ShortCodeEnt
} }
} }
\ No newline at end of file
...@@ -59,7 +59,7 @@ public class WebsiteHitCountDetailServiceImpl extends ServiceImpl<WebsiteHitCoun ...@@ -59,7 +59,7 @@ public class WebsiteHitCountDetailServiceImpl extends ServiceImpl<WebsiteHitCoun
} }
@Override @Override
public int getTotalCount(WebsiteHitCountDetailForm websiteHitCountDetailForm) { public WebsiteHitCountDetailForm getTotalCount(WebsiteHitCountDetailForm websiteHitCountDetailForm) {
return baseMapper.getTotalCount(websiteHitCountDetailForm); return baseMapper.getTotalCount(websiteHitCountDetailForm);
} }
......
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
</select> </select>
<select id="getTotalCount" parameterType="io.office.modules.manage.form.WebsiteHitCountDetailForm" resultType="int"> <select id="getTotalCount" parameterType="io.office.modules.manage.form.WebsiteHitCountDetailForm" resultType="io.office.modules.manage.form.WebsiteHitCountDetailForm">
SELECT COUNT(1) AS hit_count SELECT COUNT(1) AS hit_count,max(create_time) createEndTime,min(create_time) createStartTime
FROM website_hit_count_detail FROM website_hit_count_detail
<where> <where>
<if test="websiteHitCountDetailForm.createStartTime!=null and websiteHitCountDetailForm.createStartTime!=''"> <if test="websiteHitCountDetailForm.createStartTime!=null and websiteHitCountDetailForm.createStartTime!=''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment