初始化
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
package com.njcn.process.constant;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 常量类
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @date 2022年11月11日 09:56
|
||||||
|
*/
|
||||||
|
public interface Param {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package com.njcn.process.enums;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 异常处理类
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @date 2022年11月11日 09:56
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
public enum ProcessResponseEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过程监督异常响应码的范围:
|
||||||
|
* A00550 ~ A00649
|
||||||
|
*/
|
||||||
|
PROCESS_COMMON_ERROR("A00550","监督管理模块异常"),
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
|
||||||
|
private final String message;
|
||||||
|
|
||||||
|
ProcessResponseEnum(String code, String message) {
|
||||||
|
this.code = code;
|
||||||
|
this.message = message;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package com.njcn.process.pojo.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公共DTO(初始化类)
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @createTime 2022/11/11 10:34
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class PublicDTO {
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String date;
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package com.njcn.process.pojo.param;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公共Param(初始化类)
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @createTime 2022/11/11 10:34
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class PublicParam {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "id")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "date")
|
||||||
|
private String date;
|
||||||
|
}
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
package com.njcn.process.pojo.po;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 干扰源用户管理表(RLoadTypeUserManage)实体类
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @since 2022-11-11 10:11:41
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName(value = "r_load_type_user_manage")
|
||||||
|
public class RLoadTypeUserManage implements Serializable {
|
||||||
|
private static final long serialVersionUID = 390349030891669605L;
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
/**
|
||||||
|
* 单位ID
|
||||||
|
*/
|
||||||
|
private String orgNo;
|
||||||
|
/**
|
||||||
|
* 干扰源类型ID
|
||||||
|
*/
|
||||||
|
private String loadType;
|
||||||
|
/**
|
||||||
|
* 干扰源用户名称
|
||||||
|
*/
|
||||||
|
private String userName;
|
||||||
|
/**
|
||||||
|
* 关联干扰源用户编号ID
|
||||||
|
*/
|
||||||
|
private String relationUserId;
|
||||||
|
/**
|
||||||
|
* 建档时间
|
||||||
|
*/
|
||||||
|
private Date recordTime;
|
||||||
|
/**
|
||||||
|
* 送电日期(并网日期)
|
||||||
|
*/
|
||||||
|
private Date powerTransmissionDate;
|
||||||
|
/**
|
||||||
|
* 合同容量(总装机容量)
|
||||||
|
*/
|
||||||
|
private Float userArgeementCapacity;
|
||||||
|
/**
|
||||||
|
* 用户类型,字典表
|
||||||
|
*/
|
||||||
|
private String userLoadType;
|
||||||
|
/**
|
||||||
|
* 入网报告状态,字典ID
|
||||||
|
*/
|
||||||
|
private String iStatus;
|
||||||
|
/**
|
||||||
|
* 入网报告路径
|
||||||
|
*/
|
||||||
|
private String iFilePath;
|
||||||
|
/**
|
||||||
|
* 入网报告上传时间
|
||||||
|
*/
|
||||||
|
private Date iUploadTime;
|
||||||
|
/**
|
||||||
|
* 入网是否超标(0:否 1:是)
|
||||||
|
*/
|
||||||
|
private Integer iIsOverLimit;
|
||||||
|
/**
|
||||||
|
* 入网超标指标
|
||||||
|
*/
|
||||||
|
private String iOverLimitTarget;
|
||||||
|
/**
|
||||||
|
* 入网计划采取措施,字典ID
|
||||||
|
*/
|
||||||
|
private String iPlanStep;
|
||||||
|
/**
|
||||||
|
* 入网详情
|
||||||
|
*/
|
||||||
|
private String iDescription;
|
||||||
|
/**
|
||||||
|
* 实测报告是否上传(0:否 1:是)
|
||||||
|
*/
|
||||||
|
private Integer aIsFileUpload;
|
||||||
|
/**
|
||||||
|
* 实测报告状态,字典ID
|
||||||
|
*/
|
||||||
|
private String aStatus;
|
||||||
|
/**
|
||||||
|
* 实测报告路径
|
||||||
|
*/
|
||||||
|
private String aFilePath;
|
||||||
|
/**
|
||||||
|
* 实测报告上传时间
|
||||||
|
*/
|
||||||
|
private Date aUploadTime;
|
||||||
|
/**
|
||||||
|
* 实测是否超标(0:否 1:是)
|
||||||
|
*/
|
||||||
|
private Integer aIsOverLimit;
|
||||||
|
/**
|
||||||
|
* 实测超标指标
|
||||||
|
*/
|
||||||
|
private String aOverLimitTarget;
|
||||||
|
/**
|
||||||
|
* 实测计划采取措施,字典ID
|
||||||
|
*/
|
||||||
|
private String aPlanStep;
|
||||||
|
/**
|
||||||
|
* 实测详情
|
||||||
|
*/
|
||||||
|
private String aDescription;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
package com.njcn.process.pojo.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 干扰源用户管理表 VO
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @since 2022-11-11 10:11:41
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class RLoadTypeUserManageVO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 390349030891669605L;
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
/**
|
||||||
|
* 单位ID
|
||||||
|
*/
|
||||||
|
private String orgNo;
|
||||||
|
/**
|
||||||
|
* 干扰源类型ID
|
||||||
|
*/
|
||||||
|
private String loadType;
|
||||||
|
/**
|
||||||
|
* 干扰源用户名称
|
||||||
|
*/
|
||||||
|
private String userName;
|
||||||
|
/**
|
||||||
|
* 关联干扰源用户编号ID
|
||||||
|
*/
|
||||||
|
private String relationUserId;
|
||||||
|
/**
|
||||||
|
* 建档时间
|
||||||
|
*/
|
||||||
|
private Date recordTime;
|
||||||
|
/**
|
||||||
|
* 送电日期(并网日期)
|
||||||
|
*/
|
||||||
|
private Date powerTransmissionDate;
|
||||||
|
/**
|
||||||
|
* 合同容量(总装机容量)
|
||||||
|
*/
|
||||||
|
private Float userArgeementCapacity;
|
||||||
|
/**
|
||||||
|
* 用户类型,字典表
|
||||||
|
*/
|
||||||
|
private String userLoadType;
|
||||||
|
/**
|
||||||
|
* 入网报告状态,字典ID
|
||||||
|
*/
|
||||||
|
private String iStatus;
|
||||||
|
/**
|
||||||
|
* 入网报告路径
|
||||||
|
*/
|
||||||
|
private String iFilePath;
|
||||||
|
/**
|
||||||
|
* 入网报告上传时间
|
||||||
|
*/
|
||||||
|
private Date iUploadTime;
|
||||||
|
/**
|
||||||
|
* 入网是否超标(0:否 1:是)
|
||||||
|
*/
|
||||||
|
private Integer iIsOverLimit;
|
||||||
|
/**
|
||||||
|
* 入网超标指标
|
||||||
|
*/
|
||||||
|
private String iOverLimitTarget;
|
||||||
|
/**
|
||||||
|
* 入网计划采取措施,字典ID
|
||||||
|
*/
|
||||||
|
private String iPlanStep;
|
||||||
|
/**
|
||||||
|
* 入网详情
|
||||||
|
*/
|
||||||
|
private String iDescription;
|
||||||
|
/**
|
||||||
|
* 实测报告是否上传(0:否 1:是)
|
||||||
|
*/
|
||||||
|
private Integer aIsFileUpload;
|
||||||
|
/**
|
||||||
|
* 实测报告状态,字典ID
|
||||||
|
*/
|
||||||
|
private String aStatus;
|
||||||
|
/**
|
||||||
|
* 实测报告路径
|
||||||
|
*/
|
||||||
|
private String aFilePath;
|
||||||
|
/**
|
||||||
|
* 实测报告上传时间
|
||||||
|
*/
|
||||||
|
private Date aUploadTime;
|
||||||
|
/**
|
||||||
|
* 实测是否超标(0:否 1:是)
|
||||||
|
*/
|
||||||
|
private Integer aIsOverLimit;
|
||||||
|
/**
|
||||||
|
* 实测超标指标
|
||||||
|
*/
|
||||||
|
private String aOverLimitTarget;
|
||||||
|
/**
|
||||||
|
* 实测计划采取措施,字典ID
|
||||||
|
*/
|
||||||
|
private String aPlanStep;
|
||||||
|
/**
|
||||||
|
* 实测详情
|
||||||
|
*/
|
||||||
|
private String aDescription;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package com.njcn.process.utils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据公共工具类
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @createTime 2022/10/14 - 10:07
|
||||||
|
*/
|
||||||
|
public class PublicDataUtils {
|
||||||
|
/**
|
||||||
|
* 功能:下划线命名转驼峰命名
|
||||||
|
* 将下划线替换为空格,将字符串根据空格分割成数组,再将每个单词首字母大写
|
||||||
|
* @param s
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String underCamel(String s)
|
||||||
|
{
|
||||||
|
String separator = "_";
|
||||||
|
String under="";
|
||||||
|
s = s.toLowerCase().replace(separator, " ");
|
||||||
|
String sarr[]=s.split(" ");
|
||||||
|
for(int i=0;i<sarr.length;i++)
|
||||||
|
{
|
||||||
|
String w=sarr[i].substring(0,1).toUpperCase()+sarr[i].substring(1);
|
||||||
|
under +=w;
|
||||||
|
}
|
||||||
|
return under;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.njcn</groupId>
|
<groupId>com.njcn</groupId>
|
||||||
<artifactId>prepare-api</artifactId>
|
<artifactId>process-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -61,6 +61,37 @@
|
|||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!--调用minio服务器-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.njcn</groupId>
|
||||||
|
<artifactId>common-minio</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>me.tongfei</groupId>
|
||||||
|
<artifactId>progressbar</artifactId>
|
||||||
|
<version>0.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>okhttp</artifactId>
|
||||||
|
<version>4.8.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.minio</groupId>
|
||||||
|
<artifactId>minio</artifactId>
|
||||||
|
<version>8.2.1</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>okhttp</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package com.njcn.process.controller;
|
||||||
|
|
||||||
|
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||||
|
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||||
|
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||||
|
import com.njcn.common.pojo.response.HttpResult;
|
||||||
|
import com.njcn.common.utils.HttpResultUtil;
|
||||||
|
import com.njcn.process.pojo.vo.RLoadTypeUserManageVO;
|
||||||
|
import com.njcn.process.service.LoadTypeUserManageService;
|
||||||
|
import com.njcn.web.controller.BaseController;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 干扰源用户管理
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @createTime 2022/11/11 - 9:20
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/loadTypeUserManage")
|
||||||
|
@Api(tags = "干扰源用户管理")
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class LoadTypeUserManageController extends BaseController {
|
||||||
|
|
||||||
|
private final LoadTypeUserManageService loadTypeUserManageService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
* @author qijian
|
||||||
|
* @date 2022/11/11
|
||||||
|
*/
|
||||||
|
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||||
|
@GetMapping("/getAll")
|
||||||
|
@ApiOperation("查询所有数据")
|
||||||
|
public HttpResult<List<RLoadTypeUserManageVO>> getAll(){
|
||||||
|
String methodDescribe = getMethodDescribe("getAll");
|
||||||
|
List<RLoadTypeUserManageVO> list = loadTypeUserManageService.getAll();
|
||||||
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package com.njcn.process.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.njcn.process.pojo.po.RLoadTypeUserManage;
|
||||||
|
import com.njcn.process.pojo.vo.RLoadTypeUserManageVO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 干扰源用户管理Mapper
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @createTime 2022/11/11 - 9:24
|
||||||
|
*/
|
||||||
|
public interface LoadTypeUserManageMapper extends BaseMapper<RLoadTypeUserManage> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询所有数据
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
List<RLoadTypeUserManageVO> getAll();
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?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.njcn.process.mapper.LoadTypeUserManageMapper">
|
||||||
|
|
||||||
|
<select id="getAll" resultType="RLoadTypeUserManageVO">
|
||||||
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
r_load_type_user_manage
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.njcn.process.service;
|
||||||
|
|
||||||
|
import com.njcn.process.pojo.vo.RLoadTypeUserManageVO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 干扰源用户管理
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @createTime 2022/11/11 - 9:20
|
||||||
|
*/
|
||||||
|
public interface LoadTypeUserManageService {
|
||||||
|
|
||||||
|
List<RLoadTypeUserManageVO> getAll();
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package com.njcn.process.service.impl;
|
||||||
|
|
||||||
|
import com.njcn.process.mapper.LoadTypeUserManageMapper;
|
||||||
|
import com.njcn.process.pojo.vo.RLoadTypeUserManageVO;
|
||||||
|
import com.njcn.process.service.LoadTypeUserManageService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 干扰源用户管理
|
||||||
|
*
|
||||||
|
* @author qijian
|
||||||
|
* @version 1.0.0
|
||||||
|
* @createTime 2022/11/11 - 9:20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Slf4j
|
||||||
|
public class LoadTypeUserManageServiceImpl implements LoadTypeUserManageService {
|
||||||
|
|
||||||
|
private final LoadTypeUserManageMapper loadTypeUserManageMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RLoadTypeUserManageVO> getAll() {
|
||||||
|
return loadTypeUserManageMapper.getAll();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user