|
@@ -16,7 +16,7 @@
|
|
<result column="specification_" property="specification"/>
|
|
<result column="specification_" property="specification"/>
|
|
<result column="image_" property="image"/>
|
|
<result column="image_" property="image"/>
|
|
<result column="stock_count_" property="stockCount"/>
|
|
<result column="stock_count_" property="stockCount"/>
|
|
- <result column="tax_stock_count_" property="taxStockCount"/>
|
|
|
|
|
|
+<!-- <result column="tax_stock_count_" property="taxStockCount"/>-->
|
|
<result column="sell_count_" property="sellCount"/>
|
|
<result column="sell_count_" property="sellCount"/>
|
|
<result column="market_price_" property="marketPrice"/>
|
|
<result column="market_price_" property="marketPrice"/>
|
|
<result column="discount_price_" property="discountPrice"/>
|
|
<result column="discount_price_" property="discountPrice"/>
|
|
@@ -77,12 +77,12 @@
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.Goods" useGeneratedKeys="true" keyColumn="id"
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.Goods" useGeneratedKeys="true" keyColumn="id"
|
|
keyProperty="id">
|
|
keyProperty="id">
|
|
INSERT INTO goods
|
|
INSERT INTO goods
|
|
- (goods_category_id_,sn_,name_,brand_,specification_,image_,stock_count_,tax_stock_count_,sell_count_,market_price_,
|
|
|
|
|
|
+ (goods_category_id_,sn_,name_,brand_,specification_,image_,stock_count_,sell_count_,market_price_,
|
|
discount_price_,group_purchase_price_,brief_,desc_,is_new_,is_top_,status_,memo_,publish_time_,
|
|
discount_price_,group_purchase_price_,brief_,desc_,is_new_,is_top_,status_,memo_,publish_time_,
|
|
complement_goods_id_list_,update_time_,create_time_,type_,agree_cost_price_,stock_warning_,stock_type_
|
|
complement_goods_id_list_,update_time_,create_time_,type_,agree_cost_price_,stock_warning_,stock_type_
|
|
,student_show_organ_id_,education_show_organ_id_,replacement_show_organ_id_,course_fee_show_organ_id_,
|
|
,student_show_organ_id_,education_show_organ_id_,replacement_show_organ_id_,course_fee_show_organ_id_,
|
|
member_fee_show_organ_id_,free_fee_show_organ_id_,tenant_id_,organ_cost_price_,group_goods_)
|
|
member_fee_show_organ_id_,free_fee_show_organ_id_,tenant_id_,organ_cost_price_,group_goods_)
|
|
- VALUES(#{goodsCategoryId},#{sn},#{name},#{brand},#{specification},#{image},#{stockCount},#{taxStockCount},#{sellCount},#{marketPrice},
|
|
|
|
|
|
+ VALUES(#{goodsCategoryId},#{sn},#{name},#{brand},#{specification},#{image},#{stockCount},#{sellCount},#{marketPrice},
|
|
#{discountPrice},#{groupPurchasePrice},#{brief},#{desc},
|
|
#{discountPrice},#{groupPurchasePrice},#{brief},#{desc},
|
|
#{isNew,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isTop,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{isNew,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{isTop,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{memo},#{publishTime},#{complementGoodsIdList},now(),now(),#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{agreeCostPrice},
|
|
#{memo},#{publishTime},#{complementGoodsIdList},now(),now(),#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{agreeCostPrice},
|
|
@@ -94,7 +94,7 @@
|
|
INSERT INTO goods
|
|
INSERT INTO goods
|
|
(goods_category_id_,name_,brand_,specification_,image_,market_price_,
|
|
(goods_category_id_,name_,brand_,specification_,image_,market_price_,
|
|
discount_price_,group_purchase_price_,brief_,desc_,update_time_,create_time_,type_,agree_cost_price_,sn_,
|
|
discount_price_,group_purchase_price_,brief_,desc_,update_time_,create_time_,type_,agree_cost_price_,sn_,
|
|
- stock_count_,tax_stock_count_,stock_warning_,stock_type_
|
|
|
|
|
|
+ stock_count_,stock_warning_,stock_type_
|
|
,student_show_organ_id_,education_show_organ_id_,replacement_show_organ_id_,course_fee_show_organ_id_,
|
|
,student_show_organ_id_,education_show_organ_id_,replacement_show_organ_id_,course_fee_show_organ_id_,
|
|
member_fee_show_organ_id_,free_fee_show_organ_id_,tenant_id_,organ_cost_price_,group_goods_)
|
|
member_fee_show_organ_id_,free_fee_show_organ_id_,tenant_id_,organ_cost_price_,group_goods_)
|
|
VALUES
|
|
VALUES
|
|
@@ -102,7 +102,7 @@
|
|
(#{goods.goodsCategoryId},#{goods.name},#{goods.brand},#{goods.specification},#{goods.image},#{goods.marketPrice},
|
|
(#{goods.goodsCategoryId},#{goods.name},#{goods.brand},#{goods.specification},#{goods.image},#{goods.marketPrice},
|
|
#{goods.discountPrice},#{goods.groupPurchasePrice},#{goods.brief},#{goods.desc},now(),now(),
|
|
#{goods.discountPrice},#{goods.groupPurchasePrice},#{goods.brief},#{goods.desc},now(),now(),
|
|
#{goods.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{goods.agreeCostPrice},#{goods.sn},
|
|
#{goods.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{goods.agreeCostPrice},#{goods.sn},
|
|
- #{goods.stockCount},#{goods.taxStockCount},
|
|
|
|
|
|
+ #{goods.stockCount},
|
|
#{goods.stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{goods.stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{goods.stockType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{goods.stockType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{goods.studentShowOrganId},#{goods.educationShowOrganId},#{goods.replacementShowOrganId},
|
|
#{goods.studentShowOrganId},#{goods.educationShowOrganId},#{goods.replacementShowOrganId},
|
|
@@ -186,9 +186,6 @@
|
|
<if test="complementGoodsIdList != null">
|
|
<if test="complementGoodsIdList != null">
|
|
complement_goods_id_list_ = #{complementGoodsIdList},
|
|
complement_goods_id_list_ = #{complementGoodsIdList},
|
|
</if>
|
|
</if>
|
|
- <if test="taxStockCount != null">
|
|
|
|
- tax_stock_count_ = #{taxStockCount},
|
|
|
|
- </if>
|
|
|
|
<if test="stockWarning != null">
|
|
<if test="stockWarning != null">
|
|
stock_warning_ = #{stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
stock_warning_ = #{stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
@@ -288,9 +285,6 @@
|
|
<if test="goods.complementGoodsIdList != null">
|
|
<if test="goods.complementGoodsIdList != null">
|
|
complement_goods_id_list_ = #{goods.complementGoodsIdList},
|
|
complement_goods_id_list_ = #{goods.complementGoodsIdList},
|
|
</if>
|
|
</if>
|
|
- <if test="goods.taxStockCount != null">
|
|
|
|
- tax_stock_count_ = #{goods.taxStockCount},
|
|
|
|
- </if>
|
|
|
|
<if test="goods.stockWarning != null">
|
|
<if test="goods.stockWarning != null">
|
|
stock_warning_ = #{goods.stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
stock_warning_ = #{goods.stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
@@ -590,7 +584,7 @@
|
|
<where>
|
|
<where>
|
|
g.status_ != 0
|
|
g.status_ != 0
|
|
AND g.type_ = 'INSTRUMENT'
|
|
AND g.type_ = 'INSTRUMENT'
|
|
- AND gc.del_flag_ = 0 and g.tenant_id_ = #{tenantId}
|
|
|
|
|
|
+ AND g.del_flag_ = 0 and g.tenant_id_ = #{tenantId}
|
|
<if test="organId != null">
|
|
<if test="organId != null">
|
|
AND FIND_IN_SET(#{organId},g.replacement_show_organ_id_)
|
|
AND FIND_IN_SET(#{organId},g.replacement_show_organ_id_)
|
|
</if>
|
|
</if>
|