From e2c35c50925cf18da69f947d43cba4004384dd3c Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 30 Jun 2025 16:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89supermarket=5Fmaterial?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/cook/CookMaterialMapper.xml | 34 +++++++++++++------ .../mapper/cook/CookMaterialTypeMapper.xml | 32 ++++++++++++----- 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialMapper.xml index 7d29d37..5ef5caa 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialMapper.xml @@ -92,25 +92,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialTypeMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialTypeMapper.xml index 21f0151..845137e 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialTypeMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/cook/CookMaterialTypeMapper.xml @@ -17,7 +17,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select material_type_id, material_type_name, parent_id, level, area_id, goods_type, create_by, create_time, update_by, update_time from cook_material_type + select material_type_id, material_type_name, parent_id, level, area_id, goods_type, + create_by, create_time, update_by, update_time + from cook_material_type - where goods_type = 1 and material_type_id = #{materialTypeId} + + material_type_id = #{materialTypeId} + and goods_type = #{goodsType} +