From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期一, 26 五月 2025 15:04:45 +0800
Subject: [PATCH] 修改json类型转换错误

---
 aps-modules/aps-job/src/main/resources/mapper/job/ApsWeldSeamStandardJobMapper.xml |   64 ++++++++++++++++++++++++++++++++
 1 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/aps-modules/aps-job/src/main/resources/mapper/job/ApsWeldSeamStandardJobMapper.xml b/aps-modules/aps-job/src/main/resources/mapper/job/ApsWeldSeamStandardJobMapper.xml
new file mode 100644
index 0000000..d2d2a3e
--- /dev/null
+++ b/aps-modules/aps-job/src/main/resources/mapper/job/ApsWeldSeamStandardJobMapper.xml
@@ -0,0 +1,64 @@
+<?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.aps.job.mapper.ApsWeldSeamStandardJobMapper">
+    
+    <resultMap type="com.aps.job.domain.ApsWeldSeamStandardJob" id="ApsWeldSeamStandardJobResult">
+        <result property="id"    column="id"    />
+        <result property="itemCode"    column="item_code"    />
+        <result property="itemFigure"    column="item_figure"    />
+        <result property="itemFigureVersion"    column="item_figure_version"    />
+        <result property="hupQty"    column="hup_qty"    />
+        <result property="lodQty"    column="lod_qty"    />
+        <result property="type"    column="type"    />
+        <result property="delFlag"    column="del_flag"    />
+    </resultMap>
+
+    <sql id="selectApsWeldSeamStandardJobVo">
+        select id, item_code, item_figure, item_figure_version, hup_qty, lod_qty, type, del_flag from aps_weld_seam_standard_job
+    </sql>
+
+    <select id="selectApsWeldSeamStandardJobList" parameterType="com.aps.job.domain.ApsWeldSeamStandardJob" resultMap="ApsWeldSeamStandardJobResult">
+        <include refid="selectApsWeldSeamStandardJobVo"/>
+        <where>  
+            <if test="itemCode != null  and itemCode != ''"> and item_code LIKE '%' || #{itemCode} || '%'</if>
+            <if test="itemFigure != null  and itemFigure != ''"> and item_figure = #{itemFigure}</if>
+            <if test="itemFigureVersion != null  and itemFigureVersion != ''"> and item_figure_version = #{itemFigureVersion}</if>
+            <if test="hupQty != null "> and hup_qty = #{hupQty}</if>
+            <if test="lodQty != null "> and lod_qty = #{lodQty}</if>
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+            and del_flag = 0
+        </where>
+    </select>
+    
+    <delete id="deleteAllApsWeldSeamStandardJob">
+        delete from aps_weld_seam_standard_job
+    </delete>
+    
+    <insert id="batchInsertApsWeldSeamStandardJob" parameterType="java.util.List">
+        insert into aps_weld_seam_standard_job(
+        id,
+        item_code, 
+        item_figure,
+        item_figure_version, 
+        hup_qty, 
+        lod_qty, 
+        type, 
+        del_flag)
+        values
+        <foreach collection="list" item="item" index="index" separator=",">
+        (
+            #{item.id},
+            #{item.itemCode},
+            #{item.itemFigure},
+            #{item.itemFigureVersion},
+            #{item.hupQty},
+            #{item.lodQty},
+            #{item.type},
+            0
+        )
+        </foreach>
+    </insert>
+    
+</mapper> 
\ No newline at end of file

--
Gitblit v1.9.3