工程违章统计
This commit is contained in:
parent
9835606004
commit
d13036f8f3
|
|
@ -18,10 +18,6 @@ public class PageDomain
|
||||||
/** 分页参数合理化 */
|
/** 分页参数合理化 */
|
||||||
private Boolean reasonable = true;
|
private Boolean reasonable = true;
|
||||||
|
|
||||||
private Integer page;
|
|
||||||
|
|
||||||
private Integer limit;
|
|
||||||
|
|
||||||
|
|
||||||
public Integer getPageNum()
|
public Integer getPageNum()
|
||||||
{
|
{
|
||||||
|
|
@ -58,19 +54,4 @@ public class PageDomain
|
||||||
this.reasonable = reasonable;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,14 @@ import com.github.pagehelper.PageInfo;
|
||||||
import com.securityControl.common.log.annotation.Log;
|
import com.securityControl.common.log.annotation.Log;
|
||||||
import com.securityControl.common.log.enums.BusinessType;
|
import com.securityControl.common.log.enums.BusinessType;
|
||||||
import com.sercurityControl.proteam.dutyTask.domain.DutyPersonEntity;
|
import com.sercurityControl.proteam.dutyTask.domain.DutyPersonEntity;
|
||||||
|
import com.sercurityControl.proteam.supplement.domain.dto.ParamsDto;
|
||||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||||
import com.sercurityControl.proteam.supplement.service.ProVioService;
|
import com.sercurityControl.proteam.supplement.service.ProVioService;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
@ -20,14 +25,18 @@ import java.util.Map;
|
||||||
* @version:1.0
|
* @version:1.0
|
||||||
* @description:工程违章统计-controller
|
* @description:工程违章统计-controller
|
||||||
*/
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/pot/proVio/")
|
||||||
|
@Slf4j
|
||||||
public class ProVioController {
|
public class ProVioController {
|
||||||
|
|
||||||
@Resource(name = "ProVioService")
|
@Resource(name = "ProVioService")
|
||||||
private ProVioService service;
|
private ProVioService service;
|
||||||
|
|
||||||
|
@ApiOperation(value = "工程违章统计-列表")
|
||||||
@PostMapping(value = "getDutyPersonList")
|
@PostMapping(value = "getDutyPersonList")
|
||||||
@Log(title = "值班人员管理", menu = "值班人员管理->值班人员列表", businessType = BusinessType.QUERY, details = "值班人员列表")
|
@Log(title = "工程违章统计", menu = "值班任务->工程违章统计", businessType = BusinessType.QUERY, details = "工程违章统计")
|
||||||
public Map<String, Object> getDutyPersonList(ProVioVo dto) {
|
public Map<String, Object> getDutyPersonList(ParamsDto dto) {
|
||||||
return service.getProVioList(dto);
|
return service.getProVioList(dto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.sercurityControl.proteam.supplement.domain.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @className:ParamsDto
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-12-09-15:58
|
||||||
|
* @version:1.0
|
||||||
|
* @description:前端参数-dto
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ParamsDto {
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**工程名称*/
|
||||||
|
private String proName;
|
||||||
|
|
||||||
|
private int page;
|
||||||
|
|
||||||
|
private int limit;
|
||||||
|
}
|
||||||
|
|
@ -11,7 +11,7 @@ import lombok.Data;
|
||||||
* @description:工程违章统计-vo
|
* @description:工程违章统计-vo
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class ProVioVo extends PageDomain {
|
public class ProVioVo{
|
||||||
|
|
||||||
/**id*/
|
/**id*/
|
||||||
private String id;
|
private String id;
|
||||||
|
|
@ -21,6 +21,8 @@ public class ProVioVo extends PageDomain {
|
||||||
private String proName;
|
private String proName;
|
||||||
/**班组长*/
|
/**班组长*/
|
||||||
private String workManager;
|
private String workManager;
|
||||||
|
/**班组长手机号*/
|
||||||
|
private String workManagerPhone;
|
||||||
/**风险等级*/
|
/**风险等级*/
|
||||||
private String riskLevel;
|
private String riskLevel;
|
||||||
/**违章单位*/
|
/**违章单位*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.sercurityControl.proteam.supplement.mapper;
|
package com.sercurityControl.proteam.supplement.mapper;
|
||||||
|
|
||||||
|
import com.sercurityControl.proteam.supplement.domain.dto.ParamsDto;
|
||||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
|
@ -21,5 +22,5 @@ public interface ProVioMapper {
|
||||||
* @author cwchen
|
* @author cwchen
|
||||||
* @date 2024/12/9 15:29
|
* @date 2024/12/9 15:29
|
||||||
*/
|
*/
|
||||||
List<ProVioVo> getProVioList(ProVioVo dto);
|
List<ProVioVo> getProVioList(ParamsDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.sercurityControl.proteam.supplement.service;
|
package com.sercurityControl.proteam.supplement.service;
|
||||||
|
|
||||||
|
import com.sercurityControl.proteam.supplement.domain.dto.ParamsDto;
|
||||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -19,5 +20,5 @@ public interface ProVioService {
|
||||||
* @author cwchen
|
* @author cwchen
|
||||||
* @date 2024/12/9 15:24
|
* @date 2024/12/9 15:24
|
||||||
*/
|
*/
|
||||||
Map<String, Object> getProVioList(ProVioVo dto);
|
Map<String, Object> getProVioList(ParamsDto dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package com.sercurityControl.proteam.supplement.service.impl;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
import com.securityControl.common.core.constant.HttpStatus;
|
import com.securityControl.common.core.constant.HttpStatus;
|
||||||
|
import com.sercurityControl.proteam.supplement.domain.dto.ParamsDto;
|
||||||
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
import com.sercurityControl.proteam.supplement.domain.vo.ProVioVo;
|
||||||
import com.sercurityControl.proteam.supplement.mapper.ProVioMapper;
|
import com.sercurityControl.proteam.supplement.mapper.ProVioMapper;
|
||||||
import com.sercurityControl.proteam.supplement.service.ProVioService;
|
import com.sercurityControl.proteam.supplement.service.ProVioService;
|
||||||
|
|
@ -29,7 +30,7 @@ public class ProVioServiceImpl implements ProVioService {
|
||||||
private ProVioMapper mapper;
|
private ProVioMapper mapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getProVioList(ProVioVo dto) {
|
public Map<String, Object> getProVioList(ParamsDto dto) {
|
||||||
PageHelper.startPage(dto.getPage(), dto.getLimit());
|
PageHelper.startPage(dto.getPage(), dto.getLimit());
|
||||||
Map<String, Object> map = new HashMap<>(16);
|
Map<String, Object> map = new HashMap<>(16);
|
||||||
List<ProVioVo> list = null;
|
List<ProVioVo> list = null;
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,24 @@
|
||||||
<mapper namespace="com.sercurityControl.proteam.supplement.mapper.ProVioMapper">
|
<mapper namespace="com.sercurityControl.proteam.supplement.mapper.ProVioMapper">
|
||||||
|
|
||||||
<!--工程违章统计-->
|
<!--工程违章统计-->
|
||||||
<select id="getProVioList" resultType="com.sercurityControl.proteam.supplement.domain.vo.ProVioVo"></select>
|
<select id="getProVioList" resultType="com.sercurityControl.proteam.supplement.domain.vo.ProVioVo">
|
||||||
|
SELECT tnv.id,
|
||||||
|
tnv.ticket_no AS ticketNo,
|
||||||
|
tnv.pro_name AS proName,
|
||||||
|
tnv.risk_level AS riskLevel,
|
||||||
|
so.city_name AS org,
|
||||||
|
tnv.type AS `type`,
|
||||||
|
tnv.level_id AS levelId,
|
||||||
|
tnv.content AS content,
|
||||||
|
tnv.child_type AS childType,
|
||||||
|
jjcmi.work_manage AS workManager,
|
||||||
|
jjcmi.work_manage_phone AS workManagerPhone
|
||||||
|
FROM t_notice_voi tnv
|
||||||
|
LEFT JOIN jj_class_metting_info jjcmi ON tnv.class_id = jjcmi.class_id
|
||||||
|
LEFT JOIN sys_org so ON tnv.org = so.org_id
|
||||||
|
WHERE tnv.sup_type = '1' AND tnv.`status` NOT IN ('7','8') AND tnv.is_flag = '0'
|
||||||
|
<if test="proName!=null and proName!=''">
|
||||||
|
AND INSTR(tnv.pro_name,#{proName}) > 0
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue