Browse Source

提交综合统计dt

v4
chenrui 2 years ago
parent
commit
d5a851566b
  1. 2
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/statisticalPanel.html
  2. 22
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/StatisticalPanelController.java
  3. 33
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/StatisticsIndicatorPart.java
  4. 28
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/StatisticalPanelMapper.java
  5. 23
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/StatisticalPanelMapper.xml

2
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/statisticalPanel.html

@ -24,7 +24,7 @@
.panel-card-top{
width: 60%;
height: 35%;
padding-left: 6%;
padding-left: 8%;
padding-top: 2%;
display: flex;
flex-direction: column;

22
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/StatisticalPanelController.java

@ -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();
}
}

33
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/StatisticsIndicatorPart.java

@ -8,9 +8,34 @@ import java.util.List;
@Data
public class StatisticsIndicatorPart extends BaseDomain {
private String name;
private int number;
private int huan;
private int tong;
private int complaint;
private Integer number;
private Integer huan;
private Integer tong;
private Integer complaint;
List<StatisticsIndicatorPart> statisticsIndicatorPartList;
/**
* 类型
*/
private String type;
/**
* 总数量
*/
private Integer total;
/**
* 年度
*/
private String year;
/**
* 季度
*/
private Integer quarter;
/**
* 月度
*/
private String month;
}

28
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/StatisticalPanelMapper.java

@ -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);
}

23
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/StatisticalPanelMapper.xml

@ -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…
Cancel
Save