浏览代码

完成未销售商品查询

xwh 4 年之前
父节点
当前提交
2abd0972b6

+ 2 - 1
kmall-admin/src/main/resources/mybatis/mapper/GoodsDao.xml

@@ -602,7 +602,8 @@
             <if test="createTime != null">`create_time` = #{createTime},</if>
             <if test="moderSn != null">`moder_sn` = #{moderSn},</if>
             <if test="modTime != null">`mod_time` = #{modTime},</if>
-            <if test="tstm != null">`tstm` = #{tstm}</if>
+            <if test="tstm != null">`tstm` = #{tstm},</if>
+            <if test="lastSaleTime != null">`last_sale_time` = #{lastSaleTime}</if>
         </set>
         where id = #{id}
     </update>

+ 5 - 1
kmall-admin/src/main/resources/mybatis/mapper/ProductStoreRelaDao.xml

@@ -48,6 +48,7 @@
         <result column="batch_expire_date" property="batchExpireDate" />
         <result column="bottom_line_price" property="bottomLinePrice" />
         <result column="park_stock" property="parkStock" />
+        <result column="last_sale_time" property="lastSaleTime" jdbcType="TIMESTAMP"/>
     </resultMap>
 
     <select id="queryObject" resultType="com.kmall.admin.entity.ProductStoreRelaEntity">
@@ -558,7 +559,10 @@
                 park_stock = #{parkStock,jdbcType=VARCHAR},
             </if>
             <if test="bottomLinePrice != null" >
-                bottom_line_price = #{bottomLinePrice,jdbcType=VARCHAR}
+                bottom_line_price = #{bottomLinePrice,jdbcType=VARCHAR},
+            </if>
+            <if test="lastSaleTime != null" >
+                last_sale_time = #{lastSaleTime,jdbcType=TIMESTAMP}
             </if>
         </set>
         where id = #{id}