工程违章统计
This commit is contained in:
parent
82bf1fd6a6
commit
9835606004
|
|
@ -18,6 +18,10 @@ public class PageDomain
|
|||
/** 分页参数合理化 */
|
||||
private Boolean reasonable = true;
|
||||
|
||||
private Integer page;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
|
||||
public Integer getPageNum()
|
||||
{
|
||||
|
|
@ -53,4 +57,20 @@ public class PageDomain
|
|||
{
|
||||
this.reasonable = reasonable;
|
||||
}
|
||||
|
||||
public Integer getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(Integer page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(Integer limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,5 @@ public class VioStatisticsVo {
|
|||
@Excel(name = "违章占比", width = 15.0, orderNum = "4")
|
||||
private String vioRateStr;
|
||||
/**排名*/
|
||||
@Excel(name = "排名", width = 15.0, orderNum = "5")
|
||||
private int ranking;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
package com.sercurityControl.proteam.supplement.controller;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.securityControl.common.log.annotation.Log;
|
||||
import com.securityControl.common.log.enums.BusinessType;
|
||||
import com.sercurityControl.proteam.dutyTask.domain.DutyPersonEntity;
|
||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||
import com.sercurityControl.proteam.supplement.service.ProVioService;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @className:ProVioController
|
||||
* @author:cwchen
|
||||
* @date:2024-12-09-14:53
|
||||
* @version:1.0
|
||||
* @description:工程违章统计-controller
|
||||
*/
|
||||
public class ProVioController {
|
||||
|
||||
@Resource(name = "ProVioService")
|
||||
private ProVioService service;
|
||||
|
||||
@PostMapping(value = "getDutyPersonList")
|
||||
@Log(title = "值班人员管理", menu = "值班人员管理->值班人员列表", businessType = BusinessType.QUERY, details = "值班人员列表")
|
||||
public Map<String, Object> getDutyPersonList(ProVioVo dto) {
|
||||
return service.getProVioList(dto);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.sercurityControl.proteam.supplement.domain.vo;
|
||||
|
||||
import com.securityControl.common.core.web.page.PageDomain;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @className:ProVioVo
|
||||
* @author:cwchen
|
||||
* @date:2024-12-09-15:12
|
||||
* @version:1.0
|
||||
* @description:工程违章统计-vo
|
||||
*/
|
||||
@Data
|
||||
public class ProVioVo extends PageDomain {
|
||||
|
||||
/**id*/
|
||||
private String id;
|
||||
/**作业票编号*/
|
||||
private String ticketNo;
|
||||
/**工程名称*/
|
||||
private String proName;
|
||||
/**班组长*/
|
||||
private String workManager;
|
||||
/**风险等级*/
|
||||
private String riskLevel;
|
||||
/**违章单位*/
|
||||
private String org;
|
||||
/**违章类型*/
|
||||
private String type;
|
||||
/**违章子类型*/
|
||||
private String childType;
|
||||
/**违章等级*/
|
||||
private String levelId;
|
||||
/**违章内容*/
|
||||
private String content;
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.sercurityControl.proteam.supplement.mapper;
|
||||
|
||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @className:ProVioMapper
|
||||
* @author:cwchen
|
||||
* @date:2024-12-09-14:54
|
||||
* @version:1.0
|
||||
* @description:工程违章统计-mapper
|
||||
*/
|
||||
@Repository(value = "ProVioMapper")
|
||||
public interface ProVioMapper {
|
||||
/**
|
||||
* 工程违章统计
|
||||
* @param dto
|
||||
* @return List<ProVioVo>
|
||||
* @author cwchen
|
||||
* @date 2024/12/9 15:29
|
||||
*/
|
||||
List<ProVioVo> getProVioList(ProVioVo dto);
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.sercurityControl.proteam.supplement.service;
|
||||
|
||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @className:ProVioService
|
||||
* @author:cwchen
|
||||
* @date:2024-12-09-14:53
|
||||
* @version:1.0
|
||||
* @description:工程违章统计-serivce
|
||||
*/
|
||||
public interface ProVioService {
|
||||
/**
|
||||
* 工程违章统计
|
||||
* @param dto
|
||||
* @return Map<String,Object>
|
||||
* @author cwchen
|
||||
* @date 2024/12/9 15:24
|
||||
*/
|
||||
Map<String, Object> getProVioList(ProVioVo dto);
|
||||
}
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.sercurityControl.proteam.supplement.service.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.securityControl.common.core.constant.HttpStatus;
|
||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||
import com.sercurityControl.proteam.supplement.mapper.ProVioMapper;
|
||||
import com.sercurityControl.proteam.supplement.service.ProVioService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @className:ProVioServiceImpl
|
||||
* @author:cwchen
|
||||
* @date:2024-12-09-14:53
|
||||
* @version:1.0
|
||||
* @description:工程违章统计-impl
|
||||
*/
|
||||
@Slf4j
|
||||
@Service(value = "ProVioService")
|
||||
public class ProVioServiceImpl implements ProVioService {
|
||||
|
||||
@Resource(name = "ProVioMapper")
|
||||
private ProVioMapper mapper;
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getProVioList(ProVioVo dto) {
|
||||
PageHelper.startPage(dto.getPage(), dto.getLimit());
|
||||
Map<String, Object> map = new HashMap<>(16);
|
||||
List<ProVioVo> list = null;
|
||||
try {
|
||||
list = mapper.getProVioList(dto);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(),e);
|
||||
}
|
||||
PageInfo<ProVioVo> pageInfo = new PageInfo<>(list);
|
||||
map.put("code", HttpStatus.SUCCESS);
|
||||
map.put("msg", "获取数据成功");
|
||||
map.put("count", pageInfo.getTotal());
|
||||
map.put("curr", dto.getPage());
|
||||
map.put("limit", dto.getLimit());
|
||||
map.put("data", pageInfo.getList());
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
@ -12,8 +12,8 @@
|
|||
jjt.assessment_risk_level AS assessmentRiskLevel,
|
||||
jjt.re_assessment_risk_level AS reAssessmentRiskLevel,
|
||||
jjt.ticket_name AS ticketName,
|
||||
jjt.start_time AS startTime,
|
||||
jjt.end_time AS endTime,
|
||||
jjt.planned_start_date AS startTime,
|
||||
jjt.planned_end_date AS endTime,
|
||||
jjt.issue_date AS issueDate,
|
||||
so.city_name AS orgName,
|
||||
jjt.working_team_name AS teamName,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<?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.sercurityControl.proteam.supplement.mapper.ProVioMapper">
|
||||
|
||||
<!--工程违章统计-->
|
||||
<select id="getProVioList" resultType="com.sercurityControl.proteam.supplement.domain.vo.ProVioVo"></select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue