From 61113ed8058b778fff59591ce9b770c42a4d0030 Mon Sep 17 00:00:00 2001 From: ll <1079863556@qq.com> Date: Mon, 21 Jul 2025 15:54:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=B2=9C=E5=A5=B6=E6=A3=80=E9=AA=8C=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dairyProducts/NpFreshMilkInspMapper.xml | 98 +++++++++---------- .../dairyProducts/NpYogurtInspMapper.xml | 10 +- 2 files changed, 56 insertions(+), 52 deletions(-) diff --git a/zhyc-module/src/main/resources/mapper/dairyProducts/NpFreshMilkInspMapper.xml b/zhyc-module/src/main/resources/mapper/dairyProducts/NpFreshMilkInspMapper.xml index f807312..fcbb01c 100644 --- a/zhyc-module/src/main/resources/mapper/dairyProducts/NpFreshMilkInspMapper.xml +++ b/zhyc-module/src/main/resources/mapper/dairyProducts/NpFreshMilkInspMapper.xml @@ -1,62 +1,61 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - select id, source, datetime, fat, protein, non_fat, acidity, bacterial_colony_1, bacterial_colony_2, bacterial_colony_3, bacterial_colony_4, bacterial_colony_5, coli, lactoferrin, ig, commnet, create_by, create_time from np_fresh_milk_insp + SELECT + id, source, datetime, fat, protein, non_fat, acidity, + bacterial_colony_1, bacterial_colony_2, bacterial_colony_3, + bacterial_colony_4, bacterial_colony_5, coli, lactoferrin, + ig, commnet, create_by, create_time + FROM np_fresh_milk_insp + - + + + - insert into np_fresh_milk_insp + INSERT INTO np_fresh_milk_insp source, datetime, @@ -75,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" commnet, create_by, create_time, - + #{source}, #{datetime}, @@ -94,11 +93,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{commnet}, #{createBy}, #{createTime}, - + + - update np_fresh_milk_insp + UPDATE np_fresh_milk_insp source = #{source}, datetime = #{datetime}, @@ -115,18 +115,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" lactoferrin = #{lactoferrin}, ig = #{ig}, commnet = #{commnet}, - create_by = #{createBy}, - create_time = #{createTime}, - where id = #{id} + WHERE id = #{id} + - delete from np_fresh_milk_insp where id = #{id} + DELETE FROM np_fresh_milk_insp WHERE id = #{id} + - delete from np_fresh_milk_insp where id in + DELETE FROM np_fresh_milk_insp WHERE id IN #{id} diff --git a/zhyc-module/src/main/resources/mapper/dairyProducts/NpYogurtInspMapper.xml b/zhyc-module/src/main/resources/mapper/dairyProducts/NpYogurtInspMapper.xml index c229608..1dcfa9f 100644 --- a/zhyc-module/src/main/resources/mapper/dairyProducts/NpYogurtInspMapper.xml +++ b/zhyc-module/src/main/resources/mapper/dairyProducts/NpYogurtInspMapper.xml @@ -26,7 +26,11 @@ - select id, source, datetime, fat, protein, non_fat, acidity, bacterial_colony_1, bacterial_clony_2, bacterial_clony_3, bacterial_clony_4, bacterial_clony_5, yeast, mould, lacto, comment, create_by, create_time from np_yogurt_insp + select id, source, datetime, fat, protein, non_fat, + acidity, bacterial_colony_1, bacterial_clony_2, + bacterial_clony_3, bacterial_clony_4, bacterial_clony_5, + yeast, mould, lacto, comment, create_by, create_time + from np_yogurt_insp - +