From f8805dcb9cbfda1182761d3c1c9e345f53db3452 Mon Sep 17 00:00:00 2001
From: 叶松 <2217086471@qq.com>
Date: 星期四, 16 十一月 2023 09:17:24 +0800
Subject: [PATCH] 料仓搅拌站大屏书写
---
hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml | 93 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 92 insertions(+), 1 deletions(-)
diff --git a/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml b/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml
index 9ac50f0..a7351d2 100644
--- a/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml
+++ b/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml
@@ -146,5 +146,96 @@
is_use=2
where material_release_id=#{materialReleaseId}
</update>
-
+ <select id="pieceList" resultType="com.thhy.materials.modules.biz.concret.entity.dto.PieceDto">
+ select by_id as byId from t_piece
+ where 1=1
+ <if test="byId!=null and byId!='' ">
+ and by_id=#{byId}
+ </if>
+ ORDER BY by_id desc
+ </select>
+ <select id="materialRew" resultType="com.thhy.materials.modules.biz.concret.entity.TRawMaterial">
+ select Storage as storage,
+ Material as material,
+ RecAmnt as recamnt,
+ PlanAmnt as planamnt,
+ FactAmnt as factamnt
+ from t_raw_material
+ where Piece=#{byId}
+ </select>
+ <insert id="mixingInsert" >
+ insert into t_mixing
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="mixingId != null">
+ mixing_id,
+ </if>
+ <if test="material != null">
+ material,
+ </if>
+ <if test="spec != null">
+ spec,
+ </if>
+ <if test="producer != null">
+ producer,
+ </if>
+ <if test="stove != null">
+ stove,
+ </if>
+ <if test="inNum != null">
+ in_num,
+ </if>
+ <if test="inDate != null">
+ in_date,
+ </if>
+ <if test="inspectState != null">
+ inspect_state,
+ </if>
+ <if test="reportNumber != null">
+ report_number,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="mixingId != null">
+ #{mixingId,jdbcType=VARCHAR},
+ </if>
+ <if test="material != null">
+ #{material,jdbcType=VARCHAR},
+ </if>
+ <if test="spec != null">
+ #{spec,jdbcType=VARCHAR},
+ </if>
+ <if test="producer != null">
+ #{producer,jdbcType=VARCHAR},
+ </if>
+ <if test="stove != null">
+ #{stove,jdbcType=VARCHAR},
+ </if>
+ <if test="inNum != null">
+ #{inNum,jdbcType=VARCHAR},
+ </if>
+ <if test="inDate != null">
+ #{inDate,jdbcType=VARCHAR},
+ </if>
+ <if test="inspectState != null">
+ #{inspectState,jdbcType=INTEGER},
+ </if>
+ <if test="reportNumber != null">
+ #{reportNumber,jdbcType=VARCHAR},
+ </if>
+ </trim>
+ </insert>
+ <select id="mixingList" resultType="com.thhy.materials.modules.biz.concret.entity.TMixing">
+ select
+ mixing_id as mixingId,
+ material as material,
+ spec as spec,
+ producer as producer,
+ stove as stove,
+ in_num as inNum,
+ in_date as inDate,
+ inspect_state as inspectState,
+ report_number as reportNumber
+ from t_mixing
+ order by in_date desc
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3