修复已知问题
This commit is contained in:
@@ -3,6 +3,7 @@ package com.gxwebsoft.cms.controller;
|
|||||||
import com.alipay.api.domain.Article;
|
import com.alipay.api.domain.Article;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.gxwebsoft.cms.entity.CmsArticleContent;
|
import com.gxwebsoft.cms.entity.CmsArticleContent;
|
||||||
|
import com.gxwebsoft.cms.param.CmsNavigationParam;
|
||||||
import com.gxwebsoft.cms.service.CmsArticleContentService;
|
import com.gxwebsoft.cms.service.CmsArticleContentService;
|
||||||
import com.gxwebsoft.common.core.web.BaseController;
|
import com.gxwebsoft.common.core.web.BaseController;
|
||||||
import com.gxwebsoft.cms.service.CmsArticleService;
|
import com.gxwebsoft.cms.service.CmsArticleService;
|
||||||
@@ -14,6 +15,7 @@ import com.gxwebsoft.common.core.web.PageParam;
|
|||||||
import com.gxwebsoft.common.core.web.BatchParam;
|
import com.gxwebsoft.common.core.web.BatchParam;
|
||||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||||
import com.gxwebsoft.common.system.entity.User;
|
import com.gxwebsoft.common.system.entity.User;
|
||||||
|
import com.gxwebsoft.common.system.service.UserService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
@@ -38,6 +40,8 @@ public class CmsArticleController extends BaseController {
|
|||||||
private CmsArticleService cmsArticleService;
|
private CmsArticleService cmsArticleService;
|
||||||
@Resource
|
@Resource
|
||||||
private CmsArticleContentService articleContentService;
|
private CmsArticleContentService articleContentService;
|
||||||
|
@Resource
|
||||||
|
private UserService userService;
|
||||||
|
|
||||||
@ApiOperation("分页查询文章")
|
@ApiOperation("分页查询文章")
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@@ -76,6 +80,12 @@ public class CmsArticleController extends BaseController {
|
|||||||
User loginUser = getLoginUser();
|
User loginUser = getLoginUser();
|
||||||
if (loginUser != null) {
|
if (loginUser != null) {
|
||||||
article.setUserId(loginUser.getUserId());
|
article.setUserId(loginUser.getUserId());
|
||||||
|
article.setAuthor(loginUser.getNickname());
|
||||||
|
article.setMerchantId(loginUser.getMerchantId());
|
||||||
|
}
|
||||||
|
// 是否密码可见
|
||||||
|
if(article.getPermission() == 2){
|
||||||
|
article.setPassword(userService.encodePassword(article.getPassword()));
|
||||||
}
|
}
|
||||||
if (cmsArticleService.save(article)) {
|
if (cmsArticleService.save(article)) {
|
||||||
// 保存文章内容
|
// 保存文章内容
|
||||||
@@ -92,6 +102,10 @@ public class CmsArticleController extends BaseController {
|
|||||||
@ApiOperation("修改文章")
|
@ApiOperation("修改文章")
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
public ApiResult<?> update(@RequestBody CmsArticle cmsArticle) {
|
public ApiResult<?> update(@RequestBody CmsArticle cmsArticle) {
|
||||||
|
// 是否密码可见
|
||||||
|
if(cmsArticle.getPermission() == 2){
|
||||||
|
cmsArticle.setPassword(userService.encodePassword(cmsArticle.getPassword()));
|
||||||
|
}
|
||||||
if (cmsArticleService.updateById(cmsArticle)) {
|
if (cmsArticleService.updateById(cmsArticle)) {
|
||||||
return success("修改成功");
|
return success("修改成功");
|
||||||
}
|
}
|
||||||
@@ -192,4 +206,13 @@ public class CmsArticleController extends BaseController {
|
|||||||
return success(data);
|
return success(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("密码校验")
|
||||||
|
@GetMapping("/checkArticlePassword")
|
||||||
|
public ApiResult<?> checkArticlePassword(CmsArticle param) {
|
||||||
|
if (!userService.comparePassword(param.getPassword(), param.getPassword2())) {
|
||||||
|
return fail("密码不正确");
|
||||||
|
}
|
||||||
|
return success("密码正确");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import com.gxwebsoft.common.core.web.PageParam;
|
|||||||
import com.gxwebsoft.common.core.web.BatchParam;
|
import com.gxwebsoft.common.core.web.BatchParam;
|
||||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||||
import com.gxwebsoft.common.system.entity.User;
|
import com.gxwebsoft.common.system.entity.User;
|
||||||
|
import com.gxwebsoft.common.system.service.UserService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
@@ -39,6 +40,8 @@ public class CmsNavigationController extends BaseController {
|
|||||||
private CmsNavigationService cmsNavigationService;
|
private CmsNavigationService cmsNavigationService;
|
||||||
@Resource
|
@Resource
|
||||||
private CmsDesignService cmsDesignService;
|
private CmsDesignService cmsDesignService;
|
||||||
|
@Resource
|
||||||
|
private UserService userService;
|
||||||
|
|
||||||
@ApiOperation("分页查询网站导航记录表")
|
@ApiOperation("分页查询网站导航记录表")
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@@ -82,6 +85,8 @@ public class CmsNavigationController extends BaseController {
|
|||||||
@PutMapping()
|
@PutMapping()
|
||||||
public ApiResult<?> update(@RequestBody CmsNavigation cmsNavigation) {
|
public ApiResult<?> update(@RequestBody CmsNavigation cmsNavigation) {
|
||||||
if (cmsNavigationService.updateById(cmsNavigation)) {
|
if (cmsNavigationService.updateById(cmsNavigation)) {
|
||||||
|
// 修改成功事务处理
|
||||||
|
cmsNavigationService.saveAsync(cmsNavigation);
|
||||||
return success("修改成功");
|
return success("修改成功");
|
||||||
}
|
}
|
||||||
return fail("修改失败");
|
return fail("修改失败");
|
||||||
@@ -156,4 +161,13 @@ public class CmsNavigationController extends BaseController {
|
|||||||
return success(navigation);
|
return success(navigation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("密码校验")
|
||||||
|
@GetMapping("/checkNavigationPassword")
|
||||||
|
public ApiResult<?> checkNavigationPassword(CmsNavigationParam param) {
|
||||||
|
if (!userService.comparePassword(param.getPassword(), param.getPassword2())) {
|
||||||
|
return fail("密码不正确");
|
||||||
|
}
|
||||||
|
return success("密码正确");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,6 +71,16 @@ public class CmsArticle implements Serializable {
|
|||||||
@ApiModelProperty(value = "实际阅读量")
|
@ApiModelProperty(value = "实际阅读量")
|
||||||
private Integer actualViews;
|
private Integer actualViews;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "可见类型 0所有人 1登录可见 2密码可见")
|
||||||
|
private Integer permission;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "访问密码")
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "验证密码(前端回传)")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String password2;
|
||||||
|
|
||||||
@ApiModelProperty(value = "发布来源客户端 (APP、H5、小程序等)")
|
@ApiModelProperty(value = "发布来源客户端 (APP、H5、小程序等)")
|
||||||
private String platform;
|
private String platform;
|
||||||
|
|
||||||
@@ -113,8 +123,17 @@ public class CmsArticle implements Serializable {
|
|||||||
@ApiModelProperty(value = "用户ID")
|
@ApiModelProperty(value = "用户ID")
|
||||||
private Integer userId;
|
private Integer userId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "作者")
|
||||||
|
private String author;
|
||||||
|
|
||||||
@ApiModelProperty(value = "商户ID")
|
@ApiModelProperty(value = "商户ID")
|
||||||
private Integer merchantId;
|
private Long merchantId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商户名称")
|
||||||
|
private String merchantName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商户名称")
|
||||||
|
private String merchantAvatar;
|
||||||
|
|
||||||
@ApiModelProperty(value = "昵称")
|
@ApiModelProperty(value = "昵称")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
|||||||
@@ -66,6 +66,10 @@ public class CmsNavigation implements Serializable {
|
|||||||
@ApiModelProperty(value = "访问密码")
|
@ApiModelProperty(value = "访问密码")
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "验证密码(前端回传)")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String password2;
|
||||||
|
|
||||||
@ApiModelProperty(value = "位置 0不限 1顶部 2底部")
|
@ApiModelProperty(value = "位置 0不限 1顶部 2底部")
|
||||||
private Integer position;
|
private Integer position;
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ public class CmsProduct implements Serializable {
|
|||||||
@ApiModelProperty(value = "封面图")
|
@ApiModelProperty(value = "封面图")
|
||||||
private String image;
|
private String image;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标签")
|
||||||
|
private String tag;
|
||||||
|
|
||||||
@ApiModelProperty(value = "产品详情")
|
@ApiModelProperty(value = "产品详情")
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ public class CmsArticleParam extends BaseParam {
|
|||||||
@ApiModelProperty(value = "话题")
|
@ApiModelProperty(value = "话题")
|
||||||
private String topic;
|
private String topic;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "栏目ID")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
|
private Integer navigationId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "文章分类ID")
|
@ApiModelProperty(value = "文章分类ID")
|
||||||
@QueryField(type = QueryType.EQ)
|
@QueryField(type = QueryType.EQ)
|
||||||
private Integer categoryId;
|
private Integer categoryId;
|
||||||
@@ -61,6 +65,18 @@ public class CmsArticleParam extends BaseParam {
|
|||||||
@QueryField(type = QueryType.EQ)
|
@QueryField(type = QueryType.EQ)
|
||||||
private Integer actualViews;
|
private Integer actualViews;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "可见类型 0所有人 1登录可见 2密码可见")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
|
private Integer permission;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "访问密码")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "访问密码")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
|
private String password2;
|
||||||
|
|
||||||
@ApiModelProperty(value = "发布来源客户端 (APP、H5、小程序等)")
|
@ApiModelProperty(value = "发布来源客户端 (APP、H5、小程序等)")
|
||||||
private String platform;
|
private String platform;
|
||||||
|
|
||||||
|
|||||||
@@ -63,8 +63,13 @@ public class CmsNavigationParam extends BaseParam {
|
|||||||
private Integer permission;
|
private Integer permission;
|
||||||
|
|
||||||
@ApiModelProperty(value = "访问密码")
|
@ApiModelProperty(value = "访问密码")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "访问密码")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
|
private String password2;
|
||||||
|
|
||||||
@ApiModelProperty(value = "位置 0不限 1顶部 2底部")
|
@ApiModelProperty(value = "位置 0不限 1顶部 2底部")
|
||||||
@QueryField(type = QueryType.EQ)
|
@QueryField(type = QueryType.EQ)
|
||||||
private Integer position;
|
private Integer position;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class CmsArticleServiceImpl extends ServiceImpl<CmsArticleMapper, CmsArti
|
|||||||
@Override
|
@Override
|
||||||
public PageResult<CmsArticle> pageRel(CmsArticleParam param) {
|
public PageResult<CmsArticle> pageRel(CmsArticleParam param) {
|
||||||
PageParam<CmsArticle, CmsArticleParam> page = new PageParam<>(param);
|
PageParam<CmsArticle, CmsArticleParam> page = new PageParam<>(param);
|
||||||
page.setDefaultOrder("create_time desc");
|
page.setDefaultOrder("sortNumber asc,create_time desc");
|
||||||
List<CmsArticle> list = baseMapper.selectPageRel(page, param);
|
List<CmsArticle> list = baseMapper.selectPageRel(page, param);
|
||||||
return new PageResult<>(list, page.getTotal());
|
return new PageResult<>(list, page.getTotal());
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ public class CmsArticleServiceImpl extends ServiceImpl<CmsArticleMapper, CmsArti
|
|||||||
List<CmsArticle> list = baseMapper.selectListRel(param);
|
List<CmsArticle> list = baseMapper.selectListRel(param);
|
||||||
// 排序
|
// 排序
|
||||||
PageParam<CmsArticle, CmsArticleParam> page = new PageParam<>();
|
PageParam<CmsArticle, CmsArticleParam> page = new PageParam<>();
|
||||||
page.setDefaultOrder("create_time desc");
|
page.setDefaultOrder("sortNumber asc,create_time desc");
|
||||||
return page.sortRecords(list);
|
return page.sortRecords(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import com.gxwebsoft.cms.param.CmsNavigationParam;
|
|||||||
import com.gxwebsoft.common.core.exception.BusinessException;
|
import com.gxwebsoft.common.core.exception.BusinessException;
|
||||||
import com.gxwebsoft.common.core.web.PageParam;
|
import com.gxwebsoft.common.core.web.PageParam;
|
||||||
import com.gxwebsoft.common.core.web.PageResult;
|
import com.gxwebsoft.common.core.web.PageResult;
|
||||||
|
import com.gxwebsoft.common.system.service.UserService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
@@ -33,6 +34,9 @@ public class CmsNavigationServiceImpl extends ServiceImpl<CmsNavigationMapper, C
|
|||||||
private CmsDesignService cmsDesignService;
|
private CmsDesignService cmsDesignService;
|
||||||
@Resource
|
@Resource
|
||||||
private CmsNavigationMapper cmsNavigationMapper;
|
private CmsNavigationMapper cmsNavigationMapper;
|
||||||
|
@Resource
|
||||||
|
private UserService userService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResult<CmsNavigation> pageRel(CmsNavigationParam param) {
|
public PageResult<CmsNavigation> pageRel(CmsNavigationParam param) {
|
||||||
PageParam<CmsNavigation, CmsNavigationParam> page = new PageParam<>(param);
|
PageParam<CmsNavigation, CmsNavigationParam> page = new PageParam<>(param);
|
||||||
@@ -98,7 +102,12 @@ public class CmsNavigationServiceImpl extends ServiceImpl<CmsNavigationMapper, C
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新
|
// 3.密码可见
|
||||||
|
if(StrUtil.isNotBlank(navigation.getPassword())){
|
||||||
|
navigation.setPassword(userService.encodePassword(navigation.getPassword()));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新操作
|
||||||
navigation.setPath(path);
|
navigation.setPath(path);
|
||||||
navigation.setComponent(component);
|
navigation.setComponent(component);
|
||||||
updateById(navigation);
|
updateById(navigation);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class CmsProductServiceImpl extends ServiceImpl<CmsProductMapper, CmsProd
|
|||||||
@Override
|
@Override
|
||||||
public PageResult<CmsProduct> pageRel(CmsProductParam param) {
|
public PageResult<CmsProduct> pageRel(CmsProductParam param) {
|
||||||
PageParam<CmsProduct, CmsProductParam> page = new PageParam<>(param);
|
PageParam<CmsProduct, CmsProductParam> page = new PageParam<>(param);
|
||||||
page.setDefaultOrder("create_time desc");
|
page.setDefaultOrder("sortNumber asc,create_time desc");
|
||||||
List<CmsProduct> list = baseMapper.selectPageRel(page, param);
|
List<CmsProduct> list = baseMapper.selectPageRel(page, param);
|
||||||
return new PageResult<>(list, page.getTotal());
|
return new PageResult<>(list, page.getTotal());
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ public class CmsProductServiceImpl extends ServiceImpl<CmsProductMapper, CmsProd
|
|||||||
List<CmsProduct> list = baseMapper.selectListRel(param);
|
List<CmsProduct> list = baseMapper.selectListRel(param);
|
||||||
// 排序
|
// 排序
|
||||||
PageParam<CmsProduct, CmsProductParam> page = new PageParam<>();
|
PageParam<CmsProduct, CmsProductParam> page = new PageParam<>();
|
||||||
page.setDefaultOrder("create_time desc");
|
page.setDefaultOrder("sortNumber asc,create_time desc");
|
||||||
return page.sortRecords(list);
|
return page.sortRecords(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class CmsProductUrlServiceImpl extends ServiceImpl<CmsProductUrlMapper, C
|
|||||||
@Override
|
@Override
|
||||||
public PageResult<CmsProductUrl> pageRel(CmsProductUrlParam param) {
|
public PageResult<CmsProductUrl> pageRel(CmsProductUrlParam param) {
|
||||||
PageParam<CmsProductUrl, CmsProductUrlParam> page = new PageParam<>(param);
|
PageParam<CmsProductUrl, CmsProductUrlParam> page = new PageParam<>(param);
|
||||||
page.setDefaultOrder("create_time desc");
|
page.setDefaultOrder("create_time asc");
|
||||||
List<CmsProductUrl> list = baseMapper.selectPageRel(page, param);
|
List<CmsProductUrl> list = baseMapper.selectPageRel(page, param);
|
||||||
return new PageResult<>(list, page.getTotal());
|
return new PageResult<>(list, page.getTotal());
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ public class CmsProductUrlServiceImpl extends ServiceImpl<CmsProductUrlMapper, C
|
|||||||
List<CmsProductUrl> list = baseMapper.selectListRel(param);
|
List<CmsProductUrl> list = baseMapper.selectListRel(param);
|
||||||
// 排序
|
// 排序
|
||||||
PageParam<CmsProductUrl, CmsProductUrlParam> page = new PageParam<>();
|
PageParam<CmsProductUrl, CmsProductUrlParam> page = new PageParam<>();
|
||||||
page.setDefaultOrder("create_time desc");
|
page.setDefaultOrder("create_time asc");
|
||||||
return page.sortRecords(list);
|
return page.sortRecords(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ public class MybatisPlusConfig {
|
|||||||
public boolean ignoreTable(String tableName) {
|
public boolean ignoreTable(String tableName) {
|
||||||
return Arrays.asList(
|
return Arrays.asList(
|
||||||
"sys_tenant",
|
"sys_tenant",
|
||||||
|
// "sys_user",
|
||||||
"sys_dictionary",
|
"sys_dictionary",
|
||||||
"sys_dictionary_data",
|
"sys_dictionary_data",
|
||||||
"sys_user_oauth",
|
"sys_user_oauth",
|
||||||
@@ -73,6 +74,7 @@ public class MybatisPlusConfig {
|
|||||||
"sys_environment",
|
"sys_environment",
|
||||||
"sys_components",
|
"sys_components",
|
||||||
"sys_website_field",
|
"sys_website_field",
|
||||||
|
// "sys_company",
|
||||||
"sys_domain",
|
"sys_domain",
|
||||||
"sys_white_domain",
|
"sys_white_domain",
|
||||||
"cms_website",
|
"cms_website",
|
||||||
|
|||||||
@@ -581,6 +581,7 @@ public class MainController extends BaseController {
|
|||||||
|
|
||||||
// 租户初始化
|
// 租户初始化
|
||||||
final Company company = new Company();
|
final Company company = new Company();
|
||||||
|
company.setDomain(tenant.getTenantId().toString().concat(".websoft.top"));
|
||||||
company.setEmail(email);
|
company.setEmail(email);
|
||||||
company.setPhone(phone);
|
company.setPhone(phone);
|
||||||
company.setPassword(password);
|
company.setPassword(password);
|
||||||
|
|||||||
@@ -65,6 +65,9 @@ public class MerchantApply implements Serializable {
|
|||||||
@ApiModelProperty(value = "是否需要审核")
|
@ApiModelProperty(value = "是否需要审核")
|
||||||
private Integer goodsReview;
|
private Integer goodsReview;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "用户ID")
|
||||||
|
private Integer userId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "备注")
|
@ApiModelProperty(value = "备注")
|
||||||
private String comments;
|
private String comments;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
* 商户账号控制器
|
* 商户账号控制器
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Api(tags = "商户账号管理")
|
@Api(tags = "商户账号管理")
|
||||||
@RestController
|
@RestController
|
||||||
@@ -41,11 +41,8 @@ public class ShopMerchantAccountController extends BaseController {
|
|||||||
@ApiOperation("查询全部商户账号")
|
@ApiOperation("查询全部商户账号")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public ApiResult<List<ShopMerchantAccount>> list(ShopMerchantAccountParam param) {
|
public ApiResult<List<ShopMerchantAccount>> list(ShopMerchantAccountParam param) {
|
||||||
PageParam<ShopMerchantAccount, ShopMerchantAccountParam> page = new PageParam<>(param);
|
|
||||||
page.setDefaultOrder("create_time desc");
|
|
||||||
return success(shopMerchantAccountService.list(page.getOrderWrapper()));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantAccountService.listRel(param));
|
return success(shopMerchantAccountService.listRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('shop:shopMerchantAccount:list')")
|
@PreAuthorize("hasAuthority('shop:shopMerchantAccount:list')")
|
||||||
@@ -53,9 +50,8 @@ public class ShopMerchantAccountController extends BaseController {
|
|||||||
@ApiOperation("根据id查询商户账号")
|
@ApiOperation("根据id查询商户账号")
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<ShopMerchantAccount> get(@PathVariable("id") Integer id) {
|
public ApiResult<ShopMerchantAccount> get(@PathVariable("id") Integer id) {
|
||||||
return success(shopMerchantAccountService.getById(id));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantAccountService.getByIdRel(id));
|
return success(shopMerchantAccountService.getByIdRel(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("添加商户账号")
|
@ApiOperation("添加商户账号")
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
* 商户入驻申请控制器
|
* 商户入驻申请控制器
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 08:08:23
|
||||||
*/
|
*/
|
||||||
@Api(tags = "商户入驻申请管理")
|
@Api(tags = "商户入驻申请管理")
|
||||||
@RestController
|
@RestController
|
||||||
@@ -41,11 +41,8 @@ public class ShopMerchantApplyController extends BaseController {
|
|||||||
@ApiOperation("查询全部商户入驻申请")
|
@ApiOperation("查询全部商户入驻申请")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public ApiResult<List<ShopMerchantApply>> list(ShopMerchantApplyParam param) {
|
public ApiResult<List<ShopMerchantApply>> list(ShopMerchantApplyParam param) {
|
||||||
PageParam<ShopMerchantApply, ShopMerchantApplyParam> page = new PageParam<>(param);
|
|
||||||
page.setDefaultOrder("create_time desc");
|
|
||||||
return success(shopMerchantApplyService.list(page.getOrderWrapper()));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantApplyService.listRel(param));
|
return success(shopMerchantApplyService.listRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('shop:shopMerchantApply:list')")
|
@PreAuthorize("hasAuthority('shop:shopMerchantApply:list')")
|
||||||
@@ -53,9 +50,8 @@ public class ShopMerchantApplyController extends BaseController {
|
|||||||
@ApiOperation("根据id查询商户入驻申请")
|
@ApiOperation("根据id查询商户入驻申请")
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<ShopMerchantApply> get(@PathVariable("id") Integer id) {
|
public ApiResult<ShopMerchantApply> get(@PathVariable("id") Integer id) {
|
||||||
return success(shopMerchantApplyService.getById(id));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantApplyService.getByIdRel(id));
|
return success(shopMerchantApplyService.getByIdRel(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("添加商户入驻申请")
|
@ApiOperation("添加商户入驻申请")
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.gxwebsoft.shop.controller;
|
package com.gxwebsoft.shop.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.gxwebsoft.common.core.web.BaseController;
|
import com.gxwebsoft.common.core.web.BaseController;
|
||||||
import com.gxwebsoft.common.system.entity.User;
|
import com.gxwebsoft.common.system.entity.User;
|
||||||
import com.gxwebsoft.shop.service.ShopMerchantService;
|
import com.gxwebsoft.shop.service.ShopMerchantService;
|
||||||
@@ -22,7 +23,7 @@ import java.util.List;
|
|||||||
* 商户控制器
|
* 商户控制器
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Api(tags = "商户管理")
|
@Api(tags = "商户管理")
|
||||||
@RestController
|
@RestController
|
||||||
@@ -41,21 +42,17 @@ public class ShopMerchantController extends BaseController {
|
|||||||
@ApiOperation("查询全部商户")
|
@ApiOperation("查询全部商户")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public ApiResult<List<ShopMerchant>> list(ShopMerchantParam param) {
|
public ApiResult<List<ShopMerchant>> list(ShopMerchantParam param) {
|
||||||
PageParam<ShopMerchant, ShopMerchantParam> page = new PageParam<>(param);
|
|
||||||
page.setDefaultOrder("create_time desc");
|
|
||||||
return success(shopMerchantService.list(page.getOrderWrapper()));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantService.listRel(param));
|
return success(shopMerchantService.listRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('shop:shopMerchant:list')")
|
@PreAuthorize("hasAuthority('shop:shopMerchant:list')")
|
||||||
@OperationLog
|
@OperationLog
|
||||||
@ApiOperation("根据id查询商户")
|
@ApiOperation("根据id查询商户")
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<ShopMerchant> get(@PathVariable("id") Integer id) {
|
public ApiResult<ShopMerchant> get(@PathVariable("id") Long id) {
|
||||||
return success(shopMerchantService.getById(id));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantService.getByIdRel(id));
|
return success(shopMerchantService.getByIdRel(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("添加商户")
|
@ApiOperation("添加商户")
|
||||||
@@ -117,4 +114,12 @@ public class ShopMerchantController extends BaseController {
|
|||||||
return fail("删除失败");
|
return fail("删除失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("我的商户信息")
|
||||||
|
@GetMapping("/getByUserId")
|
||||||
|
public ApiResult<ShopMerchant> getByUserId() {
|
||||||
|
// 使用关联查询
|
||||||
|
final ShopMerchant shopMerchant = shopMerchantService.getOne(new LambdaQueryWrapper<ShopMerchant>().eq(ShopMerchant::getUserId, getLoginUser().getUserId()).last("limit 1"));
|
||||||
|
return success(shopMerchant);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
* 门店销售统计表控制器
|
* 门店销售统计表控制器
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Api(tags = "门店销售统计表管理")
|
@Api(tags = "门店销售统计表管理")
|
||||||
@RestController
|
@RestController
|
||||||
@@ -41,11 +41,8 @@ public class ShopMerchantCountController extends BaseController {
|
|||||||
@ApiOperation("查询全部门店销售统计表")
|
@ApiOperation("查询全部门店销售统计表")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public ApiResult<List<ShopMerchantCount>> list(ShopMerchantCountParam param) {
|
public ApiResult<List<ShopMerchantCount>> list(ShopMerchantCountParam param) {
|
||||||
PageParam<ShopMerchantCount, ShopMerchantCountParam> page = new PageParam<>(param);
|
|
||||||
page.setDefaultOrder("create_time desc");
|
|
||||||
return success(shopMerchantCountService.list(page.getOrderWrapper()));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantCountService.listRel(param));
|
return success(shopMerchantCountService.listRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('shop:shopMerchantCount:list')")
|
@PreAuthorize("hasAuthority('shop:shopMerchantCount:list')")
|
||||||
@@ -53,9 +50,8 @@ public class ShopMerchantCountController extends BaseController {
|
|||||||
@ApiOperation("根据id查询门店销售统计表")
|
@ApiOperation("根据id查询门店销售统计表")
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<ShopMerchantCount> get(@PathVariable("id") Integer id) {
|
public ApiResult<ShopMerchantCount> get(@PathVariable("id") Integer id) {
|
||||||
return success(shopMerchantCountService.getById(id));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantCountService.getByIdRel(id));
|
return success(shopMerchantCountService.getByIdRel(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("添加门店销售统计表")
|
@ApiOperation("添加门店销售统计表")
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
* 商户类型控制器
|
* 商户类型控制器
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:52
|
||||||
*/
|
*/
|
||||||
@Api(tags = "商户类型管理")
|
@Api(tags = "商户类型管理")
|
||||||
@RestController
|
@RestController
|
||||||
@@ -41,11 +41,8 @@ public class ShopMerchantTypeController extends BaseController {
|
|||||||
@ApiOperation("查询全部商户类型")
|
@ApiOperation("查询全部商户类型")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public ApiResult<List<ShopMerchantType>> list(ShopMerchantTypeParam param) {
|
public ApiResult<List<ShopMerchantType>> list(ShopMerchantTypeParam param) {
|
||||||
PageParam<ShopMerchantType, ShopMerchantTypeParam> page = new PageParam<>(param);
|
|
||||||
page.setDefaultOrder("create_time desc");
|
|
||||||
return success(shopMerchantTypeService.list(page.getOrderWrapper()));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantTypeService.listRel(param));
|
return success(shopMerchantTypeService.listRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('shop:shopMerchantType:list')")
|
@PreAuthorize("hasAuthority('shop:shopMerchantType:list')")
|
||||||
@@ -53,9 +50,8 @@ public class ShopMerchantTypeController extends BaseController {
|
|||||||
@ApiOperation("根据id查询商户类型")
|
@ApiOperation("根据id查询商户类型")
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<ShopMerchantType> get(@PathVariable("id") Integer id) {
|
public ApiResult<ShopMerchantType> get(@PathVariable("id") Integer id) {
|
||||||
return success(shopMerchantTypeService.getById(id));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(shopMerchantTypeService.getByIdRel(id));
|
return success(shopMerchantTypeService.getByIdRel(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("添加商户类型")
|
@ApiOperation("添加商户类型")
|
||||||
|
|||||||
@@ -3,9 +3,11 @@ package com.gxwebsoft.shop.entity;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.util.Date;
|
import java.time.LocalDateTime;
|
||||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -15,7 +17,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 商户
|
* 商户
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@@ -25,7 +27,7 @@ public class ShopMerchant implements Serializable {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "ID")
|
@ApiModelProperty(value = "ID")
|
||||||
@TableId(value = "merchant_id", type = IdType.AUTO)
|
@TableId(value = "merchant_id", type = IdType.AUTO)
|
||||||
private Long merchantId;
|
private Integer merchantId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "商户名称")
|
@ApiModelProperty(value = "商户名称")
|
||||||
private String merchantName;
|
private String merchantName;
|
||||||
@@ -54,9 +56,19 @@ public class ShopMerchant implements Serializable {
|
|||||||
@ApiModelProperty(value = "商户分类")
|
@ApiModelProperty(value = "商户分类")
|
||||||
private String category;
|
private String category;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商户经营分类")
|
||||||
|
private Integer merchantCategoryId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商户分类")
|
||||||
|
private String merchantCategoryTitle;
|
||||||
|
|
||||||
@ApiModelProperty(value = "经纬度")
|
@ApiModelProperty(value = "经纬度")
|
||||||
private String lngAndLat;
|
private String lngAndLat;
|
||||||
|
|
||||||
|
private String lng;
|
||||||
|
|
||||||
|
private String lat;
|
||||||
|
|
||||||
@ApiModelProperty(value = "所在省份")
|
@ApiModelProperty(value = "所在省份")
|
||||||
private String province;
|
private String province;
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,10 @@ package com.gxwebsoft.shop.entity;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.util.Date;
|
import java.time.LocalDateTime;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -13,7 +15,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 商户账号
|
* 商户账号
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@@ -32,7 +34,7 @@ public class ShopMerchantAccount implements Serializable {
|
|||||||
private String realName;
|
private String realName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "商户ID")
|
@ApiModelProperty(value = "商户ID")
|
||||||
private Long merchantId;
|
private Integer merchantId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "角色ID")
|
@ApiModelProperty(value = "角色ID")
|
||||||
private Integer roleId;
|
private Integer roleId;
|
||||||
|
|||||||
@@ -3,8 +3,10 @@ package com.gxwebsoft.shop.entity;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.util.Date;
|
import java.time.LocalDateTime;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -14,7 +16,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 商户入驻申请
|
* 商户入驻申请
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 08:08:23
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@@ -38,6 +40,9 @@ public class ShopMerchantApply implements Serializable {
|
|||||||
@ApiModelProperty(value = "商户姓名")
|
@ApiModelProperty(value = "商户姓名")
|
||||||
private String realName;
|
private String realName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "身份证号码")
|
||||||
|
private String idCard;
|
||||||
|
|
||||||
@ApiModelProperty(value = "店铺类型")
|
@ApiModelProperty(value = "店铺类型")
|
||||||
private String shopType;
|
private String shopType;
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,10 @@ package com.gxwebsoft.shop.entity;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.util.Date;
|
import java.time.LocalDateTime;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -13,7 +15,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 门店销售统计表
|
* 门店销售统计表
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -2,8 +2,10 @@ package com.gxwebsoft.shop.entity;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.util.Date;
|
import java.time.LocalDateTime;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -13,7 +15,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 商户类型
|
* 商户类型
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:52
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* 商户账号Mapper
|
* 商户账号Mapper
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantAccountMapper extends BaseMapper<ShopMerchantAccount> {
|
public interface ShopMerchantAccountMapper extends BaseMapper<ShopMerchantAccount> {
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* 商户入驻申请Mapper
|
* 商户入驻申请Mapper
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 08:08:23
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantApplyMapper extends BaseMapper<ShopMerchantApply> {
|
public interface ShopMerchantApplyMapper extends BaseMapper<ShopMerchantApply> {
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* 门店销售统计表Mapper
|
* 门店销售统计表Mapper
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantCountMapper extends BaseMapper<ShopMerchantCount> {
|
public interface ShopMerchantCountMapper extends BaseMapper<ShopMerchantCount> {
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* 商户Mapper
|
* 商户Mapper
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantMapper extends BaseMapper<ShopMerchant> {
|
public interface ShopMerchantMapper extends BaseMapper<ShopMerchant> {
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* 商户类型Mapper
|
* 商户类型Mapper
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:52
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantTypeMapper extends BaseMapper<ShopMerchantType> {
|
public interface ShopMerchantTypeMapper extends BaseMapper<ShopMerchantType> {
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,9 @@
|
|||||||
<if test="param.realName != null">
|
<if test="param.realName != null">
|
||||||
AND a.real_name LIKE CONCAT('%', #{param.realName}, '%')
|
AND a.real_name LIKE CONCAT('%', #{param.realName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.idCard != null">
|
||||||
|
AND a.id_card LIKE CONCAT('%', #{param.idCard}, '%')
|
||||||
|
</if>
|
||||||
<if test="param.shopType != null">
|
<if test="param.shopType != null">
|
||||||
AND a.shop_type LIKE CONCAT('%', #{param.shopType}, '%')
|
AND a.shop_type LIKE CONCAT('%', #{param.shopType}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -37,9 +37,21 @@
|
|||||||
<if test="param.category != null">
|
<if test="param.category != null">
|
||||||
AND a.category LIKE CONCAT('%', #{param.category}, '%')
|
AND a.category LIKE CONCAT('%', #{param.category}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.merchantCategoryId != null">
|
||||||
|
AND a.merchant_category_id = #{param.merchantCategoryId}
|
||||||
|
</if>
|
||||||
|
<if test="param.merchantCategoryTitle != null">
|
||||||
|
AND a.merchant_category_title LIKE CONCAT('%', #{param.merchantCategoryTitle}, '%')
|
||||||
|
</if>
|
||||||
<if test="param.lngAndLat != null">
|
<if test="param.lngAndLat != null">
|
||||||
AND a.lng_and_lat LIKE CONCAT('%', #{param.lngAndLat}, '%')
|
AND a.lng_and_lat LIKE CONCAT('%', #{param.lngAndLat}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.lng != null">
|
||||||
|
AND a.lng LIKE CONCAT('%', #{param.lng}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="param.lat != null">
|
||||||
|
AND a.lat LIKE CONCAT('%', #{param.lat}, '%')
|
||||||
|
</if>
|
||||||
<if test="param.province != null">
|
<if test="param.province != null">
|
||||||
AND a.province LIKE CONCAT('%', #{param.province}, '%')
|
AND a.province LIKE CONCAT('%', #{param.province}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 商户账号查询参数
|
* 商户账号查询参数
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.math.BigDecimal;
|
|||||||
* 商户入驻申请查询参数
|
* 商户入驻申请查询参数
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 08:08:23
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@@ -40,6 +40,9 @@ public class ShopMerchantApplyParam extends BaseParam {
|
|||||||
@ApiModelProperty(value = "商户姓名")
|
@ApiModelProperty(value = "商户姓名")
|
||||||
private String realName;
|
private String realName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "身份证号码")
|
||||||
|
private String idCard;
|
||||||
|
|
||||||
@ApiModelProperty(value = "店铺类型")
|
@ApiModelProperty(value = "店铺类型")
|
||||||
private String shopType;
|
private String shopType;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 门店销售统计表查询参数
|
* 门店销售统计表查询参数
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.math.BigDecimal;
|
|||||||
* 商户查询参数
|
* 商户查询参数
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@@ -56,9 +56,20 @@ public class ShopMerchantParam extends BaseParam {
|
|||||||
@ApiModelProperty(value = "商户分类")
|
@ApiModelProperty(value = "商户分类")
|
||||||
private String category;
|
private String category;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商户经营分类")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
|
private Integer merchantCategoryId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "商户分类")
|
||||||
|
private String merchantCategoryTitle;
|
||||||
|
|
||||||
@ApiModelProperty(value = "经纬度")
|
@ApiModelProperty(value = "经纬度")
|
||||||
private String lngAndLat;
|
private String lngAndLat;
|
||||||
|
|
||||||
|
private String lng;
|
||||||
|
|
||||||
|
private String lat;
|
||||||
|
|
||||||
@ApiModelProperty(value = "所在省份")
|
@ApiModelProperty(value = "所在省份")
|
||||||
private String province;
|
private String province;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 商户类型查询参数
|
* 商户类型查询参数
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
* 商户账号Service
|
* 商户账号Service
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantAccountService extends IService<ShopMerchantAccount> {
|
public interface ShopMerchantAccountService extends IService<ShopMerchantAccount> {
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
* 商户入驻申请Service
|
* 商户入驻申请Service
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 08:08:23
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantApplyService extends IService<ShopMerchantApply> {
|
public interface ShopMerchantApplyService extends IService<ShopMerchantApply> {
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
* 门店销售统计表Service
|
* 门店销售统计表Service
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantCountService extends IService<ShopMerchantCount> {
|
public interface ShopMerchantCountService extends IService<ShopMerchantCount> {
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
* 商户Service
|
* 商户Service
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantService extends IService<ShopMerchant> {
|
public interface ShopMerchantService extends IService<ShopMerchant> {
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
* 商户类型Service
|
* 商户类型Service
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:52
|
||||||
*/
|
*/
|
||||||
public interface ShopMerchantTypeService extends IService<ShopMerchantType> {
|
public interface ShopMerchantTypeService extends IService<ShopMerchantType> {
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
* 商户账号Service实现
|
* 商户账号Service实现
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ShopMerchantAccountServiceImpl extends ServiceImpl<ShopMerchantAccountMapper, ShopMerchantAccount> implements ShopMerchantAccountService {
|
public class ShopMerchantAccountServiceImpl extends ServiceImpl<ShopMerchantAccountMapper, ShopMerchantAccount> implements ShopMerchantAccountService {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
* 商户入驻申请Service实现
|
* 商户入驻申请Service实现
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 08:08:23
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ShopMerchantApplyServiceImpl extends ServiceImpl<ShopMerchantApplyMapper, ShopMerchantApply> implements ShopMerchantApplyService {
|
public class ShopMerchantApplyServiceImpl extends ServiceImpl<ShopMerchantApplyMapper, ShopMerchantApply> implements ShopMerchantApplyService {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
* 门店销售统计表Service实现
|
* 门店销售统计表Service实现
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ShopMerchantCountServiceImpl extends ServiceImpl<ShopMerchantCountMapper, ShopMerchantCount> implements ShopMerchantCountService {
|
public class ShopMerchantCountServiceImpl extends ServiceImpl<ShopMerchantCountMapper, ShopMerchantCount> implements ShopMerchantCountService {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
* 商户Service实现
|
* 商户Service实现
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:51
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ShopMerchantServiceImpl extends ServiceImpl<ShopMerchantMapper, ShopMerchant> implements ShopMerchantService {
|
public class ShopMerchantServiceImpl extends ServiceImpl<ShopMerchantMapper, ShopMerchant> implements ShopMerchantService {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
* 商户类型Service实现
|
* 商户类型Service实现
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2024-09-10 21:05:07
|
* @since 2024-10-02 10:07:52
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ShopMerchantTypeServiceImpl extends ServiceImpl<ShopMerchantTypeMapper, ShopMerchantType> implements ShopMerchantTypeService {
|
public class ShopMerchantTypeServiceImpl extends ServiceImpl<ShopMerchantTypeMapper, ShopMerchantType> implements ShopMerchantTypeService {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# 数据源配置
|
# 数据源配置
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://47.119.165.234:3308/gxwebsoft_core?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
url: jdbc:mysql://47.119.165.234:3308/gxwebsoft_core?useSSL=false&serverTimezone=UTC
|
||||||
username: gxwebsoft_core
|
username: gxwebsoft_core
|
||||||
password: jdj7HYEdYHnYEFBy
|
password: jdj7HYEdYHnYEFBy
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# 数据源配置
|
# 数据源配置
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://127.0.0.1:3308/gxwebsoft_core?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
url: jdbc:mysql://127.0.0.1:3308/gxwebsoft_core?useSSL=false&serverTimezone=UTC
|
||||||
username: gxwebsoft_core
|
username: gxwebsoft_core
|
||||||
password: jdj7HYEdYHnYEFBy
|
password: jdj7HYEdYHnYEFBy
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# 端口
|
# 端口
|
||||||
server:
|
server:
|
||||||
port: 9090
|
port: 30000
|
||||||
# socketIo
|
# socketIo
|
||||||
socketio:
|
socketio:
|
||||||
port: 9191
|
port: 30091
|
||||||
# 多环境配置
|
# 多环境配置
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import java.util.Map;
|
|||||||
* @author WebSoft
|
* @author WebSoft
|
||||||
* @since 2021-09-05 00:31:14
|
* @since 2021-09-05 00:31:14
|
||||||
*/
|
*/
|
||||||
public class MallGenerator {
|
public class ShoplGenerator {
|
||||||
// 输出位置
|
// 输出位置
|
||||||
private static final String OUTPUT_LOCATION = System.getProperty("user.dir");
|
private static final String OUTPUT_LOCATION = System.getProperty("user.dir");
|
||||||
//private static final String OUTPUT_LOCATION = "D:/codegen"; // 不想生成到项目中可以写磁盘路径
|
//private static final String OUTPUT_LOCATION = "D:/codegen"; // 不想生成到项目中可以写磁盘路径
|
||||||
@@ -46,40 +46,40 @@ public class MallGenerator {
|
|||||||
private static final String MODULE_NAME = "shop";
|
private static final String MODULE_NAME = "shop";
|
||||||
// 需要生成的表
|
// 需要生成的表
|
||||||
private static final String[] TABLE_NAMES = new String[]{
|
private static final String[] TABLE_NAMES = new String[]{
|
||||||
"shop_brand",
|
// "shop_brand",
|
||||||
"shop_cart",
|
// "shop_cart",
|
||||||
"shop_cashier",
|
// "shop_cashier",
|
||||||
"shop_count",
|
// "shop_count",
|
||||||
"shop_dealer_apply",
|
// "shop_dealer_apply",
|
||||||
"shop_dealer_capital",
|
// "shop_dealer_capital",
|
||||||
"shop_dealer_order",
|
// "shop_dealer_order",
|
||||||
"shop_dealer_referee",
|
// "shop_dealer_referee",
|
||||||
"shop_dealer_setting",
|
// "shop_dealer_setting",
|
||||||
"shop_dealer_user",
|
// "shop_dealer_user",
|
||||||
"shop_dealer_withdraw",
|
// "shop_dealer_withdraw",
|
||||||
"shop_goods",
|
// "shop_goods",
|
||||||
"shop_goods_category",
|
// "shop_goods_category",
|
||||||
"shop_goods_comment",
|
// "shop_goods_comment",
|
||||||
"shop_goods_coupon",
|
// "shop_goods_coupon",
|
||||||
"shop_goods_log",
|
// "shop_goods_log",
|
||||||
"shop_goods_relation",
|
// "shop_goods_relation",
|
||||||
"shop_goods_sku",
|
// "shop_goods_sku",
|
||||||
"shop_goods_spec",
|
// "shop_goods_spec",
|
||||||
"shop_merchant",
|
"shop_merchant",
|
||||||
"shop_merchant_account",
|
"shop_merchant_account",
|
||||||
"shop_merchant_apply",
|
// "shop_merchant_apply",
|
||||||
"shop_merchant_count",
|
"shop_merchant_count",
|
||||||
"shop_merchant_type",
|
"shop_merchant_type",
|
||||||
"shop_order",
|
// "shop_order",
|
||||||
"shop_order_cart_info",
|
// "shop_order_cart_info",
|
||||||
"shop_order_goods",
|
// "shop_order_goods",
|
||||||
"shop_order_info",
|
// "shop_order_info",
|
||||||
"shop_order_info_log",
|
// "shop_order_info_log",
|
||||||
"shop_spec",
|
// "shop_spec",
|
||||||
"shop_spec_value",
|
// "shop_spec_value",
|
||||||
"shop_user_address",
|
// "shop_user_address",
|
||||||
"shop_user_collection",
|
// "shop_user_collection",
|
||||||
"shop_wechat_deposit"
|
// "shop_wechat_deposit"
|
||||||
};
|
};
|
||||||
// 需要去除的表前缀
|
// 需要去除的表前缀
|
||||||
private static final String[] TABLE_PREFIX = new String[]{
|
private static final String[] TABLE_PREFIX = new String[]{
|
||||||
Reference in New Issue
Block a user