Browse Source

feat: 门店管理

pangqijun 8 months ago
parent
commit
746cdb1025

+ 76 - 0
src/main/java/org/springblade/modules/api/controller/ApiShopController.java

@@ -0,0 +1,76 @@
+package org.springblade.modules.api.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import lombok.AllArgsConstructor;
+import org.springblade.common.constant.CommonConstant;
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.secure.utils.AuthUtil;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springblade.modules.business.entity.Shop;
+import org.springblade.modules.business.service.IShopService;
+import org.springblade.modules.business.vo.ShopVO;
+import org.springblade.modules.business.wrapper.ShopWrapper;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+@RestController
+@AllArgsConstructor
+@RequestMapping(CommonConstant.API_URL + "/shop")
+@Api(value = "门店管理接口", tags = "门店管理接口")
+public class ApiShopController {
+
+    private final IShopService iShopService;
+
+    @PostMapping("/add")
+    @ApiOperationSupport(order = 1)
+    @ApiOperation(value = "添加门店", notes = "传入shop")
+    public R<Void> save(@Valid @RequestBody Shop shop) {
+        shop.setMerchantId(AuthUtil.getUserId());
+        return R.status(iShopService.save(shop));
+    }
+
+    @PostMapping("/update")
+    @ApiOperationSupport(order = 2)
+    @ApiOperation(value = "修改门店", notes = "传入shop")
+    public R<Void> update(@Valid @RequestBody Shop shop) {
+        return R.status(iShopService.updateById(shop));
+    }
+
+    /**
+     * 自定义分页 门店表
+     */
+    @GetMapping("/page")
+    @ApiOperationSupport(order = 3)
+    @ApiOperation(value = "分页查询门店列表", notes = "传入shop")
+    public R<IPage<ShopVO>> page(ShopVO shop, Query query) {
+        shop.setMerchantId(AuthUtil.getUserId());
+        IPage<ShopVO> pages = iShopService.selectShopPage(Condition.getPage(query), shop);
+        return R.data(pages);
+    }
+
+    @GetMapping("/detail")
+    @ApiOperationSupport(order = 4)
+    @ApiOperation(value = "门店详情", notes = "传入shop")
+    public R<ShopVO> detail(@ApiParam(value = "门店id", required = true) @RequestParam Long id) {
+        Shop detail = iShopService.getById(id);
+        return R.data(ShopWrapper.build().entityVO(detail));
+    }
+
+    /**
+     * 删除 门店表
+     */
+    @PostMapping("/remove")
+    @ApiOperationSupport(order = 5)
+    @ApiOperation(value = "删除", notes = "传入ids")
+    public R<Void> remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        return R.status(iShopService.removeByIds(Func.toLongList(ids)));
+    }
+
+}

+ 129 - 0
src/main/java/org/springblade/modules/business/controller/ShopController.java

@@ -0,0 +1,129 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.business.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.RequestParam;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.modules.business.entity.Shop;
+import org.springblade.modules.business.vo.ShopVO;
+import org.springblade.modules.business.wrapper.ShopWrapper;
+import org.springblade.modules.business.service.IShopService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 门店表 控制器
+ *
+ * @author BladeX
+ * @since 2024-07-15
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("business/shop")
+@Api(value = "门店表", tags = "门店表接口")
+public class ShopController extends BladeController {
+
+	private final IShopService shopService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入shop")
+	public R<ShopVO> detail(Shop shop) {
+		Shop detail = shopService.getOne(Condition.getQueryWrapper(shop));
+		return R.data(ShopWrapper.build().entityVO(detail));
+	}
+
+	/**
+	 * 分页 门店表
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入shop")
+	public R<IPage<ShopVO>> list(Shop shop, Query query) {
+		IPage<Shop> pages = shopService.page(Condition.getPage(query), Condition.getQueryWrapper(shop));
+		return R.data(ShopWrapper.build().pageVO(pages));
+	}
+
+
+	/**
+	 * 自定义分页 门店表
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入shop")
+	public R<IPage<ShopVO>> page(ShopVO shop, Query query) {
+		IPage<ShopVO> pages = shopService.selectShopPage(Condition.getPage(query), shop);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 门店表
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入shop")
+	public R save(@Valid @RequestBody Shop shop) {
+		return R.status(shopService.save(shop));
+	}
+
+	/**
+	 * 修改 门店表
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入shop")
+	public R update(@Valid @RequestBody Shop shop) {
+		return R.status(shopService.updateById(shop));
+	}
+
+	/**
+	 * 新增或修改 门店表
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入shop")
+	public R submit(@Valid @RequestBody Shop shop) {
+		return R.status(shopService.saveOrUpdate(shop));
+	}
+
+	
+	/**
+	 * 删除 门店表
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 7)
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(shopService.removeByIds(Func.toLongList(ids)));
+	}
+
+	
+}

+ 34 - 0
src/main/java/org/springblade/modules/business/dto/ShopDTO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.business.dto;
+
+import org.springblade.modules.business.entity.Shop;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 门店表数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2024-07-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class ShopDTO extends Shop {
+	private static final long serialVersionUID = 1L;
+
+}

+ 79 - 0
src/main/java/org/springblade/modules/business/entity/Shop.java

@@ -0,0 +1,79 @@
+package org.springblade.modules.business.entity;
+
+import org.springblade.common.base.BaseEntity;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import javax.validation.constraints.NotBlank;
+
+/**
+ * 门店表实体类
+ *
+ * @author zzyd
+ * @since 2024-07-15
+ */
+@Data
+@TableName("t_shop")
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "Shop对象", description = "门店表")
+public class Shop extends BaseEntity {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	* 门店名称
+	*/
+	@NotBlank(message = "请输入门店名称")
+	@ApiModelProperty(value = "门店名称")
+	private String storeName;
+	/**
+	* 门店图片
+	*/
+	@ApiModelProperty(value = "门店图片")
+	private String storeImage;
+	/**
+	* 门店地址
+	*/
+	@ApiModelProperty(value = "门店地址")
+	private String address;
+	/**
+	* 经度
+	*/
+	@ApiModelProperty(value = "经度")
+	private Double longitude;
+	/**
+	* 纬度
+	*/
+	@ApiModelProperty(value = "纬度")
+	private Double latitude;
+	/**
+	* 所属商家id
+	*/
+	@ApiModelProperty(value = "所属商家id", hidden = true)
+	private Long merchantId;
+	/**
+	* 店长姓名
+	*/
+	@ApiModelProperty(value = "店长姓名")
+	private String managerName;
+	/**
+	* 店长电话
+	*/
+	@ApiModelProperty(value = "店长电话")
+	private String managerPhone;
+	/**
+	* 营业状态 1-营业中 0-已歇业
+	*/
+	@ApiModelProperty(value = "营业状态 1-营业中 0-已歇业")
+	private Integer businessStatus;
+	/**
+	* 营业执照
+	*/
+	@ApiModelProperty(value = "营业执照")
+	private String businessLicence;
+
+
+}

