|  | @@ -36,6 +36,8 @@
 | 
	
		
			
				|  |  |          <result column="supply_channel_" property="supplyChannel" />
 | 
	
		
			
				|  |  |          <result column="stock_type_" property="stockType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  |          <result column="client_show_" property="clientShow" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  | +        <result column="educational_show_" property="educationalShow" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  | +        <result column="music_group_show_" property="musicGroupShow" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  |          <result column="stock_warning_" property="stockWarning" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  |      </resultMap>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -59,25 +61,28 @@
 | 
	
		
			
				|  |  |          INSERT INTO goods
 | 
	
		
			
				|  |  |          (goods_category_id_,sn_,name_,brand_,specification_,image_,stock_count_,tax_stock_count_,sell_count_,market_price_,
 | 
	
		
			
				|  |  |          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_,client_show_,stock_warning_,stock_type_)
 | 
	
		
			
				|  |  | +        complement_goods_id_list_,update_time_,create_time_,type_,agree_cost_price_,client_show_,educational_show_,music_group_show_,stock_warning_,stock_type_)
 | 
	
		
			
				|  |  |          VALUES(#{goodsCategoryId},#{sn},#{name},#{brand},#{specification},#{image},#{stockCount},#{taxStockCount},#{sellCount},#{marketPrice},
 | 
	
		
			
				|  |  |          #{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},
 | 
	
		
			
				|  |  |          #{memo},#{publishTime},#{complementGoodsIdList},now(),now(),#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{agreeCostPrice},
 | 
	
		
			
				|  |  | -        #{clientShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +        #{clientShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{educationalShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +        #{musicGroupShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |          #{stockType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
 | 
	
		
			
				|  |  |      </insert>
 | 
	
		
			
				|  |  |      <insert id="batchInsert" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
 | 
	
		
			
				|  |  |          INSERT INTO goods
 | 
	
		
			
				|  |  |          (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_,
 | 
	
		
			
				|  |  | -        stock_count_,tax_stock_count_,client_show_,stock_warning_,stock_type_)
 | 
	
		
			
				|  |  | +        stock_count_,tax_stock_count_,client_show_,educational_show_,music_group_show_,stock_warning_,stock_type_)
 | 
	
		
			
				|  |  |          VALUES
 | 
	
		
			
				|  |  |          <foreach collection="list" separator="," item="goods">
 | 
	
		
			
				|  |  |              (#{goods.goodsCategoryId},#{goods.name},#{goods.brand},#{goods.specification},#{goods.image},#{goods.marketPrice},
 | 
	
		
			
				|  |  |              #{goods.discountPrice},#{goods.groupPurchasePrice},#{goods.brief},#{goods.desc},now(),now(),
 | 
	
		
			
				|  |  |              #{goods.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{goods.agreeCostPrice},#{goods.sn},
 | 
	
		
			
				|  |  |              #{goods.stockCount},#{goods.taxStockCount},#{goods.clientShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +            #{goods.educationalShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +        	#{goods.musicGroupShow,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})
 | 
	
		
			
				|  |  |          </foreach>
 | 
	
	
		
			
				|  | @@ -155,6 +160,12 @@
 | 
	
		
			
				|  |  |              <if test="clientShow != null">
 | 
	
		
			
				|  |  |                  client_show_ = #{clientShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            <if test="educationalShow != null">
 | 
	
		
			
				|  |  | +                educational_show_ = #{educationalShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  | +            <if test="musicGroupShow != null">
 | 
	
		
			
				|  |  | +                music_group_show_ = #{musicGroupShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="stockWarning != null">
 | 
	
		
			
				|  |  |                  stock_warning_ = #{stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |              </if>
 | 
	
	
		
			
				|  | @@ -239,6 +250,12 @@
 | 
	
		
			
				|  |  |                  <if test="goods.clientShow != null">
 | 
	
		
			
				|  |  |                      client_show_ = #{goods.clientShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |                  </if>
 | 
	
		
			
				|  |  | +	            <if test="goods.educationalShow != null">
 | 
	
		
			
				|  |  | +	                educational_show_ = #{goods.educationalShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +	            </if>
 | 
	
		
			
				|  |  | +	            <if test="goods.musicGroupShow != null">
 | 
	
		
			
				|  |  | +	                music_group_show_ = #{goods.musicGroupShow,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +	            </if>
 | 
	
		
			
				|  |  |                  <if test="goods.stockWarning != null">
 | 
	
		
			
				|  |  |                      stock_warning_ = #{goods.stockWarning,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |                  </if>
 | 
	
	
		
			
				|  | @@ -296,6 +313,12 @@
 | 
	
		
			
				|  |  |              <if test="clientShow!=null">
 | 
	
		
			
				|  |  |                  AND g.client_show_=#{clientShow}
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            <if test="educationalShow!=null">
 | 
	
		
			
				|  |  | +                AND g.educational_show_=#{educationalShow}
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  | +            <if test="musicGroupShow!=null">
 | 
	
		
			
				|  |  | +                AND g.music_group_show_=#{musicGroupShow}
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="search!=null and search!=''">
 | 
	
		
			
				|  |  |                  AND (g.sn_=#{search} OR g.id_=#{search} OR g.name_ LIKE CONCAT('%', #{search}, '%'))
 | 
	
		
			
				|  |  |              </if>
 |