预处理模块:工单问题生成,主网有效监测时长计算,
过程监督模块:工单模块功能,其他模块的审核
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.njcn.process.pojo.po.RStatElectricQualityProblemLogPO;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/2/22 18:59【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface RStatElectricQualityProblemLogMapper extends MppBaseMapper<RStatElectricQualityProblemLogPO> {
|
||||
}
|
||||
@@ -1,7 +1,12 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.njcn.process.pojo.param.RStatProblemAndWorkOrderParam;
|
||||
import com.njcn.process.pojo.po.RStatWorkOrderDetailPO;
|
||||
import com.njcn.process.pojo.vo.RStatWorkOrderDetailVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -13,4 +18,25 @@ import com.njcn.process.pojo.po.RStatWorkOrderDetailPO;
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface RStatWorkOrderDetailMapper extends MppBaseMapper<RStatWorkOrderDetailPO> {
|
||||
@Select ({"<script>",
|
||||
"SELECT\n" +
|
||||
"\ta.*, b.problem_describe\n" +
|
||||
"FROM\n" +
|
||||
"\tr_stat_work_order_detail a\n" +
|
||||
"INNER JOIN r_stat_distribution_problem b ON a.problem_no = b.problem_no\n" +
|
||||
"WHERE 1=1 \n" +
|
||||
"<when test='temp.problemType!=null and temp.problemType!=\"\"'>",
|
||||
"\t AND a.two_business_type = #{temp.problemType}\n" +
|
||||
"</when>",
|
||||
"<when test='temp.occurTime!=null and temp.occurTime!=\"\"'>",
|
||||
"AND DATE_FORMAT(b.occur_time, '%Y%m%d') = #{temp.occurTime}\n" +
|
||||
"</when>",
|
||||
"<when test='temp.workOrderStatus!=null and temp.workOrderStatus!=\"\"'>",
|
||||
"AND a.work_order_status = #{temp.workOrderStatus}\n" +
|
||||
"</when>",
|
||||
"<when test='temp.problemNo!=null and temp.problemNo!=\"\"'>",
|
||||
"AND a.problem_no = #{temp.problemNo}",
|
||||
"</when>",
|
||||
"</script>"})
|
||||
Page<RStatWorkOrderDetailVO> getPageVo(Page<RStatWorkOrderDetailVO> returnpage,@Param("temp") RStatProblemAndWorkOrderParam rStatProblemAndWorkOrderParam);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?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.RStatElectricQualityProblemLogMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.process.pojo.po.RStatElectricQualityProblemLogPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table r_stat_electric_quality_problem_log-->
|
||||
<id column="power_quality_problem_no" jdbcType="VARCHAR" property="powerQualityProblemNo" />
|
||||
<result column="data_date" jdbcType="TIMESTAMP" property="dataDate" />
|
||||
<result column="checker" jdbcType="VARCHAR" property="checker" />
|
||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||
<result column="report_process" jdbcType="VARCHAR" property="reportProcess" />
|
||||
<result column="report_process_content" jdbcType="VARCHAR" property="reportProcessContent" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
power_quality_problem_no, data_date, checker, description, report_process, report_process_content,
|
||||
`type`
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user