From 322aaa6fa1bbfb406263d93241723797b98420f7 Mon Sep 17 00:00:00 2001 From: 张磊磊 <201175954@qq.com> Date: 星期二, 14 十一月 2023 14:30:35 +0800 Subject: [PATCH] 搅拌站(进站检测)合格不合格 --- hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml | 75 +++++++++++++++++++++++++++++++++++++ 1 files changed, 75 insertions(+), 0 deletions(-) diff --git a/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml b/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml index a406e28..a7351d2 100644 --- a/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml +++ b/hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml @@ -163,4 +163,79 @@ 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