Ver Fonte

完成未销售商品查询

xwh há 4 anos atrás
pai
commit
4e1b10f964

+ 20 - 0
kmall-admin/src/main/java/com/kmall/admin/controller/GoodsController.java

@@ -57,6 +57,16 @@ public class GoodsController {
     public R list(@RequestParam Map<String, Object> params) {
         ParamUtils.setQueryPowerByRoleType(params, "storeKey", "merchSn", "thirdPartyMerchCode");
         ParamUtils.setName(params, "name");
+        String lastSaleTime = (String) params.get("lastSaleTime");
+        if(org.apache.commons.lang.StringUtils.isNotEmpty(lastSaleTime)) {
+            try {
+                lastSaleTime = new String(lastSaleTime.getBytes("iso-8859-1"), "utf-8");
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+            lastSaleTime = DateUtils.getDate(lastSaleTime);
+            params.put("lastSaleTime", lastSaleTime + " 00:00:00");
+        }
         //查询列表数据
         Query query = new Query(params);
 
@@ -355,6 +365,16 @@ public class GoodsController {
     public R export(@RequestParam Map<String, Object> params, HttpServletResponse response, HttpServletRequest request) {
         ParamUtils.setQueryPowerByRoleType(params, "storeId", "merchSn", "thirdPartyMerchCode");
         params.put("isDelete", 0);
+        String lastSaleTime = (String) params.get("lastSaleTime");
+        if(org.apache.commons.lang.StringUtils.isNotEmpty(lastSaleTime)) {
+            try {
+                lastSaleTime = new String(lastSaleTime.getBytes("iso-8859-1"), "utf-8");
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+            lastSaleTime = DateUtils.getDate(lastSaleTime);
+            params.put("lastSaleTime", lastSaleTime + " 00:00:00");
+        }
         // 根据条件查询出列表
         List<GoodsEntity> goodsList = goodsService.queryExportList(params);
 

+ 20 - 0
kmall-admin/src/main/java/com/kmall/admin/controller/ProductStoreRelaController.java

@@ -50,6 +50,16 @@ public class ProductStoreRelaController {
     public R list(@RequestParam Map<String, Object> params) {
         ParamUtils.setQueryPowerByRoleType(params, "storeId", "merchSn", "thirdPartyMerchCode");
         ParamUtils.setName(params, "goodsName");
+        String lastSaleTime = (String) params.get("lastSaleTime");
+        if(org.apache.commons.lang.StringUtils.isNotEmpty(lastSaleTime)) {
+            try {
+                lastSaleTime = new String(lastSaleTime.getBytes("iso-8859-1"), "utf-8");
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+            lastSaleTime = DateUtils.getDate(lastSaleTime);
+            params.put("lastSaleTime", lastSaleTime + " 00:00:00");
+        }
         //查询列表数据
         Query query = new Query(params);
 
@@ -297,6 +307,16 @@ public class ProductStoreRelaController {
     public R export(@RequestParam Map<String, Object> params, HttpServletResponse response, HttpServletRequest request) {
         ParamUtils.setQueryPowerByRoleType(params, "storeId", "merchSn", "thirdPartyMerchCode");
         params.put("isDelete", 0);
+        String lastSaleTime = (String) params.get("lastSaleTime");
+        if(org.apache.commons.lang.StringUtils.isNotEmpty(lastSaleTime)) {
+            try {
+                lastSaleTime = new String(lastSaleTime.getBytes("iso-8859-1"), "utf-8");
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+            lastSaleTime = DateUtils.getDate(lastSaleTime);
+            params.put("lastSaleTime", lastSaleTime + " 00:00:00");
+        }
         // 根据条件查询出列表
         List<ProductStoreRelaEntity> productStoreRelaEntityList = productStoreRelaService.queryExportList(params);
         for (ProductStoreRelaEntity pro: productStoreRelaEntityList) {

+ 25 - 0
kmall-admin/src/main/java/com/kmall/admin/service/impl/OrderServiceImpl.java

@@ -1402,6 +1402,29 @@ public class OrderServiceImpl implements OrderService {
                 orderEntity.setOrderSnWx(orderSnWx);
             }
         }
+//        Date now = new Date();
+//        Integer storeId = orderEntity.getStoreId();
+//        Map queryParams = new HashMap();
+//        queryParams.put("orderId", orderEntity.getId());
+//        List<OrderGoodsEntity> orderGoodsList = orderGoodsDao.queryList(queryParams);
+//        // 遍历订单下的详情商品,修改商品的最后销售时间
+//        if (orderGoodsList!=null && orderGoodsList.size()>0){
+//            orderGoodsList.forEach(orderGoods ->{
+//                Integer goodsId = orderGoods.getGoodsId();
+//                GoodsEntity goodsEntity = goodsDao.queryObject(goodsId);
+//                if (Objects.nonNull(goodsEntity)){
+//                    goodsEntity.setLastSaleTime(now);
+//                    goodsDao.update(goodsEntity);
+//                }
+//                if (Objects.nonNull(storeId)){
+//                    ProductStoreRelaEntity productStoreRelaEntity = productStoreRelaDao.queryByGoodsIdAndStoreId(Long.valueOf(storeId), Long.valueOf(goodsId));
+//                    if (Objects.nonNull(productStoreRelaEntity)){
+//                        productStoreRelaEntity.setLastSaleTime(now);
+//                        productStoreRelaDao.update(productStoreRelaEntity);
+//                    }
+//                }
+//            });
+//        }
         orderDao.update(orderEntity);
         return 0;
     }
@@ -1721,10 +1744,12 @@ public class OrderServiceImpl implements OrderService {
                         productInfo.setStockNum(productInfo.getStockNum() - sellVolume);
                         productInfo.setStoreId(Long.valueOf(storeId));
                         productInfo.addSellVolume();
+                        productInfo.setLastSaleTime(new Date());
                         productStoreRelaDao.updateStockNum(productInfo);//修改普通商品库存
 
                         if(goodsEntity != null) {
                             goodsEntity.setGoodsNumber(goodsEntity.getGoodsNumber() - sellVolume);
+                            goodsEntity.setLastSaleTime(new Date());
                             goodsDao.update(goodsEntity);
                         }
                     }

+ 52 - 40
kmall-admin/src/main/resources/mybatis/mapper/GoodsDao.xml

@@ -251,6 +251,7 @@
     </select>
 
     <select id="queryList" resultType="com.kmall.admin.entity.GoodsEntity">
+        select * from (
         select
         mall_goods.*,
         case when mall_goods_group.id > 0 then 2 else 0 end as goodsType,
@@ -342,12 +343,16 @@
             )
         </if>
 
+        ) temp where 1=1
+         <if test="lastSaleTime != null and lastSaleTime != ''">
+        AND temp.last_sale_time &gt;= #{lastSaleTime} or temp.last_sale_time is null
+        </if>
         <choose>
             <when test="sidx != null and sidx.trim() != ''">
                 order by ${sidx} ${order}
             </when>
             <otherwise>
-                order by mall_goods.id desc
+                order by temp.id desc
             </otherwise>
         </choose>
         <if test="offset != null and limit != null">
@@ -632,45 +637,52 @@
             AND (g.goods_sn=#{keyword} OR g.prod_barcode=#{keyword})
     </select>
     <select id="queryExportList" resultType="com.kmall.admin.entity.GoodsEntity">
-        select
-        mall_goods.*,
-        case when mall_goods_group.id > 0 then 2 else 0 end as goodsType,
-        m.merch_name merchName, mb.is_stock_share isStockShare,
-        catagory.keywords as categoryName,
-        scnc.`name` as oriCntName
-        from mall_goods
-        left join mall_merch m on mall_goods.merch_sn = m.merch_sn
-        left join mall_goods_group on mall_goods_group.goods_id = mall_goods.id and mall_goods_group.open_status != 3
-        left join third_merchant_biz mb on mb.third_party_merch_code = mall_goods.third_party_merch_code and
-        mb.merch_sn=mall_goods.merch_sn
-        left join mall_category catagory on catagory.id = mall_goods.category_id
-        left join sys_cus_nation_code scnc on  mall_goods.ori_cnt_code = scnc.code
-        WHERE 1=1
-        <!--  数据过滤  -->
-        ${filterSql}
-        <if test="merchSn != null and merchSn.trim() != ''">
-            AND mall_goods.merch_sn = #{merchSn}
-        </if>
-        <if test="prodBarcode != null and prodBarcode.trim() != ''">
-            AND mall_goods.prod_barcode = #{prodBarcode}
-        </if>
-        <if test="thirdPartyMerchCode != null and thirdPartyMerchCode.trim() != ''">
-            AND mall_goods.third_party_merch_code = #{thirdPartyMerchCode}
-        </if>
-        <if test="goodsSn != null and goodsSn != ''">
-            AND mall_goods.goods_sn like concat('%',#{goodsSn},'%')
-        </if>
-        <if test="name != null and name != ''">
-            AND mall_goods.name LIKE concat('%',#{name},'%')
-        </if>
-        <if test="englishName != null and englishName != ''">
-            AND mall_goods.english_name LIKE concat('%',#{englishName},'%')
-        </if>
-        <if test="goodsBizType != null and goodsBizType != ''">
-            AND mall_goods.goods_biz_type = #{goodsBizType}
-        </if>
-        <if test="isDelete != null">
-            AND mall_goods.is_Delete = #{isDelete}
+        select * from (
+            select
+            mall_goods.*,
+            case when mall_goods_group.id > 0 then 2 else 0 end as goodsType,
+            m.merch_name merchName, mb.is_stock_share isStockShare,
+            catagory.keywords as categoryName,
+            scnc.`name` as oriCntName
+            from mall_goods
+            left join mall_merch m on mall_goods.merch_sn = m.merch_sn
+            left join mall_goods_group on mall_goods_group.goods_id = mall_goods.id and mall_goods_group.open_status != 3
+            left join third_merchant_biz mb on mb.third_party_merch_code = mall_goods.third_party_merch_code and
+            mb.merch_sn=mall_goods.merch_sn
+            left join mall_category catagory on catagory.id = mall_goods.category_id
+            left join sys_cus_nation_code scnc on  mall_goods.ori_cnt_code = scnc.code
+            WHERE 1=1
+            <!--  数据过滤  -->
+            ${filterSql}
+            <if test="merchSn != null and merchSn.trim() != ''">
+                AND mall_goods.merch_sn = #{merchSn}
+            </if>
+            <if test="prodBarcode != null and prodBarcode.trim() != ''">
+                AND mall_goods.prod_barcode = #{prodBarcode}
+            </if>
+            <if test="thirdPartyMerchCode != null and thirdPartyMerchCode.trim() != ''">
+                AND mall_goods.third_party_merch_code = #{thirdPartyMerchCode}
+            </if>
+            <if test="goodsSn != null and goodsSn != ''">
+                AND mall_goods.goods_sn like concat('%',#{goodsSn},'%')
+            </if>
+            <if test="name != null and name != ''">
+                AND mall_goods.name LIKE concat('%',#{name},'%')
+            </if>
+            <if test="englishName != null and englishName != ''">
+                AND mall_goods.english_name LIKE concat('%',#{englishName},'%')
+            </if>
+            <if test="goodsBizType != null and goodsBizType != ''">
+                AND mall_goods.goods_biz_type = #{goodsBizType}
+            </if>
+            <if test="isDelete != null">
+                AND mall_goods.is_Delete = #{isDelete}
+            </if>
+        ) temp
+        where 1=1
+        <if test="lastSaleTime != null and lastSaleTime != ''">
+            AND temp.last_sale_time &gt;= #{lastSaleTime} or temp.last_sale_time is null
         </if>
+
     </select>
 </mapper>

+ 112 - 96
kmall-admin/src/main/resources/mybatis/mapper/ProductStoreRelaDao.xml

@@ -152,103 +152,112 @@
     </select>
 
     <select id="queryList" resultType="com.kmall.admin.entity.ProductStoreRelaEntity">
-        select
-        a.`id`,
-        a.`store_id`,
-        a.`merch_sn`,
-        a.`product_id`,
-        a.`stock_num`,
-        a.`goods_id`,
-        a.`retail_price`,
-        a.`market_price`,
-        a.`stock_price`,
-        a.`sell_volume`,
-        a.`batch_sn`,
-        a.`batch_expire_date`,
-        a.`bottom_line_price`,
-        b.goods_number as parkStock,
-        b.is_hot 'isHot',
-        b.is_on_sale 'isOnSale',
-        b.sell_volume 'goodsSellVolume',
-        b.sku,a.goods_biz_type, a.creater_sn, a.create_time, a.moder_sn, a.mod_time, a.tstm,
-        b.goods_sn goodsSn,
-        b.list_pic_url,
-        c.goods_sn productSn,
-        b.name goodsName,
-        cg.name categoryName,
-        s.store_name storeName,
-        m.merch_name,
-        b.merch_sn goods_merch_sn,
-        a.category_id,
-        a.attribute_category,
-        a.brand_id,
-        a.freight_id,
-        b.goods_number goodsNumber,
-        b.third_party_merch_code thirdPartyMerchCode,
-        mb.is_stock_share isStockShare,
-        b.list_pic_url,supplier_third_id, a.hot_sort_num
-        from mall_product_store_rela a
-        left join mall_goods b on a.goods_id = b.id
-        left join third_merchant_biz mb on mb.third_party_merch_code = b.third_party_merch_code and mb.merch_sn=b.merch_sn
-        left join mall_merch m on a.merch_sn = m.merch_sn
-        left join mall_product c on a.product_id = c.id
-        LEFT JOIN mall_category cg ON a.category_id = cg.id
-        left join mall_store s on a.store_id = s.id AND s.third_party_merch_code = b.third_party_merch_code
-        WHERE 1=1 and b.is_delete = 0
-        <if test="categoryId != null and categoryId != '' ">
-            AND a.category_id = #{categoryId}
-        </if>
-        <if test="brandId != null and brandId != '' ">
-            AND a.brand_id = #{brandId}
-        </if>
-        <if test="category != null and category != ''">
-            AND a.category_id IN (select id from mall_category where parent_id = #{category})
-        </if>
-        <if test="categoryTwo != null and categoryTwo != ''">
-            AND a.category_id = #{categoryTwo}
-        </if>
-        <if test="prodBarcode != null and prodBarcode != ''">
-            AND b.prod_barcode = #{prodBarcode}
-        </if>
-        <if test="storeId != null and storeId != '' ">
-            AND a.store_id = #{storeId}
-        </if>
-        <if test="merchSn != null and merchSn.trim() != '' ">
-            AND a.merch_sn = #{merchSn}
-        </if>
-        <if test="thirdPartyMerchCode != null and thirdPartyMerchCode.trim() != ''">
-            AND b.third_party_merch_code = #{thirdPartyMerchCode}
-        </if>
-        <if test="goodsId != null">
-            AND a.goods_id = #{goodsId}
-        </if>
-        <if test="goodsName != null and goodsName != '' ">
-            AND b.name LIKE concat('%',#{goodsName},'%')
-        </if>
-        <if test="goodsSn != null and goodsSn != '' ">
-            AND b.goods_sn = #{goodsSn}
-        </if>
-        <if test="productSn != null and productSn != '' ">
-            AND c.goods_sn = #{productSn}
-        </if>
-        <if test="productId != null">
-            AND a.product_id = #{productId}
-        </if>
+        select * from (
+            select
+            a.`id`,
+            a.`store_id`,
+            a.`merch_sn`,
+            a.`product_id`,
+            a.`stock_num`,
+            a.`goods_id`,
+            a.`retail_price`,
+            a.`market_price`,
+            a.`stock_price`,
+            a.`sell_volume`,
+            a.`batch_sn`,
+            a.`batch_expire_date`,
+            a.`bottom_line_price`,
+            a.last_sale_time,
+            b.goods_number as parkStock,
+            b.is_hot 'isHot',
+            b.is_on_sale 'isOnSale',
+            b.sell_volume 'goodsSellVolume',
+            b.sku,a.goods_biz_type, a.creater_sn, a.create_time, a.moder_sn, a.mod_time, a.tstm,
+            b.goods_sn goodsSn,
+            b.list_pic_url,
+            c.goods_sn productSn,
+            b.name goodsName,
+            cg.name categoryName,
+            s.store_name storeName,
+            m.merch_name,
+            b.merch_sn goods_merch_sn,
+            a.category_id,
+            a.attribute_category,
+            a.brand_id,
+            a.freight_id,
+            b.goods_number goodsNumber,
+            b.third_party_merch_code thirdPartyMerchCode,
+            mb.is_stock_share isStockShare,
+            supplier_third_id,
+             a.hot_sort_num
+            from mall_product_store_rela a
+            left join mall_goods b on a.goods_id = b.id
+            left join third_merchant_biz mb on mb.third_party_merch_code = b.third_party_merch_code and mb.merch_sn=b.merch_sn
+            left join mall_merch m on a.merch_sn = m.merch_sn
+            left join mall_product c on a.product_id = c.id
+            LEFT JOIN mall_category cg ON a.category_id = cg.id
+            left join mall_store s on a.store_id = s.id AND s.third_party_merch_code = b.third_party_merch_code
+            WHERE 1=1 and b.is_delete = 0
+            <if test="categoryId != null and categoryId != '' ">
+                AND a.category_id = #{categoryId}
+            </if>
+            <if test="brandId != null and brandId != '' ">
+                AND a.brand_id = #{brandId}
+            </if>
+            <if test="category != null and category != ''">
+                AND a.category_id IN (select id from mall_category where parent_id = #{category})
+            </if>
+            <if test="categoryTwo != null and categoryTwo != ''">
+                AND a.category_id = #{categoryTwo}
+            </if>
+            <if test="prodBarcode != null and prodBarcode != ''">
+                AND b.prod_barcode = #{prodBarcode}
+            </if>
+            <if test="storeId != null and storeId != '' ">
+                AND a.store_id = #{storeId}
+            </if>
+            <if test="merchSn != null and merchSn.trim() != '' ">
+                AND a.merch_sn = #{merchSn}
+            </if>
+            <if test="thirdPartyMerchCode != null and thirdPartyMerchCode.trim() != ''">
+                AND b.third_party_merch_code = #{thirdPartyMerchCode}
+            </if>
+            <if test="goodsId != null">
+                AND a.goods_id = #{goodsId}
+            </if>
+            <if test="goodsName != null and goodsName != '' ">
+                AND b.name LIKE concat('%',#{goodsName},'%')
+            </if>
+            <if test="goodsSn != null and goodsSn != '' ">
+                AND b.goods_sn = #{goodsSn}
+            </if>
+            <if test="productSn != null and productSn != '' ">
+                AND c.goods_sn = #{productSn}
+            </if>
+            <if test="productId != null">
+                AND a.product_id = #{productId}
+            </if>
 
-        <if test="goodsBizType != null and goodsBizType != ''">
-            AND b.goods_biz_type = #{goodsBizType}
-        </if>
-        <choose>
-            <when test="sidx != null and sidx.trim() != ''">
-                order by ${sidx} ${order}
-            </when>
-            <otherwise>
-                order by a.id desc
-            </otherwise>
-        </choose>
-        <if test="offset != null and limit != null">
-            limit #{offset}, #{limit}
+            <if test="goodsBizType != null and goodsBizType != ''">
+                AND b.goods_biz_type = #{goodsBizType}
+            </if>
+            <choose>
+                <when test="sidx != null and sidx.trim() != ''">
+                    order by ${sidx} ${order}
+                </when>
+                <otherwise>
+                    order by a.id desc
+                </otherwise>
+            </choose>
+            <if test="offset != null and limit != null">
+                limit #{offset}, #{limit}
+            </if>
+        )  temp
+        where 1=1
+        <if test="lastSaleTime != null and lastSaleTime != ''">
+            AND temp.last_sale_time &gt;= #{lastSaleTime} or temp.last_sale_time is null
         </if>
+
     </select>
 
     <select id="querySameList" resultType="com.kmall.admin.entity.ProductStoreRelaEntity">
@@ -767,6 +776,7 @@
 
     </select>
     <select id="queryExportList" resultType="com.kmall.admin.entity.ProductStoreRelaEntity">
+        select * from (
         select
         a.`id`,
         a.`store_id`,
@@ -799,10 +809,11 @@
         a.brand_id,
         mall_brand.name as brandName,
         a.freight_id,
+        a.last_sale_time,
         b.goods_number goodsNumber,
         b.third_party_merch_code thirdPartyMerchCode,
         mb.is_stock_share isStockShare,
-        b.list_pic_url,supplier_third_id, a.hot_sort_num
+        supplier_third_id, a.hot_sort_num
         from mall_product_store_rela a
         left join mall_goods b on a.goods_id = b.id
         left join third_merchant_biz mb on mb.third_party_merch_code = b.third_party_merch_code and mb.merch_sn=b.merch_sn
@@ -834,6 +845,11 @@
         <if test="goodsBizType != null and goodsBizType != ''">
             AND b.goods_biz_type = #{goodsBizType}
         </if>
+        )  temp
+        where 1=1
+        <if test="lastSaleTime != null and lastSaleTime != ''">
+            AND temp.last_sale_time &gt;= #{lastSaleTime} or temp.last_sale_time is null
+        </if>
     </select>
 
 </mapper>

+ 1 - 1
kmall-admin/src/main/resources/mybatis/mapper/statistics/MonthlyCustomersDao.xml

@@ -181,7 +181,7 @@
 			sum( og.number ) AS sales,
 			cg.NAME AS cgname,
 			sum( o.order_price ) AS totalSales,
-			DATE_FORMAT(o.pay_time,'%Y-%m')
+			DATE_FORMAT(o.pay_time,'%Y-%m') as yearAndMonth
 		FROM
 			mall_order o
 			LEFT JOIN mall_order_goods og ON o.id = og.order_id

+ 6 - 1
kmall-admin/src/main/webapp/WEB-INF/page/shop/goods.html

@@ -88,6 +88,7 @@
                 <i-col span="3">
                     <i-input v-model="q.englishName" @on-enter="query" placeholder="英文名称"/>
                 </i-col>
+
                 <!--<i-col span="3">-->
                 <!--<i-input v-model="q.plu" @on-enter="query" placeholder="PLU"/>-->
                 <!--</i-col>-->
@@ -97,7 +98,11 @@
                         <i-option v-for="macro in macros" :value="macro.value" :key="macro.id">{{macro.name}}
                         </i-option>
                     </i-select>
-                </i-col><!--
+                </i-col>
+                <i-col span="3">
+                    <Date-picker v-model="q.lastSaleTime" placeholder="未销售时间至今"/>
+                </i-col>
+                <!--
                 <i-col span="3">
                     <i-select v-model="q.category" placeholder="商品分类" filterable @on-change="changeQueryCategories"
                               label-in-value>

+ 3 - 0
kmall-admin/src/main/webapp/WEB-INF/page/shop/storeProductStock.html

@@ -92,6 +92,9 @@
                         </i-option>
                     </i-select>
                 </i-col>
+                <i-col span="3">
+                    <Date-picker v-model="q.lastSaleTime" placeholder="未销售时间至今"/>
+                </i-col>
                 <!--<i-col span="4">
                     <i-input v-model="q.productSn" @on-enter="query" placeholder="规格编码"/>
                 </i-col>-->

+ 6 - 4
kmall-admin/src/main/webapp/js/shop/goods.js

@@ -151,7 +151,7 @@ var vm = new Vue({
                 {required: true, message: '名称不能为空', trigger: 'blur'}
             ]*/
         },
-        q: {name: '', goodsSn: '', prodBarcode: '',goodsBizType:'', merchSn: '',thirdPartyMerchCode:'',englishName:''},
+        q: {name: '', goodsSn: '', prodBarcode: '',goodsBizType:'', merchSn: '',thirdPartyMerchCode:'',englishName:'',lastSaleTime:''},
         attributes: [],
         attributeEntityList: [{'id': '', 'goodsId': '', 'attributeId': '', 'value': '', 'isDelete': 0}],
         productEntityList: [{'id': '', 'goodsId': '', 'goodsSpecificationIds': '', 'goodsSpecificationNameValue': '', 'goodsSn': '', 'goodsNumber': '', 'isDelete': 0, 'goodsDefault': 0}],
@@ -215,7 +215,8 @@ var vm = new Vue({
                 goodsBizType: '',
                 merchSn: '',
                 thirdPartyMerchCode:'',
-                englishName:''
+                englishName:'',
+                lastSaleTime:''
             }
         },
         query: function () {
@@ -479,7 +480,8 @@ var vm = new Vue({
                     'prodBarcode': vm.q.prodBarcode,
                     'goodsBizType': vm.q.goodsBizType,
                     'merchSn': vm.q.merchSn,
-                    'thirdPartyMerchCode': vm.q.thirdPartyMerchCode
+                    'thirdPartyMerchCode': vm.q.thirdPartyMerchCode,
+                    'lastSaleTime': vm.q.lastSaleTime
                 },
                 page: page
             }).trigger("reloadGrid");
@@ -731,7 +733,7 @@ var vm = new Vue({
             params.name = vm.q.name, params.englishName = vm.q.englishName, params.plu = vm.q.plu,
                 params.goodsSn = vm.q.goodsSn, params.prodBarcode = vm.q.prodBarcode,
                 params.goodsBizType = vm.q.goodsBizType,params.merchSn = vm.q.merchSn,
-                params.thirdPartyMerchCode = vm.q.thirdPartyMerchCode;
+                params.thirdPartyMerchCode = vm.q.thirdPartyMerchCode,params.lastSaleTime = vm.q.lastSaleTime;
             exportFile('#rrapp', '../goods/export', params);
 
         }

+ 6 - 4
kmall-admin/src/main/webapp/js/shop/storeProductStock.js

@@ -182,7 +182,8 @@ var vm = new Vue({
             category: '',
             categoryTwo: '',
             goodsBizType:'',
-            thirdPartyMerchCode:''
+            thirdPartyMerchCode:'',
+            lastSaleTime:''
         },
         stores: [],
         macros: [],//商品单位
@@ -296,7 +297,7 @@ var vm = new Vue({
                 goodsName: '',
                 productSn: '',
                 goodsSn: '', category: '', categoryTwo: '', goodsBizType:'',
-                thirdPartyMerchCode: ''
+                thirdPartyMerchCode: '',lastSaleTime:''
             }
             vm.reload();
         },
@@ -669,7 +670,8 @@ var vm = new Vue({
                     goodsName: vm.q.goodsName,
                     goodsSn: vm.q.goodsSn,
                     productSn: vm.q.productSn, category: vm.q.category, categoryTwo: vm.q.categoryTwo, goodsBizType:vm.q.goodsBizType,
-                    thirdPartyMerchCode: vm.q.thirdPartyMerchCode
+                    thirdPartyMerchCode: vm.q.thirdPartyMerchCode,
+                    lastSaleTime:vm.q.lastSaleTime
                 },
                 page: page
             }).trigger("reloadGrid");
@@ -781,7 +783,7 @@ var vm = new Vue({
             var params = {};
             params.storeId = vm.q.storeId, params.goodsName = vm.q.goodsName, params.goodsSn = vm.q.goodsSn,
                 params.category = vm.q.category, params.categoryTwo = vm.q.categoryTwo,
-                params.goodsBizType = vm.q.goodsBizType,params.thirdPartyMerchCode = vm.q.thirdPartyMerchCode;
+                params.goodsBizType = vm.q.goodsBizType,params.thirdPartyMerchCode = vm.q.thirdPartyMerchCode,lastSaleTime=vm.q.lastSaleTime;
             exportFile('#rrapp', '../productstorerela/export', params);
         }
     },