+ 42 - 0
src/main/java/org/springblade/modules/business/mapper/ShopMapper.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.business.mapper;
+
+import org.springblade.modules.business.entity.Shop;
+import org.springblade.modules.business.vo.ShopVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 门店表 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2024-07-15
+ */
+public interface ShopMapper extends BaseMapper<Shop> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param shop
+	 * @return
+	 */
+	List<ShopVO> selectShopPage(IPage page, ShopVO shop);
+
+}

+ 30 - 0
src/main/java/org/springblade/modules/business/mapper/ShopMapper.xml

@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.springblade.modules.business.mapper.ShopMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="shopResultMap" type="org.springblade.modules.business.entity.Shop">
+        <result column="id" property="id"/>
+        <result column="is_delete" property="isDelete"/>
+        <result column="create_user_id" property="createUserId"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user_id" property="updateUserId"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="store_name" property="storeName"/>
+        <result column="store_image" property="storeImage"/>
+        <result column="address" property="address"/>
+        <result column="longitude" property="longitude"/>
+        <result column="latitude" property="latitude"/>
+        <result column="merchant_id" property="merchantId"/>
+        <result column="manager_name" property="managerName"/>
+        <result column="manager_phone" property="managerPhone"/>
+        <result column="business_status" property="businessStatus"/>
+        <result column="business_licence" property="businessLicence"/>
+    </resultMap>
+
+
+    <select id="selectShopPage" resultMap="shopResultMap">
+        select * from t_shop where is_delete = 0
+    </select>
+
+</mapper>

+ 41 - 0
src/main/java/org/springblade/modules/business/service/IShopService.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.business.service;
+
+import org.springblade.modules.business.entity.Shop;
+import org.springblade.modules.business.vo.ShopVO;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 门店表 服务类
+ *
+ * @author BladeX
+ * @since 2024-07-15
+ */
+public interface IShopService extends IService<Shop> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param shop
+	 * @return
+	 */
+	IPage<ShopVO> selectShopPage(IPage<ShopVO> page, ShopVO shop);
+
+}

+ 41 - 0
src/main/java/org/springblade/modules/business/service/impl/ShopServiceImpl.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.business.service.impl;
+
+import org.springblade.modules.business.entity.Shop;
+import org.springblade.modules.business.vo.ShopVO;
+import org.springblade.modules.business.mapper.ShopMapper;
+import org.springblade.modules.business.service.IShopService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 门店表 服务实现类
+ *
+ * @author BladeX
+ * @since 2024-07-15
+ */
+@Service
+public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements IShopService {
+
+	@Override
+	public IPage<ShopVO> selectShopPage(IPage<ShopVO> page, ShopVO shop) {
+		return page.setRecords(baseMapper.selectShopPage(page, shop));
+	}
+
+}

+ 36 - 0
src/main/java/org/springblade/modules/business/vo/ShopVO.java

