5 changed files with 103 additions and 5 deletions
@ -0,0 +1,22 @@ |
|||
package com.zdxt.code.controller; |
|||
|
|||
import com.zdxt.common.ZDResponse; |
|||
import com.zdxt.common.controller.BaseController; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
|
|||
/** |
|||
* 综合统计 |
|||
*/ |
|||
@RequestMapping("/statisticalPanel") |
|||
@Controller |
|||
public class StatisticalPanelController extends BaseController { |
|||
|
|||
|
|||
@RequestMapping("/") |
|||
public ZDResponse home(){ |
|||
|
|||
return ZDResponse.success(); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,28 @@ |
|||
package com.zdxt.code.mapper; |
|||
|
|||
import com.zdxt.code.domain.StatisticsIndicatorPart; |
|||
|
|||
public interface StatisticalPanelMapper { |
|||
|
|||
/** |
|||
* 统计执法部门数量 |
|||
* @param statisticsIndicatorPart |
|||
* @return |
|||
*/ |
|||
Integer statisticalPanelDept(StatisticsIndicatorPart statisticsIndicatorPart); |
|||
|
|||
/** |
|||
* 统计执法人员数量 |
|||
* @param statisticsIndicatorPart |
|||
* @return |
|||
*/ |
|||
Integer statisticalPanelUser(StatisticsIndicatorPart statisticsIndicatorPart); |
|||
|
|||
/** |
|||
* 统计执法人员数量 |
|||
* @param statisticsIndicatorPart |
|||
* @return |
|||
*/ |
|||
Integer statisticalPanelOwerDept(StatisticsIndicatorPart statisticsIndicatorPart); |
|||
|
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.zdxt.code.mapper.StatisticalPanelMapper"> |
|||
|
|||
<resultMap type="StatisticsIndicatorPart" id="StatisticalVoResult"> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="userId" column="user_id" /> |
|||
<result property="deptId" column="dept_id" /> |
|||
<result property="name" column="name" /> |
|||
</resultMap> |
|||
|
|||
<select id="statisticalPanelDept" resultType="integer" parameterType="StatisticsIndicatorPart"> |
|||
select count(id) from ZFZTJDM111915 |
|||
</select> |
|||
|
|||
<select id="statisticalPanelUser" resultType="integer" parameterType="StatisticsIndicatorPart"> |
|||
select count(id) from ZFRYJDM2405301 where CODE_STATE = '01' |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
|||
Loading…
Reference in new issue