From ecef3df4890be54c1da2a8a4fc1c8c1f50f1c263 Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期一, 07 四月 2025 15:41:47 +0800
Subject: [PATCH] 式样代码管理

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml |  171 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 171 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
new file mode 100644
index 0000000..207ef22
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrIntakeOperateMapper.xml
@@ -0,0 +1,171 @@
+<?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.dy.pipIrrGlobal.daoIr.IrIntakeOperateMapper">
+  <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoIr.IrIntakeOperate">
+    <!--@mbg.generated-->
+    <!--@Table ir_intake_operate-->
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="plan_id" jdbcType="BIGINT" property="planId" />
+    <result column="operate_type" jdbcType="TINYINT" property="operateType" />
+    <result column="command_id" jdbcType="BIGINT" property="commandId" />
+    <result column="intake_id" jdbcType="BIGINT" property="intakeId" />
+    <result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
+    <result column="duration" jdbcType="INTEGER" property="duration" />
+    <result column="command_result" jdbcType="TINYINT" property="commandResult" />
+    <result column="failure_factors" jdbcType="VARCHAR" property="failureFactors" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, plan_id, operate_type, command_id, intake_id, start_time, duration, command_result, 
+    failure_factors
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from ir_intake_operate
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    <!--@mbg.generated-->
+    delete from ir_intake_operate
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoIr.IrIntakeOperate">
+    <!--@mbg.generated-->
+    insert into ir_intake_operate (id, plan_id, operate_type, 
+      command_id, intake_id, start_time, 
+      duration, command_result, failure_factors
+      )
+    values (#{id,jdbcType=BIGINT}, #{planId,jdbcType=BIGINT}, #{operateType,jdbcType=TINYINT}, 
+      #{commandId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, 
+      #{duration,jdbcType=INTEGER}, #{commandResult,jdbcType=TINYINT}, #{failureFactors,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoIr.IrIntakeOperate">
+    <!--@mbg.generated-->
+    insert into ir_intake_operate
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="planId != null">
+        plan_id,
+      </if>
+      <if test="operateType != null">
+        operate_type,
+      </if>
+      <if test="commandId != null">
+        command_id,
+      </if>
+      <if test="intakeId != null">
+        intake_id,
+      </if>
+      <if test="startTime != null">
+        start_time,
+      </if>
+      <if test="duration != null">
+        duration,
+      </if>
+      <if test="commandResult != null">
+        command_result,
+      </if>
+      <if test="failureFactors != null">
+        failure_factors,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="planId != null">
+        #{planId,jdbcType=BIGINT},
+      </if>
+      <if test="operateType != null">
+        #{operateType,jdbcType=TINYINT},
+      </if>
+      <if test="commandId != null">
+        #{commandId,jdbcType=BIGINT},
+      </if>
+      <if test="intakeId != null">
+        #{intakeId,jdbcType=BIGINT},
+      </if>
+      <if test="startTime != null">
+        #{startTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="duration != null">
+        #{duration,jdbcType=INTEGER},
+      </if>
+      <if test="commandResult != null">
+        #{commandResult,jdbcType=TINYINT},
+      </if>
+      <if test="failureFactors != null">
+        #{failureFactors,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoIr.IrIntakeOperate">
+    <!--@mbg.generated-->
+    update ir_intake_operate
+    <set>
+      <if test="planId != null">
+        plan_id = #{planId,jdbcType=BIGINT},
+      </if>
+      <if test="operateType != null">
+        operate_type = #{operateType,jdbcType=TINYINT},
+      </if>
+      <if test="commandId != null">
+        command_id = #{commandId,jdbcType=BIGINT},
+      </if>
+      <if test="intakeId != null">
+        intake_id = #{intakeId,jdbcType=BIGINT},
+      </if>
+      <if test="startTime != null">
+        start_time = #{startTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="duration != null">
+        duration = #{duration,jdbcType=INTEGER},
+      </if>
+      <if test="commandResult != null">
+        command_result = #{commandResult,jdbcType=TINYINT},
+      </if>
+      <if test="failureFactors != null">
+        failure_factors = #{failureFactors,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoIr.IrIntakeOperate">
+    <!--@mbg.generated-->
+    update ir_intake_operate
+    set plan_id = #{planId,jdbcType=BIGINT},
+      operate_type = #{operateType,jdbcType=TINYINT},
+      command_id = #{commandId,jdbcType=BIGINT},
+      intake_id = #{intakeId,jdbcType=BIGINT},
+      start_time = #{startTime,jdbcType=TIMESTAMP},
+      duration = #{duration,jdbcType=INTEGER},
+      command_result = #{commandResult,jdbcType=TINYINT},
+      failure_factors = #{failureFactors,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+
+  <!--鏍规嵁鍛戒护ID鏇存柊鍙栨按鍙f搷浣滆褰�-->
+  <update id="updateByCommandId" >
+    update ir_intake_operate
+    set command_result = #{commandResult}, failure_factors = #{failureFactors}
+    where command_id = #{commandId}
+  </update>
+
+  <!--鏍规嵁璁″垝ID鑾峰彇寰呯粓姝㈢殑鍙栨按鍙D锛堝凡鍙戝竷寮�鍙戝懡浠わ紝鏃犺鏄惁鎴愬姛锛�-->
+  <select id="getToTerminateIntakeIds" resultType="java.lang.Long">
+    SELECT
+      intake_id AS intakeId
+    FROM ir_intake_operate
+    WHERE operate_type = 1 AND plan_id = #{planId}
+  </select>
+
+  <!--鏍规嵁璁″垝ID鑾峰彇寰呯粓姝㈢殑鍛戒护ID-->
+  <select id="getTerminateCommandIds" resultType="java.lang.Long">
+    SELECT command_id AS commandId FROM ir_intake_operate WHERE operate_type = 1 AND plan_id = #{planId}
+  </select>
+</mapper>
\ No newline at end of file

--
Gitblit v1.8.0