代码合并
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.process.pojo.param.LoadTypeUserSearchParam;
|
||||
import com.njcn.process.pojo.po.RLoadTypeUserManage;
|
||||
import com.njcn.process.pojo.vo.RLoadTypeUserManageVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 干扰源用户管理Mapper
|
||||
*
|
||||
* @author qijian
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/11/11 - 9:24
|
||||
*/
|
||||
public interface LoadTypeUserManageMapper extends BaseMapper<RLoadTypeUserManage> {
|
||||
|
||||
/**
|
||||
* 干扰源用户分页查询
|
||||
* @param page 分页参数
|
||||
* @param loadTypeUserSearchParam 入参
|
||||
* @return 结果
|
||||
*/
|
||||
Page<RLoadTypeUserManageVO> getLoadTypeUserPage(IPage<RLoadTypeUserManageVO> page, @Param("loadTypeUserSearchParam") LoadTypeUserSearchParam loadTypeUserSearchParam);
|
||||
|
||||
/**
|
||||
* 干扰源用户分页查询
|
||||
* @param page 分页参数
|
||||
* @param loadTypeUserSearchParam 入参
|
||||
* @return 结果
|
||||
*/
|
||||
Page<RLoadTypeUserManageVO> getLoadTypeRelationPage(IPage<RLoadTypeUserManageVO> page, @Param("loadTypeUserSearchParam") LoadTypeUserSearchParam loadTypeUserSearchParam);
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.njcn.process.pojo.param.SurveyPlanQuestionQueryParm;
|
||||
import com.njcn.process.pojo.po.RGeneralSurveyPlanDetail;
|
||||
import com.njcn.process.pojo.vo.RGeneralSurveyPlanDetailOnQuestionVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2022/11/11 11:28【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface RGeneralSurveyPlanDetailMapper extends MppBaseMapper<RGeneralSurveyPlanDetail> {
|
||||
@Select ({"<script>",
|
||||
"SELECT\n" +
|
||||
"\ta.plan_name as planName,\n" +
|
||||
"\tb.voltage_level as voltageLevel,\n" +
|
||||
"\tb.sub_id as subId,\n" +
|
||||
"\tb.sub_name as subName,\n" +
|
||||
"\tb.busbar_id as busbarId,\n" +
|
||||
"\tb.busbar_name as busbarName, b.measurement_point_id as measurementPointId\n" +
|
||||
"FROM\n" +
|
||||
"\tr_general_survey_plan a\n" +
|
||||
"INNER JOIN r_general_survey_plan_detail b ON a.plan_no = b.plan_no\n" +
|
||||
"WHERE\n" +
|
||||
"\ta.org_no = #{questionQueryParm.orgNo} " +
|
||||
"<when test='questionQueryParm.planName!=null and questionQueryParm.planName!=\"\"'>",
|
||||
"and a.plan_name = #{questionQueryParm.planName}\n" +
|
||||
"</when>",
|
||||
"AND DATE_FORMAT(a.upload_time, '%Y%m') = DATE_FORMAT(#{questionQueryParm.planStartTime}, '%Y%m')",
|
||||
"</script>"})
|
||||
List<RGeneralSurveyPlanDetailOnQuestionVO> querySurveyPlanOnQuestion(@Param("questionQueryParm") SurveyPlanQuestionQueryParm questionQueryParm);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.njcn.process.pojo.po.RGeneralSurveyPlanPO;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2022/11/11 11:24【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface RGeneralSurveyPlanPOMapper extends MppBaseMapper<RGeneralSurveyPlanPO> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.process.pojo.po.RMpElectricQualityProblemFlowDetails;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 电能质量问题流程详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xiaoyao
|
||||
* @since 2022-11-14
|
||||
*/
|
||||
public interface RMpElectricQualityProblemFlowDetailsMapper extends BaseMapper<RMpElectricQualityProblemFlowDetails> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.process.pojo.po.RMpGeneralSurveyOverproofProblem;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 普测超标问题详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xiaoyao
|
||||
* @since 2022-11-14
|
||||
*/
|
||||
public interface RMpGeneralSurveyOverproofProblemMapper extends BaseMapper<RMpGeneralSurveyOverproofProblem> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.process.pojo.po.RMpOnlineMonitorOverproofProblem;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 在线监测超标问题详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xiaoyao
|
||||
* @since 2022-11-14
|
||||
*/
|
||||
public interface RMpOnlineMonitorOverproofProblemMapper extends BaseMapper<RMpOnlineMonitorOverproofProblem> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.process.pojo.po.RMpOperationMonitorAbnormal;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 运维监控异常详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xiaoyao
|
||||
* @since 2022-11-14
|
||||
*/
|
||||
public interface RMpOperationMonitorAbnormalMapper extends BaseMapper<RMpOperationMonitorAbnormal> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.process.pojo.po.RMpUserComplaint;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户投诉详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xiaoyao
|
||||
* @since 2022-11-14
|
||||
*/
|
||||
public interface RMpUserComplaintMapper extends BaseMapper<RMpUserComplaint> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.process.pojo.param.QueryIssuesParam;
|
||||
import com.njcn.process.pojo.po.RStatElectricQualityProblemFlow;
|
||||
import com.njcn.process.pojo.vo.IssuesVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 电能质量问题流程表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author xiaoyao
|
||||
* @since 2022-11-14
|
||||
*/
|
||||
public interface RStatElectricQualityProblemFlowMapper extends BaseMapper<RStatElectricQualityProblemFlow> {
|
||||
|
||||
List<IssuesVO> getIssues(@Param("param") QueryIssuesParam param, @Param("dateBegin") String dateBegin, @Param("dateEnd") String dateEnd);
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?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="getLoadTypeUserPage" resultType="RLoadTypeUserManageVO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
r_load_type_user_manage r
|
||||
where 1=1
|
||||
<if test="loadTypeUserSearchParam.orgNo != null and loadTypeUserSearchParam.orgNo != ''">
|
||||
and r.org_no = #{loadTypeUserSearchParam.orgNo}
|
||||
</if>
|
||||
<if test="loadTypeUserSearchParam.loadType != null and loadTypeUserSearchParam.loadType != ''">
|
||||
and r.load_type = #{loadTypeUserSearchParam.loadType}
|
||||
</if>
|
||||
<if test="loadTypeUserSearchParam.userName != null and loadTypeUserSearchParam.userName != ''">
|
||||
and r.user_name like CONCAT('%', #{loadTypeUserSearchParam.userName}, '%')
|
||||
</if>
|
||||
<if test="loadTypeUserSearchParam.aIsFileUpload != null and loadTypeUserSearchParam.aIsFileUpload != ''">
|
||||
and r.i_is_file_upload = #{loadTypeUserSearchParam.iIsFileUpload}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getLoadTypeRelationPage" resultType="RLoadTypeUserManageVO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
r_load_type_user_manage r
|
||||
where 1=1
|
||||
AND ISNULL( relation_user_id )= 0
|
||||
AND LENGTH(
|
||||
trim( relation_user_id ))> 0
|
||||
<if test="loadTypeUserSearchParam.orgNo != null and loadTypeUserSearchParam.orgNo != ''">
|
||||
and r.org_no = #{loadTypeUserSearchParam.orgNo}
|
||||
</if>
|
||||
<if test="loadTypeUserSearchParam.loadType != null and loadTypeUserSearchParam.loadType != ''">
|
||||
and r.load_type = #{loadTypeUserSearchParam.loadType}
|
||||
</if>
|
||||
<if test="loadTypeUserSearchParam.userName != null and loadTypeUserSearchParam.userName != ''">
|
||||
and r.user_name like CONCAT('%', #{loadTypeUserSearchParam.userName}, '%')
|
||||
</if>
|
||||
<if test="loadTypeUserSearchParam.relationUserName != null and loadTypeUserSearchParam.relationUserName != ''">
|
||||
and r.relation_user_name like CONCAT('%', #{loadTypeUserSearchParam.relationUserName}, '%')
|
||||
</if>
|
||||
<if test="loadTypeUserSearchParam.aIsFileUpload != null and loadTypeUserSearchParam.aIsFileUpload != ''">
|
||||
and r.a_is_file_upload = #{loadTypeUserSearchParam.aIsFileUpload}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?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.RGeneralSurveyPlanDetailMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.process.pojo.po.RGeneralSurveyPlanDetail">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table r_general_survey_plan_detail-->
|
||||
<id column="plan_no" jdbcType="VARCHAR" property="planNo" />
|
||||
<result column="general_survey_start_time" jdbcType="DATE" property="generalSurveyStartTime" />
|
||||
<result column="general_survey_end_time" jdbcType="DATE" property="generalSurveyEndTime" />
|
||||
<result column="general_survey_time" jdbcType="DATE" property="generalSurveyTime" />
|
||||
<result column="general_survey_leader" jdbcType="VARCHAR" property="generalSurveyLeader" />
|
||||
<result column="sub_id" jdbcType="VARCHAR" property="subId" />
|
||||
<result column="sub_name" jdbcType="VARCHAR" property="subName" />
|
||||
<result column="voltage_level" jdbcType="VARCHAR" property="voltageLevel" />
|
||||
<result column="busbar_id" jdbcType="VARCHAR" property="busbarId" />
|
||||
<result column="busbar_name" jdbcType="VARCHAR" property="busbarName" />
|
||||
<result column="measurement_point_id" jdbcType="VARCHAR" property="measurementPointId" />
|
||||
<result column="is_problem" jdbcType="TINYINT" property="isProblem" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
plan_no, general_survey_start_time, general_survey_end_time, general_survey_time,
|
||||
general_survey_leader, sub_id, sub_name, voltage_level, busbar_id, busbar_name, measurement_point_id,
|
||||
is_problem
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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.RGeneralSurveyPlanPOMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.process.pojo.po.RGeneralSurveyPlanPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table r_general_survey_plan-->
|
||||
<id column="org_no" jdbcType="VARCHAR" property="orgNo" />
|
||||
<id column="plan_no" jdbcType="VARCHAR" property="planNo" />
|
||||
<result column="plan_name" jdbcType="VARCHAR" property="planName" />
|
||||
<result column="plan_create_time" jdbcType="DATE" property="planCreateTime" />
|
||||
<result column="plan_start_time" jdbcType="DATE" property="planStartTime" />
|
||||
<result column="plan_end_time" jdbcType="DATE" property="planEndTime" />
|
||||
<result column="plan_complate_time" jdbcType="DATE" property="planComplateTime" />
|
||||
<result column="leader" jdbcType="VARCHAR" property="leader" />
|
||||
<result column="status" jdbcType="TINYINT" property="status" />
|
||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||
<result column="is_file_upload" jdbcType="TINYINT" property="isFileUpload" />
|
||||
<result column="file_count" jdbcType="INTEGER" property="fileCount" />
|
||||
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
||||
<result column="upload_time" jdbcType="DATE" property="uploadTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
org_no, plan_no, plan_name, plan_create_time, plan_start_time, plan_end_time, plan_complate_time,
|
||||
leader, `status`, description, is_file_upload, file_count, file_path, upload_time
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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.RMpElectricQualityProblemFlowDetailsMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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.RMpGeneralSurveyOverproofProblemMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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.RMpOnlineMonitorOverproofProblemMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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.RMpOperationMonitorAbnormalMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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.RMpUserComplaintMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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.RStatElectricQualityProblemFlowMapper">
|
||||
|
||||
<select id="getIssues" resultType="com.njcn.process.pojo.vo.IssuesVO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
r_stat_electric_quality_problem_flow
|
||||
WHERE
|
||||
data_date between #{dateBegin} AND #{dateEnd}
|
||||
<if test="param.orgNo !=null and param.orgNo !=''">
|
||||
AND org_no = #{param.orgNo}
|
||||
</if>
|
||||
<if test="param.problemSources !=null and param.problemSources !=''">
|
||||
AND problem_sources = #{param.problemSources}
|
||||
</if>
|
||||
<if test="param.reportProcess !=null and param.reportProcess !=''">
|
||||
AND report_process = #{param.reportProcess}
|
||||
</if>
|
||||
<if test="param.reportProcessStatus !=null and param.reportProcessStatus !=''">
|
||||
AND report_process_status = #{param.reportProcessStatus}
|
||||
</if>
|
||||
<if test="param.problemName !=null and param.problemName !=''">
|
||||
AND problem_name like CONCAT(CONCAT('%', #{param.problemName}), '%')
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user