From e23c8975e6bb0934cb5db46a94d0f83c9739d9ab Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Sun, 20 Mar 2022 16:33:17 +0800 Subject: [PATCH] 重构:套餐项目 --- zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml index 1277ab1..06992bf 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml @@ -3,7 +3,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.matrix.system.hive.dao.ShoppingGoodsDao"> - <cache readOnly="true"></cache> + <resultMap type="ShoppingGoods" id="ShoppingGoodsMap"> <id property="id" column="id" /> @@ -308,8 +308,8 @@ invalid_time, pay_methods, is_infinite, - achieve_rule_id - + achieve_rule_id, + is_cooperate ) VALUES ( #{id}, @@ -371,8 +371,8 @@ #{invalidTime}, #{payMethods}, #{isInfinite}, - #{achieveRuleId} - + #{achieveRuleId}, + #{isCooperate} ) </insert> @@ -429,7 +429,7 @@ <if test="isPresent != null and isPresent !='' "> is_present = #{isPresent}, </if> - <if test="isOnce != null and isOnce !='' "> + <if test="isOnce != null "> is_once = #{isOnce}, </if> <if test="salePlatform != null and salePlatform !='' "> @@ -447,13 +447,13 @@ </if> <if - test="(carMaxSaleCount != null and carMaxSaleCount !='') or carMaxSaleCount==0"> + test="carMaxSaleCount != null"> car_max_sale_count = #{carMaxSaleCount}, </if> <if test="carIsAll != null and carIsAll !='' "> car_is_all = #{carIsAll}, </if> - <if test="(carUseCount != null and carUseCount !='') or carUseCount==0 "> + <if test="carUseCount != null "> car_use_count = #{carUseCount}, </if> <if test="isVipCar != null and isVipCar !='' "> -- Gitblit v1.9.1