feat:
1. prod
This commit is contained in:
@@ -6,10 +6,10 @@ CREATE TABLE mall_product
|
||||
main_img VARCHAR(255) DEFAULT '' NOT NULL, --缩略图
|
||||
detail_img text NULL, --详情图
|
||||
top_img text NULL, -- 详情页顶图
|
||||
sku_detail text DEFAULT '' NOT NULL,
|
||||
attribute text DEFAULT '' NOT NULL,
|
||||
unit VARCHAR(12),
|
||||
cate_id VARCHAR(255) DEFAULT '' NOT NULL,
|
||||
cate_ids VARCHAR(255) DEFAULT '' NOT NULL,
|
||||
category_id VARCHAR(255) DEFAULT '' NOT NULL,
|
||||
category_ids VARCHAR(255) DEFAULT '' NOT NULL,
|
||||
cost_price DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,
|
||||
original_price DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,
|
||||
retail_price DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,
|
||||
@@ -34,10 +34,10 @@ COMMENT ON COLUMN mall_product.spu_name IS '商品名称';
|
||||
COMMENT ON COLUMN mall_product.main_img IS '主图';
|
||||
COMMENT ON COLUMN mall_product.detail_img IS '详情图(多图,逗号分割)';
|
||||
COMMENT ON COLUMN mall_product.top_img IS '顶图(多图,逗号分割)';
|
||||
COMMENT ON COLUMN mall_product.sku_detail IS '规格详情';
|
||||
COMMENT ON COLUMN mall_product.attribute IS '规格详情';
|
||||
COMMENT ON COLUMN mall_product.unit IS '单位';
|
||||
COMMENT ON COLUMN mall_product.cate_id IS 'cate_id分类';
|
||||
COMMENT ON COLUMN mall_product.cate_ids IS 'cate_id分类';
|
||||
COMMENT ON COLUMN mall_product.category_id IS 'cate_id分类';
|
||||
COMMENT ON COLUMN mall_product.category_ids IS 'cate_id分类';
|
||||
COMMENT ON COLUMN mall_product.cost_price IS '成本价';
|
||||
COMMENT ON COLUMN mall_product.original_price IS '原价';
|
||||
COMMENT ON COLUMN mall_product.retail_price IS '销售价';
|
||||
@@ -57,7 +57,7 @@ alter table mall_product
|
||||
|
||||
|
||||
-- 缺图片
|
||||
CREATE TABLE spu_category
|
||||
CREATE TABLE mall_category
|
||||
(
|
||||
id int8 NOT NULL PRIMARY KEY,
|
||||
cname VARCHAR(100) DEFAULT '' NOT NULL,
|
||||
@@ -74,20 +74,20 @@ CREATE TABLE spu_category
|
||||
);
|
||||
|
||||
|
||||
COMMENT ON TABLE spu_category IS '商品分类';
|
||||
COMMENT ON COLUMN spu_category.id IS '主键';
|
||||
COMMENT ON COLUMN spu_category.cname IS '分类名称';
|
||||
COMMENT ON COLUMN spu_category.img IS '图片';
|
||||
COMMENT ON COLUMN spu_category.pid IS 'pid';
|
||||
COMMENT ON COLUMN spu_category.level IS 'level';
|
||||
COMMENT ON COLUMN spu_category.is_deleted IS '是否已删除';
|
||||
COMMENT ON COLUMN spu_category.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN spu_category.create_user IS '创建人';
|
||||
COMMENT ON COLUMN spu_category.update_time IS '修改时间';
|
||||
COMMENT ON COLUMN spu_category.update_user IS '修改人';
|
||||
COMMENT ON COLUMN spu_category.status IS '状态';
|
||||
COMMENT ON COLUMN spu_category.create_dept IS '创建部门';
|
||||
alter table spu_category
|
||||
COMMENT ON TABLE mall_category IS '商品分类';
|
||||
COMMENT ON COLUMN mall_category.id IS '主键';
|
||||
COMMENT ON COLUMN mall_category.cname IS '分类名称';
|
||||
COMMENT ON COLUMN mall_category.img IS '图片';
|
||||
COMMENT ON COLUMN mall_category.pid IS 'pid';
|
||||
COMMENT ON COLUMN mall_category.level IS 'level';
|
||||
COMMENT ON COLUMN mall_category.is_deleted IS '是否已删除';
|
||||
COMMENT ON COLUMN mall_category.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN mall_category.create_user IS '创建人';
|
||||
COMMENT ON COLUMN mall_category.update_time IS '修改时间';
|
||||
COMMENT ON COLUMN mall_category.update_user IS '修改人';
|
||||
COMMENT ON COLUMN mall_category.status IS '状态';
|
||||
COMMENT ON COLUMN mall_category.create_dept IS '创建部门';
|
||||
alter table mall_category
|
||||
owner to yicha1lu;
|
||||
|
||||
--改成全局购物车
|
||||
|
||||
@@ -2,7 +2,7 @@ create table user_market_info
|
||||
(
|
||||
id int8 not null primary key, --user_id
|
||||
pid int8,
|
||||
synchronized int4 default 0, --是否同步
|
||||
has_synchronized int4 default 0, --是否同步
|
||||
vendor int4 default 0, -- 是否成为服务商 0-否 1-是
|
||||
e_signed int4 default 0, -- 是否已经签署电子合同 0-否 1-是
|
||||
e_signed_url text, -- 电子合同地址
|
||||
@@ -40,3 +40,27 @@ comment on column user_market_info.update_user is '修改人';
|
||||
comment on column user_market_info.update_time is '修改时间';
|
||||
comment on column user_market_info.status is '状态';
|
||||
comment on column user_market_info.is_deleted is '是否已删除';
|
||||
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark,
|
||||
is_deleted)
|
||||
VALUES ('2019319816467976193', '1123598815738675201', 'marketInfo', '用户拓展信息表', 'menu', '/market/marketInfo',
|
||||
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 ('2019319816467976194', '2019319816467976193', 'marketInfo_add', '新增', 'add', '/market/marketInfo/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 ('2019319816467976195', '2019319816467976193', 'marketInfo_edit', '修改', 'edit', '/market/marketInfo/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 ('2019319816467976196', '2019319816467976193', 'marketInfo_delete', '删除', 'delete',
|
||||
'/api/blade-marketinfo/marketInfo/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 ('2019319816467976197', '2019319816467976193', 'marketInfo_view', '查看', 'view', '/market/marketInfo/view',
|
||||
'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
10
doc/sql/update/marketinfo.menu.sql
Normal file
10
doc/sql/update/marketinfo.menu.sql
Normal file
@@ -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 ('2019329745643835393', '1123598815738675201', 'marketInfo', '用户拓展信息表', 'menu', '/market/marketInfo', 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 ('2019329745643835394', '2019329745643835393', 'marketInfo_add', '新增', 'add', '/market/marketInfo/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 ('2019329745643835395', '2019329745643835393', 'marketInfo_edit', '修改', 'edit', '/market/marketInfo/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 ('2019329745643835396', '2019329745643835393', 'marketInfo_delete', '删除', 'delete', '/api/blade-marketinfo/marketInfo/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 ('2019329745643835397', '2019329745643835393', 'marketInfo_view', '查看', 'view', '/market/marketInfo/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springblade.modules.app.controller;
|
||||
package org.springblade.modules.api.app;
|
||||
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springblade.modules.app.controller;
|
||||
package org.springblade.modules.api.app;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -1,13 +1,11 @@
|
||||
package org.springblade.modules.app.controller;
|
||||
package org.springblade.modules.api.app;
|
||||
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.modules.develop.pojo.entity.Code;
|
||||
import org.springblade.modules.system.service.IUserService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.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 com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketInfoVO;
|
||||
import org.springblade.modules.market.wrapper.MarketInfoWrapper;
|
||||
import org.springblade.modules.market.service.IMarketInfoService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
/**
|
||||
* 用户拓展信息表 控制器
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/marcket")
|
||||
@Tag(name = "用户拓展信息表", description = "用户拓展信息表接口")
|
||||
public class MarketInfoController extends BladeController {
|
||||
|
||||
private final IMarketInfoService marketInfoService;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketInfo")
|
||||
public R<MarketInfoVO> detail(MarketInfoEntity marketInfo) {
|
||||
MarketInfoEntity detail = marketInfoService.getOne(Condition.getQueryWrapper(marketInfo));
|
||||
return R.data(MarketInfoWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户拓展信息表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketInfo")
|
||||
public R<IPage<MarketInfoVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketInfo, Query query) {
|
||||
IPage<MarketInfoEntity> pages = marketInfoService.page(Condition.getPage(query), Condition.getQueryWrapper(marketInfo, MarketInfoEntity.class));
|
||||
return R.data(MarketInfoWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketInfo")
|
||||
public R<IPage<MarketInfoVO>> page(MarketInfoVO marketInfo, Query query) {
|
||||
IPage<MarketInfoVO> pages = marketInfoService.selectMarketInfoPage(Condition.getPage(query), marketInfo);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketInfo")
|
||||
public R save(@Valid @RequestBody MarketInfoEntity marketInfo) {
|
||||
return R.status(marketInfoService.save(marketInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketInfo")
|
||||
public R update(@Valid @RequestBody MarketInfoEntity marketInfo) {
|
||||
return R.status(marketInfoService.updateById(marketInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketInfo")
|
||||
public R submit(@Valid @RequestBody MarketInfoEntity marketInfo) {
|
||||
return R.status(marketInfoService.saveOrUpdate(marketInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketInfoService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.mapper;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketInfoVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 Mapper 接口
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public interface MarketInfoMapper extends BaseMapper<MarketInfoEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketInfo 查询参数
|
||||
* @return List<MarketInfoVO>
|
||||
*/
|
||||
List<MarketInfoVO> selectMarketInfoPage(IPage page, MarketInfoVO marketInfo);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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.market.mapper.MarketInfoMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="marketInfoResultMap" type="org.springblade.modules.market.pojo.entity.MarketInfoEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="pid" property="pid"/>
|
||||
<result column="has_synchronized" property="hasSynchronized"/>
|
||||
<result column="vendor" property="vendor"/>
|
||||
<result column="e_signed" property="eSigned"/>
|
||||
<result column="e_signed_url" property="eSignedUrl"/>
|
||||
<result column="verified" property="verified"/>
|
||||
<result column="verified_date" property="verifiedDate"/>
|
||||
<result column="real_name" property="realName"/>
|
||||
<result column="id_card" property="idCard"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectMarketInfoPage" resultMap="marketInfoResultMap">
|
||||
select * from user_market_info where is_deleted = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.pojo.dto;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 数据传输对象实体类
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class MarketInfoDTO extends MarketInfoEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.pojo.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.util.Date;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 实体类
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Data
|
||||
@TableName("user_market_info")
|
||||
@Schema(description = "MarketInfo对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class MarketInfoEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 邀请人
|
||||
*/
|
||||
@Schema(description = "邀请人")
|
||||
private Long pid;
|
||||
/**
|
||||
* 是否同步族谱 0-否 1-是
|
||||
*/
|
||||
@Schema(description = "是否同步族谱 0-否 1-是")
|
||||
private Integer has_synchronized;
|
||||
/**
|
||||
* 是否成为服务商 0-否 1-是
|
||||
*/
|
||||
@Schema(description = "是否成为服务商 0-否 1-是")
|
||||
private Integer vendor;
|
||||
/**
|
||||
* 是否签署法大大协议 0-否 1-是
|
||||
*/
|
||||
@Schema(description = "是否签署法大大协议 0-否 1-是")
|
||||
private Integer eSigned;
|
||||
/**
|
||||
* 电子合同地址
|
||||
*/
|
||||
@Schema(description = "电子合同地址")
|
||||
private String eSignedUrl;
|
||||
/**
|
||||
* 是否实名用户 0-否 1-是
|
||||
*/
|
||||
@Schema(description = "是否实名用户 0-否 1-是")
|
||||
private Integer verified;
|
||||
/**
|
||||
* 实名时间
|
||||
*/
|
||||
@Schema(description = "实名时间")
|
||||
private Date verifiedDate;
|
||||
/**
|
||||
* 实名姓名
|
||||
*/
|
||||
@Schema(description = "实名姓名")
|
||||
private String realName;
|
||||
/**
|
||||
* 实名身份证
|
||||
*/
|
||||
@Schema(description = "实名身份证")
|
||||
private String idCard;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.pojo.vo;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 视图实体类
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class MarketInfoVO extends MarketInfoEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.service;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketInfoVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 服务类
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public interface IMarketInfoService extends BaseService<MarketInfoEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketInfo 查询参数
|
||||
* @return IPage<MarketInfoVO>
|
||||
*/
|
||||
IPage<MarketInfoVO> selectMarketInfoPage(IPage<MarketInfoVO> page, MarketInfoVO marketInfo);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.service.impl;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketInfoVO;
|
||||
import org.springblade.modules.market.mapper.MarketInfoMapper;
|
||||
import org.springblade.modules.market.service.IMarketInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 服务实现类
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class MarketInfoServiceImpl extends BaseServiceImpl<MarketInfoMapper, MarketInfoEntity> implements IMarketInfoService {
|
||||
|
||||
@Override
|
||||
public IPage<MarketInfoVO> selectMarketInfoPage(IPage<MarketInfoVO> page, MarketInfoVO marketInfo) {
|
||||
return page.setRecords(baseMapper.selectMarketInfoPage(page, marketInfo));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketInfoVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户拓展信息表 包装类,返回视图层所需的字段
|
||||
*
|
||||
* @author RayLiu
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public class MarketInfoWrapper extends BaseEntityWrapper<MarketInfoEntity, MarketInfoVO> {
|
||||
|
||||
public static MarketInfoWrapper build() {
|
||||
return new MarketInfoWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MarketInfoVO entityVO(MarketInfoEntity marketInfo) {
|
||||
MarketInfoVO marketInfoVO = Objects.requireNonNull(BeanUtil.copyProperties(marketInfo, MarketInfoVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(marketInfo.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(marketInfo.getUpdateUser());
|
||||
//marketInfoVO.setCreateUserName(createUser.getName());
|
||||
//marketInfoVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return marketInfoVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -232,7 +232,7 @@ public interface IUserService extends BaseService<User> {
|
||||
*/
|
||||
boolean registerUser(User user);
|
||||
|
||||
boolean registerAppUser(User user);
|
||||
boolean registerAppUser(User user,User invitor);
|
||||
/**
|
||||
* 配置用户平台
|
||||
*
|
||||
|
||||
@@ -451,7 +451,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean registerAppUser(User user) {
|
||||
public boolean registerAppUser(User user, User invitor) {
|
||||
Tenant tenant = SysCache.getTenant(user.getTenantId());
|
||||
if (tenant == null || tenant.getId() == null) {
|
||||
throw new OAuth2Exception("租户信息错误!");
|
||||
|
||||
Reference in New Issue
Block a user