From b3b17b231e2f2840332ce6eb96f791865fdec6d5 Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期一, 14 四月 2025 16:38:16 +0800
Subject: [PATCH] 代码优化
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeApproveResultMapper.xml | 127 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 127 insertions(+), 0 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeApproveResultMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeApproveResultMapper.xml
new file mode 100644
index 0000000..a2ae69b
--- /dev/null
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeApproveResultMapper.xml
@@ -0,0 +1,127 @@
+<?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.daoOp.OpeApproveResultMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult">
+ <!--@mbg.generated-->
+ <!--@Table ope_approve_result-->
+ <id column="id" jdbcType="BIGINT" property="id" />
+ <result column="work_order_id" jdbcType="BIGINT" property="workOrderId" />
+ <result column="processing_result_id" jdbcType="BIGINT" property="processingResultId" />
+ <result column="approver_id" jdbcType="BIGINT" property="approverId" />
+ <result column="approve_time" jdbcType="TIMESTAMP" property="approveTime" />
+ <result column="approve_result" jdbcType="TINYINT" property="approveResult" />
+ <result column="deleted" jdbcType="BIGINT" property="deleted" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, work_order_id, processing_result_id, approver_id, approve_time, approve_result,
+ deleted
+ </sql>
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ <!--@mbg.generated-->
+ select
+ <include refid="Base_Column_List" />
+ from ope_approve_result
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ <!--@mbg.generated-->
+ delete from ope_approve_result
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult">
+ <!--@mbg.generated-->
+ insert into ope_approve_result (id, work_order_id, processing_result_id,
+ approver_id, approve_time, approve_result,
+ deleted)
+ values (#{id,jdbcType=BIGINT}, #{workOrderId,jdbcType=BIGINT}, #{processingResultId,jdbcType=BIGINT},
+ #{approverId,jdbcType=BIGINT}, #{approveTime,jdbcType=TIMESTAMP}, #{approveResult,jdbcType=TINYINT},
+ #{deleted,jdbcType=BIGINT})
+ </insert>
+ <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult">
+ <!--@mbg.generated-->
+ insert into ope_approve_result
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
+ <if test="workOrderId != null">
+ work_order_id,
+ </if>
+ <if test="processingResultId != null">
+ processing_result_id,
+ </if>
+ <if test="approverId != null">
+ approver_id,
+ </if>
+ <if test="approveTime != null">
+ approve_time,
+ </if>
+ <if test="approveResult != null">
+ approve_result,
+ </if>
+ <if test="deleted != null">
+ deleted,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="workOrderId != null">
+ #{workOrderId,jdbcType=BIGINT},
+ </if>
+ <if test="processingResultId != null">
+ #{processingResultId,jdbcType=BIGINT},
+ </if>
+ <if test="approverId != null">
+ #{approverId,jdbcType=BIGINT},
+ </if>
+ <if test="approveTime != null">
+ #{approveTime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="approveResult != null">
+ #{approveResult,jdbcType=TINYINT},
+ </if>
+ <if test="deleted != null">
+ #{deleted,jdbcType=BIGINT},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult">
+ <!--@mbg.generated-->
+ update ope_approve_result
+ <set>
+ <if test="workOrderId != null">
+ work_order_id = #{workOrderId,jdbcType=BIGINT},
+ </if>
+ <if test="processingResultId != null">
+ processing_result_id = #{processingResultId,jdbcType=BIGINT},
+ </if>
+ <if test="approverId != null">
+ approver_id = #{approverId,jdbcType=BIGINT},
+ </if>
+ <if test="approveTime != null">
+ approve_time = #{approveTime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="approveResult != null">
+ approve_result = #{approveResult,jdbcType=TINYINT},
+ </if>
+ <if test="deleted != null">
+ deleted = #{deleted,jdbcType=BIGINT},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult">
+ <!--@mbg.generated-->
+ update ope_approve_result
+ set work_order_id = #{workOrderId,jdbcType=BIGINT},
+ processing_result_id = #{processingResultId,jdbcType=BIGINT},
+ approver_id = #{approverId,jdbcType=BIGINT},
+ approve_time = #{approveTime,jdbcType=TIMESTAMP},
+ approve_result = #{approveResult,jdbcType=TINYINT},
+ deleted = #{deleted,jdbcType=BIGINT}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
\ No newline at end of file
--
Gitblit v1.8.0