Kaynağa Gözat

计划维修

guarantee-lsq 2 yıl önce
ebeveyn
işleme
4706182fb4

+ 132 - 0
platform-dao/src/main/resources/mapper/hidden/HiddenDangerMapper.xml

@@ -0,0 +1,132 @@
+<?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.platform.dao.mapper.hidden.HiddenDangerMapper">
+    <sql id="Base_Column_List">
+                             hidden.id,
+                                     hidden.sb_id,
+                                     hidden.position_no,
+                                     hidden.position_id,
+                                     hidden.exists_question,
+                                     hidden.hidden_risk,
+                                     hidden.opition,
+                                     hidden.duty_user,
+                                     hidden.area_user,
+                                     hidden.remark,
+                                     hidden.created_user_id,
+                                     hidden.created_user_name,
+                                     hidden.update_user_id,
+                                     hidden.update_user_name,
+                                     hidden.status,
+                                     hidden.professor_type,
+                                     hidden.check_level,
+                                     hidden.require_time,
+                                     hidden.update_time,
+                                     hidden.created_time
+                        </sql>
+    <sql id="Ref_Column_List">
+                                                                         hidden.sb_id,
+                                     hidden.position_no,
+                                     hidden.position_id,
+                                     hidden.exists_question,
+                                     hidden.hidden_risk,
+                                     hidden.opition,
+                                     hidden.duty_user,
+                                     hidden.area_user,
+                                     hidden.remark,
+                                                                                                                                                                                                                     hidden.status,
+                                     hidden.professor_type,
+                                     hidden.check_level,
+                                     hidden.require_time,
+                                                                                                                </sql>
+    <sql id="List_Condition">
+        <if test="id != null and id != ''">
+            and hidden.id = #{id}
+        </if>
+        <if test="sbId != null and sbId != ''">
+            and hidden.sb_id = #{sbId}
+        </if>
+        <if test="positionNo != null and positionNo != ''">
+            and hidden.position_no = #{positionNo}
+        </if>
+        <if test="positionId != null and positionId != ''">
+            and hidden.position_id = #{positionId}
+        </if>
+        <if test="existsQuestion != null">
+            and hidden.exists_question = #{existsQuestion}
+        </if>
+        <if test="hiddenRisk != null">
+            and hidden.hidden_risk = #{hiddenRisk}
+        </if>
+        <if test="opition != null">
+            and hidden.opition = #{opition}
+        </if>
+        <if test="dutyUser != null and dutyUser != ''">
+            and hidden.duty_user = #{dutyUser}
+        </if>
+        <if test="areaUser != null and areaUser != ''">
+            and hidden.area_user = #{areaUser}
+        </if>
+        <if test="remark != null and remark != ''">
+            and hidden.remark = #{remark}
+        </if>
+        <if test="createdUserId != null and createdUserId != ''">
+            and hidden.created_user_id = #{createdUserId}
+        </if>
+        <if test="createdUserName != null and createdUserName != ''">
+            and hidden.created_user_name = #{createdUserName}
+        </if>
+        <if test="updateUserId != null and updateUserId != ''">
+            and hidden.update_user_id = #{updateUserId}
+        </if>
+        <if test="updateUserName != null and updateUserName != ''">
+            and hidden.update_user_name = #{updateUserName}
+        </if>
+        <if test="status != null">
+            and hidden.status = #{status}
+        </if>
+        <if test="professorType != null">
+            and hidden.professor_type = #{professorType}
+        </if>
+        <if test="checkLevel != null">
+            and hidden.check_level = #{checkLevel}
+        </if>
+        <if test="requireTimeStart != null">
+            and hidden.require_time <![CDATA[>=]]>; #{requireTimeStart}
+        </if>
+        <if test="requireTimeEnd != null">
+            and hidden.require_time <![CDATA[<=]]> #{requireTimeEnd}
+        </if>
+        <if test="requireTime != null">
+            and hidden.require_time = #{requireTime}
+        </if>
+        <if test="updateTimeStart != null">
+            and hidden.update_time <![CDATA[>=]]>; #{updateTimeStart}
+        </if>
+        <if test="updateTimeEnd != null">
+            and hidden.update_time <![CDATA[<=]]> #{updateTimeEnd}
+        </if>
+        <if test="updateTime != null">
+            and hidden.update_time = #{updateTime}
+        </if>
+        <if test="createdTimeStart != null">
+            and hidden.created_time <![CDATA[>=]]>; #{createdTimeStart}
+        </if>
+        <if test="createdTimeEnd != null">
+            and hidden.created_time <![CDATA[<=]]> #{createdTimeEnd}
+        </if>
+        <if test="createdTime != null">
+            and hidden.created_time = #{createdTime}
+        </if>
+        <if test="keyword != null and keyword != ''">
+            and hidden.id like concat(concat('%',#{keyword}),'%')
+        </if>
+    </sql>
+    <select id="selectList" parameterType="com.platform.dao.dto.hidden.HiddenDangerDTO"
+            resultType="com.platform.dao.vo.query.hidden.HiddenDangerVO">
+        select hidden.*
+        from t_hidden_danger as hidden
+        <where>
+            <include refid="List_Condition"/>
+        </where>
+    </select>
+</mapper>