@@ -0,0 +1,36 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.business.vo;
+
+import org.springblade.modules.business.entity.Shop;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * 门店表视图实体类
+ *
+ * @author BladeX
+ * @since 2024-07-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "ShopVO对象", description = "门店表")
+public class ShopVO extends Shop {
+	private static final long serialVersionUID = 1L;
+
+}

+ 49 - 0
src/main/java/org/springblade/modules/business/wrapper/ShopWrapper.java

@@ -0,0 +1,49 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.modules.business.wrapper;
+
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import org.springblade.modules.business.entity.Shop;
+import org.springblade.modules.business.vo.ShopVO;
+import java.util.Objects;
+
+/**
+ * 门店表包装类,返回视图层所需的字段
+ *
+ * @author BladeX
+ * @since 2024-07-15
+ */
+public class ShopWrapper extends BaseEntityWrapper<Shop, ShopVO>  {
+
+	public static ShopWrapper build() {
+		return new ShopWrapper();
+ 	}
+
+	@Override
+	public ShopVO entityVO(Shop shop) {
+		ShopVO shopVO = Objects.requireNonNull(BeanUtil.copy(shop, ShopVO.class));
+
+		//User createUser = UserCache.getUser(shop.getCreateUser());
+		//User updateUser = UserCache.getUser(shop.getUpdateUser());
+		//shopVO.setCreateUserName(createUser.getName());
+		//shopVO.setUpdateUserName(updateUser.getName());
+
+		return shopVO;
+	}
+
+}

+ 10 - 0
src/main/java/sql/shop.menu.mysql

@@ -0,0 +1,10 @@
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1812844618044239878', 1123598815738675201, 'shop', '门店信息', 'menu', '/business/shop', NULL, 1, 1, 0, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1812844618044239879', '1812844618044239878', 'shop_add', '新增', 'add', '/business/shop/add', 'plus', 1, 2, 1, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1812844618044239880', '1812844618044239878', 'shop_edit', '修改', 'edit', '/business/shop/edit', 'form', 2, 2, 2, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1812844618044239881', '1812844618044239878', 'shop_delete', '删除', 'delete', '/api/business/shop/remove', 'delete', 3, 2, 3, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1812844618044239882', '1812844618044239878', 'shop_view', '查看', 'view', '/business/shop/view', 'file-text', 4, 2, 2, 1, NULL, 0);

+ 5 - 5
src/main/java/sql/store.menu.mysql

@@ -1,10 +1,10 @@
 INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
-VALUES ('1664263381585272838', 1123598815738675201, 'store', '供应商', 'menu', '/mall/store', NULL, 1, 1, 0, 1, NULL, 0);
+VALUES ('1812837746218115079', 1123598815738675201, 'store', '门店信息', 'menu', '/business/store', NULL, 1, 1, 0, 1, NULL, 0);
 INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
-VALUES ('1664263381585272839', '1664263381585272838', 'store_add', '新增', 'add', '/mall/store/add', 'plus', 1, 2, 1, 1, NULL, 0);
+VALUES ('1812837746218115080', '1812837746218115079', 'store_add', '新增', 'add', '/business/store/add', 'plus', 1, 2, 1, 1, NULL, 0);
 INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
-VALUES ('1664263381585272840', '1664263381585272838', 'store_edit', '修改', 'edit', '/mall/store/edit', 'form', 2, 2, 2, 1, NULL, 0);
+VALUES ('1812837746218115081', '1812837746218115079', 'store_edit', '修改', 'edit', '/business/store/edit', 'form', 2, 2, 2, 1, NULL, 0);
 INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
-VALUES ('1664263381585272841', '1664263381585272838', 'store_delete', '删除', 'delete', '/api/mall/store/remove', 'delete', 3, 2, 3, 1, NULL, 0);
+VALUES ('1812837746218115082', '1812837746218115079', 'store_delete', '删除', 'delete', '/api/business/store/remove', 'delete', 3, 2, 3, 1, NULL, 0);
 INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
-VALUES ('1664263381585272842', '1664263381585272838', 'store_view', '查看', 'view', '/mall/store/view', 'file-text', 4, 2, 2, 1, NULL, 0);
+VALUES ('1812837746218115083', '1812837746218115079', 'store_view', '查看', 'view', '/business/store/view', 'file-text', 4, 2, 2, 1, NULL, 0);

+ 1 - 1
src/main/resources/application-dev.yml

@@ -62,7 +62,7 @@ wxpay:
   v3:
     appId: wxf6dd733a0a8f0619
     appIdxcx: wx932f9873f2dc5655
-    appSecretxcx: 6a15d1cb4fc2b995a3dc222e8c7a490f
+    appSecretxcx: 8bc0543ac511a111f0c02dc887bdb8e2
     keyPath: ${wxpay.fileRootPath}apiclient_key.pem
     certPath: ${wxpay.fileRootPath}apiclient_cert.pem
     certP12Path: ${wxpay.fileRootPath}cert/apiclient_cert.p12