订单初步模型+商品规格模块,以及平台扣款,分销设置

This commit is contained in:
clunt 2022-05-05 16:47:11 +08:00
parent b249bf73e1
commit 2b6c510f42
7 changed files with 111 additions and 81 deletions

View File

@ -0,0 +1,17 @@
package com.ghy.web.controller.goods;
import com.ghy.common.core.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author clunt
* 商品规格
*/
@Controller
@RequestMapping("/goods/standard")
public class GoodsStandardController extends BaseController {
}

View File

@ -0,0 +1,34 @@
package com.ghy.web.controller.order;
import com.ghy.common.core.controller.BaseController;
import com.ghy.common.core.domain.AjaxResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author clunt
* 下单接口
*/
@Controller
@RequestMapping("/order")
public class OrderController extends BaseController {
@PostMapping("/app")
public AjaxResult appOrder(){
//TODO 校验商品信息(库存)
//TODO 计算商品费用和运费汇总
//TODO 生成主单
//TODO 生成细单
//TODO 生成财务主单
//TODO 生成财务细单
return AjaxResult.success();
}
}

View File

@ -0,0 +1,47 @@
package com.ghy.goods.domain;
import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class GoodsStandard extends BaseEntity {
@Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
private Long goodsStandardId;
@Excel(name = "商品id", cellType = Excel.ColumnType.NUMERIC)
private Long goodsId;
@Excel(name = "规格名称", cellType = Excel.ColumnType.STRING)
private String goodsStandardName;
@Excel(name = "一级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String oneRate;
@Excel(name = "二级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String twoRate;
@Excel(name = "三级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String threeRate;
@Excel(name = "规格状态", cellType = Excel.ColumnType.NUMERIC)
private Integer status;
@Excel(name = "价格")
private BigDecimal goodsPrice;
@Excel(name = "优惠价")
private BigDecimal discountsPrice;
@Excel(name = "团购价")
private BigDecimal groupPrice;
/** 岗位排序 */
@Excel(name = "商品排序", cellType = Excel.ColumnType.NUMERIC)
private String goodsSort;
}

View File

@ -1,5 +1,6 @@
package com.ghy.system.domain; package com.ghy.system.domain;
import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity; import com.ghy.common.core.domain.BaseEntity;
import lombok.Data; import lombok.Data;
@ -10,12 +11,23 @@ import lombok.Data;
@Data @Data
public class SysDeptConfig extends BaseEntity { public class SysDeptConfig extends BaseEntity {
@Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
private Long sysDeptConfigId; private Long sysDeptConfigId;
@Excel(name = "部门id", cellType = Excel.ColumnType.NUMERIC)
private Long deptId; private Long deptId;
@Excel(name = "首页图片", cellType = Excel.ColumnType.STRING)
private String bannerUrl; private String bannerUrl;
// TODO 应该有很多配置才对. 例如支付第三方logo的路径等等 //通用支付/小程序配置
private String adapayAppKey;
private String adapayMasterSecret;
private String adapayMaxRetryTimes;
private String wxAppId;
private String wxSecret;
//平台扣点比例
private String takeRate;
} }

View File

@ -1,76 +0,0 @@
11:30:35.981 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.0.Final
11:30:35.986 [restartedMain] INFO c.ghy.GhyApplication - [logStarting,55] - Starting GhyApplication using Java 1.8.0_282 on cluntdeMacBook-Pro.local with PID 67687 (/Users/clunt/java/guanghy/ghy/ghy-admin/target/classes started by clunt in /Users/clunt/java/guanghy/ghy)
11:30:35.987 [restartedMain] INFO c.ghy.GhyApplication - [logStartupProfileInfo,674] - The following profiles are active: druid
11:30:37.653 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-authCache]
11:30:38.343 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [loginRecordCache]
11:30:42.311 [restartedMain] INFO c.a.d.p.DruidDataSource - [init,998] - {dataSource-1} inited
11:30:42.546 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.549 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.550 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.550 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.551 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.551 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.552 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.552 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.552 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.553 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:30:42.651 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-userCache]
11:30:42.966 [restartedMain] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-80"]
11:30:42.966 [restartedMain] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
11:30:42.967 [restartedMain] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.56]
11:30:43.034 [restartedMain] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
11:30:43.347 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.407 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.451 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.518 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.557 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.595 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.847 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.891 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.943 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:43.990 [restartedMain] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-dict]
11:30:44.154 [restartedMain] INFO o.q.i.StdSchedulerFactory - [instantiate,1220] - Using default implementation for ThreadExecutor
11:30:44.168 [restartedMain] INFO o.q.c.SchedulerSignalerImpl - [<init>,61] - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
11:30:44.168 [restartedMain] INFO o.q.c.QuartzScheduler - [<init>,229] - Quartz Scheduler v.2.3.2 created.
11:30:44.177 [restartedMain] INFO o.q.c.QuartzScheduler - [initialize,294] - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'RuoyiScheduler' with instanceId 'cluntdeMacBook-Pro.local1645500644157'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 20 threads.
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is clustered.
11:30:44.177 [restartedMain] INFO o.q.i.StdSchedulerFactory - [instantiate,1374] - Quartz scheduler 'RuoyiScheduler' initialized from an externally provided properties instance.
11:30:44.177 [restartedMain] INFO o.q.i.StdSchedulerFactory - [instantiate,1378] - Quartz scheduler version: 2.3.2
11:30:44.179 [restartedMain] INFO o.q.c.QuartzScheduler - [setJobFactory,2293] - JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@8e8095e
11:30:50.170 [restartedMain] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-80"]
11:30:50.440 [restartedMain] INFO c.ghy.GhyApplication - [logStarted,61] - Started GhyApplication in 14.969 seconds (JVM running for 15.885)
11:30:52.012 [Quartz Scheduler [RuoyiScheduler]] INFO o.q.c.QuartzScheduler - [start,547] - Scheduler RuoyiScheduler_$_cluntdeMacBook-Pro.local1645500644157 started.
11:34:07.230 [http-nio-80-exec-1] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
11:34:07.251 [http-nio-80-exec-1] INFO o.a.s.s.m.AbstractValidatingSessionManager - [enableSessionValidation,233] - Enabling session validation scheduler...
11:34:07.277 [http-nio-80-exec-1] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [shiro-activeSessionCache]
11:34:07.319 [http-nio-80-exec-2] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:34:08.253 [schedule-pool-1] INFO c.g.f.s.w.s.OnlineWebSessionManager - [validateSessions,100] - invalidation sessions...
11:34:08.386 [schedule-pool-1] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-userCache]
11:34:08.426 [schedule-pool-1] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-userCache]
11:34:08.740 [schedule-pool-1] INFO c.g.f.s.w.s.OnlineWebSessionManager - [validateSessions,165] - Finished invalidation session. [2] sessions were stopped.
11:34:11.498 [schedule-pool-2] INFO sys-user - [run,109] - [127.0.0.1]内网IP[admin][Success][登录成功]
11:34:11.692 [http-nio-80-exec-23] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:34:11.693 [http-nio-80-exec-23] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:34:11.693 [http-nio-80-exec-23] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:34:11.693 [http-nio-80-exec-23] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:34:11.694 [http-nio-80-exec-23] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:34:11.694 [http-nio-80-exec-23] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:34:11.695 [http-nio-80-exec-23] INFO o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [sys-config]
11:35:32.120 [SpringApplicationShutdownHook] INFO o.q.c.QuartzScheduler - [standby,585] - Scheduler RuoyiScheduler_$_cluntdeMacBook-Pro.local1645500644157 paused.
11:35:32.141 [SpringApplicationShutdownHook] INFO o.q.c.QuartzScheduler - [shutdown,666] - Scheduler RuoyiScheduler_$_cluntdeMacBook-Pro.local1645500644157 shutting down.
11:35:32.141 [SpringApplicationShutdownHook] INFO o.q.c.QuartzScheduler - [standby,585] - Scheduler RuoyiScheduler_$_cluntdeMacBook-Pro.local1645500644157 paused.
11:35:32.142 [SpringApplicationShutdownHook] INFO o.q.c.QuartzScheduler - [shutdown,740] - Scheduler RuoyiScheduler_$_cluntdeMacBook-Pro.local1645500644157 shutdown complete.
11:35:32.142 [SpringApplicationShutdownHook] INFO sys-user - [shutdownSpringSessionValidationScheduler,45] - ====关闭会话验证任务====
11:35:32.143 [SpringApplicationShutdownHook] INFO sys-user - [shutdownAsyncManager,62] - ====关闭后台任务任务线程池====
11:35:32.143 [SpringApplicationShutdownHook] INFO sys-user - [shutdownEhCacheManager,75] - ====关闭缓存====
11:35:32.151 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2071] - {dataSource-1} closing ...
11:35:32.154 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2144] - {dataSource-1} closed
11:35:46.277 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.0.Final
11:35:46.279 [restartedMain] INFO c.ghy.GhyApplication - [logStarting,55] - Starting GhyApplication using Java 1.8.0_282 on cluntdeMacBook-Pro.local with PID 70392 (/Users/clunt/java/guanghy/ghy/ghy-admin/target/classes started by clunt in /Users/clunt/java/guanghy/ghy)
11:35:46.279 [restartedMain] INFO c.ghy.GhyApplication - [logStartupProfileInfo,674] - The following profiles are active: druid

View File

@ -1,4 +0,0 @@
11:34:11.498 [schedule-pool-2] INFO sys-user - [run,109] - [127.0.0.1]内网IP[admin][Success][登录成功]
11:35:32.142 [SpringApplicationShutdownHook] INFO sys-user - [shutdownSpringSessionValidationScheduler,45] - ====关闭会话验证任务====
11:35:32.143 [SpringApplicationShutdownHook] INFO sys-user - [shutdownAsyncManager,62] - ====关闭后台任务任务线程池====
11:35:32.143 [SpringApplicationShutdownHook] INFO sys-user - [shutdownEhCacheManager,75] - ====关闭缓存====