Compare commits
416 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
1157d4eb16 | |
|
|
51c160aa26 | |
|
|
2fce514c38 | |
|
|
d1aa03b2ba | |
|
|
5bf6bc4fed | |
|
|
be8c796254 | |
|
|
2fffee3c55 | |
|
|
7a8ae2b5bc | |
|
|
25f86bf5fe | |
|
|
cdfd5a625f | |
|
|
8b66dba411 | |
|
|
6834a313cc | |
|
|
9304543b96 | |
|
|
8bf63d821d | |
|
|
0d8052d620 | |
|
|
af1f990c73 | |
|
|
d448e25fc8 | |
|
|
873aa9fc89 | |
|
|
68a8f6d3c5 | |
|
|
6fd8a4f7d0 | |
|
|
7b333543a7 | |
|
|
9d43ce2fc1 | |
|
|
896667018a | |
|
|
635ebb138f | |
|
|
81941984b6 | |
|
|
79601b6877 | |
|
|
f0ebdd9b55 | |
|
|
d783ac93d0 | |
|
|
c04d8faabd | |
|
|
efe907d9af | |
|
|
0b93b474ec | |
|
|
5d3ba8e014 | |
|
|
79c1d9ecc4 | |
|
|
b3264ad1b3 | |
|
|
15a4537bfd | |
|
|
d2e1174646 | |
|
|
fe7e8d4ed9 | |
|
|
a531fa2445 | |
|
|
a3c364030d | |
|
|
fd87a1f2e3 | |
|
|
a2354d7d08 | |
|
|
bd3687329e | |
|
|
89be4ba654 | |
|
|
0863764b5e | |
|
|
c438c7f250 | |
|
|
4f2e4e7f2e | |
|
|
7765758c9b | |
|
|
93e43a2cf7 | |
|
|
a5fd421147 | |
|
|
345ec77279 | |
|
|
7c3c77bc4b | |
|
|
16e57907ba | |
|
|
745e7c9b93 | |
|
|
8896f1760b | |
|
|
482db587d8 | |
|
|
cbdbe16cd0 | |
|
|
0831cb5ace | |
|
|
20416c7774 | |
|
|
f5cef10c40 | |
|
|
e66aea31af | |
|
|
3998c31eed | |
|
|
8ce38563d4 | |
|
|
3cbb0a4316 | |
|
|
44c4da7ca4 | |
|
|
82aba51c36 | |
|
|
66763774ab | |
|
|
2072495c55 | |
|
|
dcdcbe3b61 | |
|
|
fc7877fcd6 | |
|
|
4b2a64ea72 | |
|
|
e8f0147ada | |
|
|
e2db8e0a3f | |
|
|
fdc3c1c729 | |
|
|
e371816998 | |
|
|
d091184bf8 | |
|
|
7bf25948d6 | |
|
|
5d7eb46e8a | |
|
|
eae849e1e1 | |
|
|
dd43db3341 | |
|
|
ebf1f97fda | |
|
|
ddc33c20ad | |
|
|
2d2632b376 | |
|
|
875eb8fb02 | |
|
|
811fff8644 | |
|
|
2fb0664446 | |
|
|
d43d72aa1e | |
|
|
252961c441 | |
|
|
ba8bbfcbb7 | |
|
|
834141678e | |
|
|
235b686afd | |
|
|
ef95c312e5 | |
|
|
12e67e3956 | |
|
|
e5da3ebb30 | |
|
|
cb1d05a042 | |
|
|
71745dc96e | |
|
|
7138271279 | |
|
|
8d54e4971c | |
|
|
8bf493e03d | |
|
|
98942f6ea7 | |
|
|
ebdf2f873a | |
|
|
45dc370713 | |
|
|
2cbf160c4b | |
|
|
eb8a91ad41 | |
|
|
440558c590 | |
|
|
5781ed9c13 | |
|
|
e720fc7b15 | |
|
|
1e4223aa10 | |
|
|
0b68aa89d5 | |
|
|
676daf9a8c | |
|
|
3b77cfb33d | |
|
|
b7205fca9a | |
|
|
daeeb6f788 | |
|
|
6416eaf548 | |
|
|
1183132bcf | |
|
|
339cf1241c | |
|
|
85c25685ea | |
|
|
219befd1ed | |
|
|
493f8563b3 | |
|
|
93ac57971b | |
|
|
cd7af3e395 | |
|
|
537820890f | |
|
|
915ec51813 | |
|
|
95ac672597 | |
|
|
ed2f5763ce | |
|
|
ba710c854e | |
|
|
c9da828246 | |
|
|
4cb65ae32d | |
|
|
67910debe4 | |
|
|
26d9ec6a6c | |
|
|
cb2622591c | |
|
|
4c7aaf8183 | |
|
|
64e88a2662 | |
|
|
5612d687da | |
|
|
21c39032d5 | |
|
|
b3c243cf43 | |
|
|
9ed26c0fc4 | |
|
|
8a2f665aae | |
|
|
69a8e4b4c8 | |
|
|
078cd4a001 | |
|
|
c153597347 | |
|
|
9dc0e46c76 | |
|
|
f0fe3fa75b | |
|
|
d5af516891 | |
|
|
b654321366 | |
|
|
f1bb7d39b4 | |
|
|
bd94b97017 | |
|
|
59c7fc4c9d | |
|
|
a1365b0e5f | |
|
|
fbd8f306e7 | |
|
|
b3b0040a36 | |
|
|
e583f4ccb0 | |
|
|
d48cc850f5 | |
|
|
2a9e26e524 | |
|
|
5fdd361789 | |
|
|
2b0ca2b5b8 | |
|
|
5c5ffd10da | |
|
|
f96c47ecac | |
|
|
4615e0fae1 | |
|
|
4d5937821a | |
|
|
f72b7c3fa0 | |
|
|
43e832826b | |
|
|
88b189b1c4 | |
|
|
d4cc9deed0 | |
|
|
44fc9927b4 | |
|
|
6f0ff52897 | |
|
|
0f919e5a5d | |
|
|
99f029d503 | |
|
|
f0ab136220 | |
|
|
c439ac091e | |
|
|
b1f88d9932 | |
|
|
ea21e97e29 | |
|
|
57800dab04 | |
|
|
19eacd1550 | |
|
|
fda4c29e85 | |
|
|
657596f619 | |
|
|
628ef133ff | |
|
|
4bbc2408bf | |
|
|
9970799cf7 | |
|
|
caaa3196b3 | |
|
|
501970a89b | |
|
|
f8ea5f568a | |
|
|
a27f64dafa | |
|
|
ca49d31260 | |
|
|
7adf50ab99 | |
|
|
753f3d9d8b | |
|
|
43220a03ea | |
|
|
851bbfc01e | |
|
|
45a6bcbe9d | |
|
|
3ae12ce04d | |
|
|
fa94b0b1bf | |
|
|
905063987a | |
|
|
1ad6aa3de7 | |
|
|
f768f7f473 | |
|
|
d7f2d5afc1 | |
|
|
46205fb7ce | |
|
|
53597281d9 | |
|
|
9ddef54afd | |
|
|
4ee6999b16 | |
|
|
a84f3f39b3 | |
|
|
89ac3c9e25 | |
|
|
808d363daa | |
|
|
eb8a53718d | |
|
|
8ed1b242ff | |
|
|
04718abc01 | |
|
|
ba54bf9967 | |
|
|
b74441a62e | |
|
|
dbb66f93fa | |
|
|
5c0adcbe37 | |
|
|
92008db954 | |
|
|
eb0139282b | |
|
|
9a07219470 | |
|
|
51b66652d4 | |
|
|
074cc5374d | |
|
|
0775b09c77 | |
|
|
2d6c02cfd5 | |
|
|
724d5fc2da | |
|
|
3029e6c8be | |
|
|
2af6d62737 | |
|
|
20d2683708 | |
|
|
50041dc1cc | |
|
|
6a9f084df1 | |
|
|
73bad5713a | |
|
|
2695748ab7 | |
|
|
668edeb23c | |
|
|
77fa9ac80f | |
|
|
71b6cfe95c | |
|
|
a9d0810d1a | |
|
|
7d713a0a50 | |
|
|
4e2da5c676 | |
|
|
0d5dec10c6 | |
|
|
106c89ec58 | |
|
|
781570e2bf | |
|
|
b88c269a1a | |
|
|
eb1603a4ee | |
|
|
f96c64f343 | |
|
|
c2555d890f | |
|
|
4bc2ed0bfd | |
|
|
9be00af38c | |
|
|
ffa9bab489 | |
|
|
b8f04c65c0 | |
|
|
e086c4df95 | |
|
|
09a4918e13 | |
|
|
20d86c6a75 | |
|
|
a3956663d7 | |
|
|
b8b8ee2bf2 | |
|
|
c7626c352a | |
|
|
d13d16238e | |
|
|
13fedb841b | |
|
|
e1bd478ae5 | |
|
|
8eab206fff | |
|
|
0600a1d90e | |
|
|
6360d01041 | |
|
|
39fb09e99a | |
|
|
fc00b49806 | |
|
|
3234ba957f | |
|
|
bca3381ec3 | |
|
|
af78237806 | |
|
|
01df55d60b | |
|
|
3b3eda15ef | |
|
|
92d0fb23c8 | |
|
|
9f62cd4165 | |
|
|
6acd14da8a | |
|
|
3528ebb0c4 | |
|
|
15ef38936b | |
|
|
1d644bc232 | |
|
|
f3ad47f0f3 | |
|
|
3e3a23becd | |
|
|
2985ae0f14 | |
|
|
a5046976c5 | |
|
|
637a0cf315 | |
|
|
040db99d86 | |
|
|
4101c5235b | |
|
|
ed78691326 | |
|
|
cff864f2da | |
|
|
f857715b0f | |
|
|
83d3aa444f | |
|
|
e0b62b66d4 | |
|
|
187a757575 | |
|
|
32590bb35a | |
|
|
4bea33ff3e | |
|
|
bf18452189 | |
|
|
0172bd0478 | |
|
|
203332e232 | |
|
|
84e4a21064 | |
|
|
adb1c28bb8 | |
|
|
e504c26978 | |
|
|
40b8198c7e | |
|
|
8c18cb1347 | |
|
|
860211489e | |
|
|
36c3c2e04b | |
|
|
8b56b21021 | |
|
|
dd26e7873b | |
|
|
864793949b | |
|
|
ac82a2e447 | |
|
|
0facce27aa | |
|
|
ee5cb7d4ba | |
|
|
d76558cce2 | |
|
|
92c4f1ca3a | |
|
|
35b9132eda | |
|
|
12b87312fd | |
|
|
c9b3cea5cd | |
|
|
08a9a26f2d | |
|
|
2f6a3d9c16 | |
|
|
88526e0dd9 | |
|
|
cf4116e4b9 | |
|
|
bfca837e78 | |
|
|
ad0c743ae4 | |
|
|
445551f0d5 | |
|
|
c1df28b929 | |
|
|
1dba8819b9 | |
|
|
3829685b58 | |
|
|
3a185c4d59 | |
|
|
525c56f30c | |
|
|
0bdbd07555 | |
|
|
4ea005d132 | |
|
|
6e5866e46e | |
|
|
3a7468af91 | |
|
|
b18ab44412 | |
|
|
1192f454aa | |
|
|
d94d89fe78 | |
|
|
95965f8a3c | |
|
|
7b0e91e4b4 | |
|
|
f01391014a | |
|
|
e49e72e088 | |
|
|
9a70e49663 | |
|
|
ae3d77e8c3 | |
|
|
15c09f9666 | |
|
|
c82b340d30 | |
|
|
acf7e71769 | |
|
|
6dcd8368a0 | |
|
|
fbe7b72e4b | |
|
|
9942bc6de6 | |
|
|
838351f279 | |
|
|
d8bac55fb0 | |
|
|
6e5216192d | |
|
|
35e039a530 | |
|
|
2461e5d808 | |
|
|
6705689d34 | |
|
|
f585a4f46a | |
|
|
253e2f9c0b | |
|
|
a1d0fa1a7f | |
|
|
bc5bdf1421 | |
|
|
cf2dfc295c | |
|
|
ddf9af76b5 | |
|
|
0f74c30e58 | |
|
|
651f2c1427 | |
|
|
d3b3fe2492 | |
|
|
ed5bb107d0 | |
|
|
42e6b3a689 | |
|
|
6f93900c2a | |
|
|
b0f62d3dad | |
|
|
a7263f85e7 | |
|
|
fdfeb5701a | |
|
|
6a6ce8ef1c | |
|
|
5e6c6284ed | |
|
|
5d74f104b2 | |
|
|
1cff6fffcc | |
|
|
3794cd5540 | |
|
|
02be5222b5 | |
|
|
8f4e56f889 | |
|
|
abdefe6932 | |
|
|
baf91df968 | |
|
|
86ae5f962b | |
|
|
b5daf8aef1 | |
|
|
f2b32671b8 | |
|
|
8b657fdc8a | |
|
|
1e66c99606 | |
|
|
1a968775ff | |
|
|
2ae71952de | |
|
|
24586d3b13 | |
|
|
0e2c0a9604 | |
|
|
da54cc30b7 | |
|
|
6f3dcca911 | |
|
|
fbea2c6670 | |
|
|
b7708d82e1 | |
|
|
e04c3ee084 | |
|
|
2b7ca62abf | |
|
|
da9f1ab68f | |
|
|
eb424d8eb4 | |
|
|
a12a1d2e1f | |
|
|
d0cb517e23 | |
|
|
fd45264b0d | |
|
|
af3ea12121 | |
|
|
653254f9f3 | |
|
|
d8027c92b2 | |
|
|
8d9deb43a3 | |
|
|
6b436da4d3 | |
|
|
796f43299f | |
|
|
46133d7d16 | |
|
|
61157d730c | |
|
|
563541d929 | |
|
|
8f7ea02d06 | |
|
|
cee4643925 | |
|
|
4d462a1d3e | |
|
|
397c1b4df3 | |
|
|
38b03b556c | |
|
|
178f3c0831 | |
|
|
df75a74822 | |
|
|
dad47eb0c8 | |
|
|
b0243a9ddd | |
|
|
5a0112132d | |
|
|
4a0a548565 | |
|
|
6c6a447a5e | |
|
|
146cb0f00b | |
|
|
dc6df17a3f | |
|
|
1455a7e64e | |
|
|
780707e55c | |
|
|
b5bc0f2e0a | |
|
|
e640226629 | |
|
|
148440cb31 | |
|
|
d93bfd24a1 | |
|
|
f7b845201c | |
|
|
a8b9223454 | |
|
|
22eadf7193 | |
|
|
923ee6f1cb | |
|
|
86df7addd6 |
93
pom.xml
93
pom.xml
|
|
@ -14,6 +14,7 @@
|
|||
<version>1.0.0</version>
|
||||
|
||||
<properties>
|
||||
<skipTests>true</skipTests>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
|
@ -21,6 +22,10 @@
|
|||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
|
|
@ -48,11 +53,11 @@
|
|||
<artifactId>hutool-all</artifactId>
|
||||
<version>4.5.18</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.alibaba</groupId>-->
|
||||
<!-- <artifactId>fastjson</artifactId>-->
|
||||
<!-- <version>1.2.9</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.alibaba</groupId>-->
|
||||
<!-- <artifactId>fastjson</artifactId>-->
|
||||
<!-- <version>1.2.9</version>-->
|
||||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
|
|
@ -185,30 +190,60 @@
|
|||
<version>2.2.0</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>p6spy</groupId>
|
||||
<artifactId>p6spy</artifactId>
|
||||
<version>3.8.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>3.3.1</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis-spring</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- alipay -->
|
||||
<dependency>
|
||||
<groupId>com.alipay.sdk</groupId>
|
||||
<artifactId>alipay-sdk-java</artifactId>
|
||||
<version>4.39.208.ALL</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
<!-- <profiles>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>dev</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>dev</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- <activation>-->
|
||||
<!-- <activeByDefault>true</activeByDefault>-->
|
||||
<!-- </activation>-->
|
||||
<!-- </profile>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>test</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>test</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>pro</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>pro</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
<!-- </profiles>-->
|
||||
<!-- <profiles>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>dev</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>dev</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- <activation>-->
|
||||
<!-- <activeByDefault>true</activeByDefault>-->
|
||||
<!-- </activation>-->
|
||||
<!-- </profile>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>test</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>test</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>pro</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>pro</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
<!-- </profiles>-->
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
@ -266,4 +301,4 @@
|
|||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -1,31 +1,27 @@
|
|||
package com.chaozhanggui.system.cashierservice;
|
||||
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.task.ConsInfoTask;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableScheduling
|
||||
@EntityScan(basePackageClasses = {Shell.class})
|
||||
@MapperScan(basePackageClasses ={Shell.class} )
|
||||
@ComponentScan(basePackageClasses ={Shell.class})
|
||||
@EnableAspectJAutoProxy(proxyTargetClass = true)
|
||||
@EnableAsync
|
||||
//@EntityScan(basePackageClasses = {Shell.class})
|
||||
//@EnableAspectJAutoProxy(proxyTargetClass = true)
|
||||
@Slf4j
|
||||
@MapperScan({"com.chaozhanggui.system.cashierservice.mybatis", "com.chaozhanggui.system.cashierservice.mapper", "com.chaozhanggui.system.cashierservice.dao"})
|
||||
public class Shell {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(Shell.class);
|
||||
|
|
@ -45,7 +41,6 @@ public class Shell {
|
|||
@Bean
|
||||
public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
|
||||
return (args) -> {
|
||||
// ctx.getBean(ConsInfoTask.class).init();
|
||||
logger.info("=========================启动完成==========================");
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum OrderPlatformTypeEnum {
|
||||
PC("pc"),
|
||||
CASH("cash"),
|
||||
MINI_APP("miniapp");
|
||||
private final String value;
|
||||
|
||||
OrderPlatformTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum OrderSendTypeEnums {
|
||||
TABLE("table"),
|
||||
TAKEAWAY("takeaway"),
|
||||
TAKE_SELF("takeself"),
|
||||
POST("post");
|
||||
private final String value;
|
||||
|
||||
OrderSendTypeEnums(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum OrderUseTypeEnum {
|
||||
TAKEOUT("takeout"),
|
||||
DINE_IN_AFTER("dine-in-after"),
|
||||
DINE_IN_BEFORE("dine-in-before");
|
||||
private final String value;
|
||||
|
||||
OrderUseTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
public class PrintProductInfo {
|
||||
private Integer orderDetailId;
|
||||
private Integer num;
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum ShopInfoEatModelEnum {
|
||||
TAKE_OUT("take-out"),
|
||||
DINE_IN("dine-in");
|
||||
|
||||
private final String value;
|
||||
|
||||
ShopInfoEatModelEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum ShopInfoRegisterlEnum {
|
||||
// 快餐版
|
||||
MUNCHIES("munchies"),
|
||||
// 餐饮版
|
||||
RESTAURANT("restaurant");
|
||||
|
||||
private final String value;
|
||||
|
||||
ShopInfoRegisterlEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
public enum ShopWxMsgTypeEnum {
|
||||
ALL_MSG(-1),
|
||||
STOCK_MSG(0),
|
||||
CONSUMABLES_MSG(1),
|
||||
OPERATION_MSG(2);
|
||||
private final Integer type;
|
||||
|
||||
ShopWxMsgTypeEnum(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean;
|
||||
|
||||
public enum TableStateEnum {
|
||||
IDLE("idle"),
|
||||
CLOSED("closed"), PAYING("paying"), PENDING("pending"), USING("using"), CLEANING("cleaning");
|
||||
private String state = "closed";
|
||||
|
||||
TableStateEnum(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
package com.chaozhanggui.system.cashierservice.bean.constant;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public interface TableConstant {
|
||||
|
||||
String CART_SEAT_ID = "-999";
|
||||
@Getter
|
||||
enum Status {
|
||||
REFUNDING("refunding"), REFUND("refund"), CLOSED("closed"), CREATE("create"),
|
||||
UNPAID("unpaid"), PAYING("paying"), RETURN("return"), CANCELLED("cancelled");
|
||||
private final String value;
|
||||
Status(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
public boolean equalsVals(String value) {
|
||||
return this.value.equals(value);
|
||||
}
|
||||
}
|
||||
|
||||
class ShopTable {
|
||||
@Getter
|
||||
public enum State {
|
||||
IDLE("idle"), CLOSED("closed"), PAYING("paying"), PENDING("pending"), USING("using"), CLEANING("cleaning");
|
||||
private final String value;
|
||||
|
||||
State(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class OrderInfo {
|
||||
@Getter
|
||||
public enum Status {
|
||||
REFUNDING("refunding"), REFUND("refund"), CLOSED("closed"), CREATE("create"),
|
||||
UNPAID("unpaid"), PAYING("paying"), RETURN("return");
|
||||
private final String value;
|
||||
|
||||
Status(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
public boolean equalsVals(String value) {
|
||||
return this.value.equals(value);
|
||||
}
|
||||
}
|
||||
|
||||
@Getter
|
||||
public enum UseType {
|
||||
TAKEOUT("takeout"),
|
||||
DINE_IN_AFTER("dine-in-after"),
|
||||
DINE_IN_BEFORE("dine-in-before");
|
||||
private final String value;
|
||||
|
||||
UseType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean equalsVals(String value) {
|
||||
return this.value.equals(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class CashierCart {
|
||||
public static final String ID = "-999";
|
||||
|
||||
@Getter
|
||||
public enum Status {
|
||||
REFUNDING("refunding"), REFUND("refund"), CLOSED("closed"), CREATE("create"),
|
||||
UNPAID("unpaid"), PAYING("paying"), RETURN("return"), CANCEL("cancel");
|
||||
private final String value;
|
||||
Status(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
public boolean equalsVals(String value) {
|
||||
return this.value.equals(value);
|
||||
}
|
||||
}
|
||||
|
||||
@Getter
|
||||
public enum UseType {
|
||||
TAKEOUT("takeout"),
|
||||
DINE_IN_AFTER("dine-in-after"),
|
||||
DINE_IN_BEFORE("dine-in-before");
|
||||
private final String value;
|
||||
|
||||
UseType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean equalsVals(String value) {
|
||||
return this.value.equals(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class ShopInfo {
|
||||
@Getter
|
||||
public enum EatModel {
|
||||
TAKEOUT("takeout"),
|
||||
DINE_IN("dine-in");
|
||||
private final String value;
|
||||
|
||||
EatModel(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean equalsVals(String value) {
|
||||
return this.value.equals(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class MemberIn {
|
||||
@Getter
|
||||
public enum Type {
|
||||
NORMAL(0),
|
||||
FREE_DINE(1);
|
||||
private final Integer value;
|
||||
|
||||
Type(Integer value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean equalsVals(Integer value) {
|
||||
return Objects.equals(this.value, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class ActivateOutRecord {
|
||||
@Getter
|
||||
public enum Type {
|
||||
// 满减
|
||||
FULL_REDUCTION(1),
|
||||
// 商品
|
||||
PRODUCT(2);
|
||||
private final Integer value;
|
||||
|
||||
Type(Integer value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean equalsVals(Integer value) {
|
||||
return Objects.equals(this.value, value);
|
||||
}
|
||||
}
|
||||
@Getter
|
||||
public enum Status {
|
||||
CREATE("create"),
|
||||
CANCEL("cancel"),
|
||||
// 商品
|
||||
CLOSED("closed");
|
||||
private final String value;
|
||||
|
||||
Status(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean equalsVals(String value) {
|
||||
return this.value.equals(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.web.filter.CommonsRequestLoggingFilter;
|
||||
|
||||
@Configuration
|
||||
public class RequestLoggingConfig {
|
||||
@Bean
|
||||
@Order(-9999)
|
||||
public CommonsRequestLoggingFilter logFilter() {
|
||||
CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
|
||||
// 是否记录请求的查询参数信息
|
||||
filter.setIncludeQueryString(true);
|
||||
// 是否记录请求body内容
|
||||
filter.setIncludePayload(true);
|
||||
filter.setMaxPayloadLength(10000);
|
||||
//是否记录请求header信息
|
||||
filter.setIncludeHeaders(false);
|
||||
// 是否记录请求客户端信息
|
||||
filter.setIncludeClientInfo(true);
|
||||
// 设置日期记录的前缀
|
||||
filter.setBeforeMessagePrefix("\033[32;4m请求开始:");
|
||||
filter.setBeforeMessageSuffix("\033[0m");
|
||||
filter.setAfterMessagePrefix("\033[34m请求结束:");
|
||||
filter.setAfterMessageSuffix("\033[0m");
|
||||
return filter;
|
||||
}
|
||||
}
|
||||
|
|
@ -23,6 +23,8 @@ public class LoginContoller {
|
|||
|
||||
@Autowired
|
||||
LoginService loginService;
|
||||
|
||||
|
||||
@RequestMapping(value = "login",method = RequestMethod.POST)
|
||||
public Result login(@RequestBody LoginReq loginReq, HttpServletRequest request){
|
||||
try {
|
||||
|
|
@ -34,6 +36,11 @@ public class LoginContoller {
|
|||
return Result.fail(CodeEnum.FAIL);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "findVersion",method = RequestMethod.POST)
|
||||
public Result findVersion() {
|
||||
return loginService.findVersion();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("logout")
|
||||
public Result logout( @RequestHeader("token") String token,
|
||||
|
|
@ -51,4 +58,13 @@ public class LoginContoller {
|
|||
@RequestHeader("clientType") String clientType){
|
||||
return loginService.getShopInfo(token);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "getStaffDiscount")
|
||||
public Result getStaffDiscount(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType){
|
||||
return loginService.getStaffDiscount(token);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.service.MemberService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
|
|
@ -26,10 +26,11 @@ public class MemberController {
|
|||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("phone") String phone,
|
||||
@RequestParam(value = "isFlag",required = false,defaultValue = "0") String isFlag,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
){
|
||||
return memberService.queryMember(shopId,phone,page,pageSize);
|
||||
) {
|
||||
return memberService.queryMember(shopId, phone, isFlag,page, pageSize);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -37,43 +38,47 @@ public class MemberController {
|
|||
public Result createMember(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String,Object> map
|
||||
){
|
||||
@RequestBody Map<String, Object> map
|
||||
) {
|
||||
return memberService.createMember(map);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("memberScanPay")
|
||||
public Result memberScanPay(
|
||||
@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String,Object> map
|
||||
@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String, Object> map
|
||||
|
||||
){
|
||||
return memberService.memberScanPay(map,token);
|
||||
) {
|
||||
return memberService.memberScanPay(map, token);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@GetMapping("queryScanPay")
|
||||
public Result queryScanPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("flowId") String flowId
|
||||
){
|
||||
return memberService.queryScanPay(flowId,token);
|
||||
) {
|
||||
return memberService.queryScanPay(flowId, token);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@RequestMapping("accountPay")
|
||||
public Result accountPay( @RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String,Object> map
|
||||
){
|
||||
return memberService.memberAccountPay(map,token);
|
||||
public Result accountPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String, Object> map
|
||||
) {
|
||||
try {
|
||||
return memberService.memberAccountPay(map, token);
|
||||
} catch (Exception e) {
|
||||
log.error("》》》》》》》》》》账户支付异常:",e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
return Result.fail(CodeEnum.SYS_EXCEPTION);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -81,11 +86,24 @@ public class MemberController {
|
|||
public Result queryMemberAccount(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("memberId") String memberId,
|
||||
@RequestParam("memberId") String memberId,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
|
||||
){
|
||||
return memberService.queryMemberAccount(memberId,page,pageSize);
|
||||
) {
|
||||
return memberService.queryMemberAccount(memberId, page, pageSize);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("returnFlow")
|
||||
public Result returnFlow(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("flowId") String flowId,
|
||||
@RequestParam("remark") String remark,
|
||||
@RequestParam("amount") String amount,
|
||||
@RequestParam("pwd") String pwd
|
||||
){
|
||||
return memberService.returnAccount(token, flowId,remark,amount, pwd);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,20 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.extra.servlet.ServletUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderInfo;
|
||||
import com.chaozhanggui.system.cashierservice.service.OrderService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
|
|
@ -17,11 +23,51 @@ import java.util.Map;
|
|||
public class NotifyController {
|
||||
|
||||
|
||||
@Resource
|
||||
private OrderService orderService;
|
||||
|
||||
@RequestMapping("notifyPay")
|
||||
public String notifyPay(@RequestBody Map<String,Object> map){
|
||||
log.info("notifyPay:{}", JSON.toJSONString(map));
|
||||
return null;
|
||||
public Result notifyPay(HttpServletRequest request) {
|
||||
String body = ServletUtil.getBody(request);
|
||||
log.info("notifyPay body:{}", body);
|
||||
JSONObject resp = JSON.parseObject(body);
|
||||
|
||||
String code = resp.getString("code");
|
||||
String msg = resp.getString("msg");
|
||||
if (!"000000".equals(code)) {
|
||||
log.error("支付失败:{}", resp.getString("msg"));
|
||||
return Result.fail(msg);
|
||||
}
|
||||
JSONObject bizData = JSON.parseObject(resp.getString("bizData"));
|
||||
String state = bizData.getString("state");
|
||||
String note = bizData.getString("note");
|
||||
String payOrderId = bizData.getString("payOrderId");
|
||||
String payType = bizData.getString("payType");
|
||||
String payTime = bizData.getString("payTime");
|
||||
long amount = bizData.getLongValue("amount");
|
||||
long paidTime = DateUtil.parseDateTime(payTime).getTime();
|
||||
if (!"TRADE_SUCCESS".equals(state)) {
|
||||
log.error("支付失败:{},{}", state, note);
|
||||
return Result.fail(state + ":" + note);
|
||||
}
|
||||
TbOrderInfo entity = orderService.selectByPayOrderNo(payOrderId);
|
||||
if (entity == null) {
|
||||
log.error("订单不存在:{}", payOrderId);
|
||||
return Result.fail("订单不存在");
|
||||
}
|
||||
entity.setPaidTime(paidTime);
|
||||
orderService.payCallbackCloseOrder(entity, payType, amount);
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付取消
|
||||
*
|
||||
* @return 影响数量
|
||||
*/
|
||||
@PostMapping("cancel")
|
||||
public Result notifyCancel(@RequestBody HashMap<String, Integer> data) {
|
||||
return Result.success(CodeEnum.SUCCESS, orderService.cancelOrder(data.get("orderId")));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,23 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.entity.OrderVo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseCountDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ReturnCartDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.UpdateVipDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.vo.CartVo;
|
||||
import com.chaozhanggui.system.cashierservice.service.OrderService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import com.chaozhanggui.system.cashierservice.util.TokenUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
|
|
@ -24,141 +28,204 @@ public class OrderController {
|
|||
@Autowired
|
||||
private OrderService orderService;
|
||||
|
||||
@PutMapping("/updateVip")
|
||||
public ResponseEntity<Object> updateVip(@Validated @RequestBody UpdateVipDTO updateVipDTO) {
|
||||
return ResponseEntity.ok(orderService.updateVip(updateVipDTO));
|
||||
}
|
||||
|
||||
@PostMapping("/createCart")
|
||||
public Result createCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody CartVo cartVo
|
||||
){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.createCart(cartVo.getMasterId(),cartVo.getProductId(),cartVo.getShopId(),
|
||||
cartVo.getSkuId(),cartVo.getNumber(),userId,clientType,cartVo.getCartId(),cartVo.getIsGift(),
|
||||
cartVo.getIsPack(),cartVo.getUuid(),cartVo.getType());
|
||||
}
|
||||
@GetMapping("/queryCart")
|
||||
public Result queryCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("masterId") String masterId,
|
||||
@RequestParam("shopId") String shopId
|
||||
){
|
||||
return orderService.queryCart(masterId,shopId);
|
||||
}
|
||||
@GetMapping("/delCart")
|
||||
public Result delCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("masterId") String masterId,
|
||||
@RequestParam("cartId") Integer cartId
|
||||
){
|
||||
return orderService.delCart(masterId,cartId);
|
||||
}
|
||||
@GetMapping("/createCode")
|
||||
public Result createCode(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
String type
|
||||
){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.createCode(shopId,clientType,userId,type);
|
||||
}
|
||||
@GetMapping("/getCartList")
|
||||
public Result getCart(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId){
|
||||
return orderService.getCartList(shopId);
|
||||
}
|
||||
@GetMapping("/getCartPrductSpec")
|
||||
public Result getCartPrductSpec(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("cartId") Integer cartId){
|
||||
return orderService.getCartPrductSpec(cartId);
|
||||
}
|
||||
@PostMapping("/cartStatus")
|
||||
public Result cartStatus(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
|
||||
@Validated @RequestBody CartVo cartVo) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
String code = jsonObject.getString("code");
|
||||
return orderService.cartStatus(Integer.valueOf(cartVo.getShopId()),cartVo.getMasterId(),cartVo.getStatus(),userId,cartVo.getUuid(),clientType);
|
||||
return orderService.createCart(cartVo.getMasterId(), cartVo.getProductId(), cartVo.getShopId(), cartVo.getSkuId(),
|
||||
cartVo.getNumber(), userId, clientType, cartVo.getCartId(), cartVo.getIsGift(),
|
||||
cartVo.getIsPack(), cartVo.getUuid(), cartVo.getType(), cartVo.getTableId());
|
||||
}
|
||||
|
||||
@GetMapping("/queryCart")
|
||||
public Result queryCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam(value = "masterId", required = false) String masterId,
|
||||
@RequestParam(required = false) String tableId,
|
||||
@RequestParam("shopId") String shopId) {
|
||||
if (tableId == null && StrUtil.isBlank(masterId)) {
|
||||
return Result.fail("masterId和tableId不能同时为空");
|
||||
}
|
||||
return orderService.queryCart(masterId, shopId, tableId);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/delCart")
|
||||
public Result delCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam(required = false) String tableId,
|
||||
@RequestParam(value = "masterId", required = false) String masterId,
|
||||
@RequestParam("cartId") Integer cartId) {
|
||||
return orderService.delCart(masterId, cartId);
|
||||
}
|
||||
|
||||
@GetMapping("/createCode")
|
||||
public Result createCode(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam(required = false) String tableId, String type) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.createCode(shopId, clientType, userId, type, tableId);
|
||||
}
|
||||
|
||||
@GetMapping("/getCartList")
|
||||
public Result getCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") Integer shopId) {
|
||||
return orderService.getCartList(shopId);
|
||||
}
|
||||
|
||||
@GetMapping("/getCartPrductSpec")
|
||||
public Result getCartPrductSpec(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("cartId") Integer cartId) {
|
||||
return orderService.getCartPrductSpec(cartId);
|
||||
}
|
||||
|
||||
@PostMapping("/cartStatus")
|
||||
public Result cartStatus(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody CartVo cartVo) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.cartStatus(cartVo.getShopId(), cartVo.getMasterId(), cartVo.getStatus(), userId, cartVo.getUuid(), clientType, cartVo.getTableId(), token, cartVo.getOrderId());
|
||||
}
|
||||
|
||||
@PostMapping("/createOrder")
|
||||
public Result createOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody OrderVo orderVo){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
public Result createOrder(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody OrderVo orderVo) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
orderVo.setMerchantId(Integer.valueOf(userId));
|
||||
orderVo.setUserId(jsonObject.getString("staffId"));
|
||||
return orderService.createOrder(orderVo,clientType,token);
|
||||
return orderService.createOrder(orderVo, clientType, token, null);
|
||||
}
|
||||
|
||||
@PostMapping("/createBackOrder")
|
||||
public Result createBackOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody OrderVo orderVo){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
public Result createBackOrder(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody OrderVo orderVo) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
orderVo.setMerchantId(Integer.valueOf(userId));
|
||||
orderVo.setUserId(jsonObject.getString("staffId"));
|
||||
return orderService.createBackOrder(orderVo,clientType,token);
|
||||
return orderService.createBackOrder(orderVo, clientType, token);
|
||||
}
|
||||
|
||||
@PostMapping("/packall")
|
||||
public Result packall(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
public Result packall(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody CartVo cartVo) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.packall(cartVo);
|
||||
}
|
||||
|
||||
@PostMapping("/clearCart")
|
||||
public Result clearCart(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
|
||||
public Result clearCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody CartVo cartVo) {
|
||||
return orderService.clearCart(cartVo);
|
||||
}
|
||||
|
||||
@GetMapping("/findOrder")
|
||||
public Result findOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId,
|
||||
public Result findOrder(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") Integer shopId,
|
||||
@RequestParam("status") String status,
|
||||
@RequestParam(value = "orderNo", required = false) String orderNo,
|
||||
@RequestParam(value = "startTime", required = false) String startTime,
|
||||
@RequestParam(value = "endTime", required = false) String endTime,
|
||||
@RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
|
||||
@RequestParam(value = "size", required = false, defaultValue = "1") Integer size){
|
||||
return orderService.findOrder(shopId,status,page,size,orderNo, DateUtil.parse(startTime), DateUtil.parse(endTime));
|
||||
@RequestParam(value = "size", required = false, defaultValue = "1") Integer size) {
|
||||
return orderService.findOrder(shopId, status, page, size, orderNo, DateUtil.parse(startTime), DateUtil.parse(endTime));
|
||||
}
|
||||
|
||||
@GetMapping("/orderDetail")
|
||||
public Result orderDetail(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId,
|
||||
@RequestParam("id") Integer id){
|
||||
return orderService.orderDetail(shopId,id);
|
||||
public Result orderDetail(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") Integer shopId,
|
||||
@RequestParam("id") Integer id) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.orderDetail(shopId, id, clientType, token, userId, jsonObject.getString("staffId"));
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "sendMessage")
|
||||
public Result sendMessage(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,@RequestParam("orderId") String orderId){
|
||||
public Result sendMessage(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId) {
|
||||
return orderService.sendMassage(orderId);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(value = "scanSendMessage")
|
||||
public Result scanSendMessage(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,@RequestParam("outNumber") String outNumber,@RequestParam("shopId") String shopId){
|
||||
return orderService.scanSendMessage(outNumber,shopId);
|
||||
public Result scanSendMessage(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("outNumber") String outNumber,
|
||||
@RequestParam("shopId") String shopId) {
|
||||
return orderService.scanSendMessage(outNumber, shopId);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(value = "getsendMessage")
|
||||
public Result getsendMessage(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,@RequestParam("shopId") String shopId,@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize){
|
||||
return orderService.getOutNumber(shopId,page,pageSize);
|
||||
public Result getsendMessage(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize) {
|
||||
return orderService.getOutNumber(shopId, page, pageSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@GetMapping("getOrderById")
|
||||
public Result getOrderById(@RequestParam("orderId") Integer orderId){
|
||||
return orderService.getOrder(orderId);
|
||||
public Result getOrderById(@RequestParam("orderId") Integer orderId) {
|
||||
return orderService.getOrder(orderId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 就餐人数选择
|
||||
*/
|
||||
@PutMapping("/choseCount")
|
||||
public Result choseCount(@Validated @RequestBody ChoseCountDTO choseCountDTO) {
|
||||
if (choseCountDTO.getNum() == null) {
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
return Result.success(CodeEnum.SUCCESS, orderService.choseCount(choseCountDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 退菜
|
||||
* @param returnCartDTO 退菜信息
|
||||
* @return 是否成功
|
||||
*/
|
||||
@PostMapping("/returnCart")
|
||||
public Result returnCart(@Validated @RequestBody ReturnCartDTO returnCartDTO) {
|
||||
return Result.success(CodeEnum.SUCCESS, orderService.returnCart(returnCartDTO));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,51 +1,75 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alipay.api.AlipayApiException;
|
||||
import com.alipay.api.AlipayClient;
|
||||
import com.alipay.api.AlipayConfig;
|
||||
import com.alipay.api.DefaultAlipayClient;
|
||||
import com.alipay.api.request.AlipaySystemOauthTokenRequest;
|
||||
import com.alipay.api.response.AlipaySystemOauthTokenResponse;
|
||||
import com.chaozhanggui.system.cashierservice.annotation.LimitSubmit;
|
||||
import com.chaozhanggui.system.cashierservice.dao.TbOrderInfoMapper;
|
||||
import com.chaozhanggui.system.cashierservice.dao.TbShopInfoMapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderDetail;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderInfo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ReturnGroupOrderDto;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.VipPayDTO;
|
||||
import com.chaozhanggui.system.cashierservice.model.PaymentReq;
|
||||
import com.chaozhanggui.system.cashierservice.service.PayService;
|
||||
import com.chaozhanggui.system.cashierservice.service.ShopInfoService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import com.chaozhanggui.system.cashierservice.util.IpUtil;
|
||||
import com.chaozhanggui.system.cashierservice.util.JSONUtil;
|
||||
import com.chaozhanggui.system.cashierservice.util.WechatUtil;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("pay")
|
||||
public class PayController {
|
||||
|
||||
|
||||
@Autowired
|
||||
PayService payService;
|
||||
@Autowired
|
||||
private ShopInfoService shopInfoService;
|
||||
|
||||
|
||||
@Autowired
|
||||
private TbShopInfoMapper tbShopInfoMapper;
|
||||
@Autowired
|
||||
private TbOrderInfoMapper tbOrderInfoMapper;
|
||||
|
||||
@RequestMapping("queryPayType")
|
||||
public Result queryPayType( @RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId
|
||||
|
||||
){
|
||||
public Result queryPayType(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId) {
|
||||
return payService.queryPayType(shopId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 扫码支付
|
||||
*
|
||||
* @param request
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @param authCode
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("scanpay")
|
||||
|
|
@ -54,62 +78,55 @@ public class PayController {
|
|||
@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("authCode") String authCode
|
||||
|
||||
) {
|
||||
return payService.scanPay(orderId,authCode, IpUtil.getIpAddr(request),token);
|
||||
@RequestBody PaymentReq paymentReq) {
|
||||
return payService.scanPay(paymentReq.getOrderId(), paymentReq.getAuthCode(), IpUtil.getIpAddr(request), token, paymentReq.getPayAmount(), paymentReq.getDiscountAmount());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 储值卡支付
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
|
||||
@GetMapping("accountPay")
|
||||
@RequestMapping("accountPay")
|
||||
@LimitSubmit(key = "accountPay:%s")
|
||||
public Result accountPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("memberId") String memberId,
|
||||
@RequestParam("memberAccount") String memberAccount
|
||||
){
|
||||
return payService.accountPay(orderId,memberId,token,memberAccount);
|
||||
@RequestBody PaymentReq paymentReq) {
|
||||
return payService.accountPay(paymentReq.getOrderId(), paymentReq.getMemberId(), token, paymentReq.getMemberAccount(), paymentReq.getPayAmount(), paymentReq.getDiscountAmount());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 快捷收款
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param amount
|
||||
* @param authCode
|
||||
* @param payType cash 现金 scanpay 扫码
|
||||
* @param payType cash 现金 scanpay 扫码
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("quickPay")
|
||||
@LimitSubmit(key = "quickPay:%s")
|
||||
public Result quickPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("amount") String amount,
|
||||
@RequestParam("authCode") String authCode,
|
||||
@RequestParam("payType") String payType
|
||||
){
|
||||
return payService.quickPay(token,amount,authCode,payType);
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("amount") String amount,
|
||||
@RequestParam("authCode") String authCode,
|
||||
@RequestParam("payType") String payType) {
|
||||
return payService.quickPay(token, amount, authCode, payType);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询快捷订单状态
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
|
|
@ -117,16 +134,16 @@ public class PayController {
|
|||
*/
|
||||
@GetMapping("queryQuickPayStatus")
|
||||
public Result queryQuickPayStatus(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId
|
||||
){
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId) {
|
||||
return payService.queryQuickPayStatus(orderId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取快捷收款信息
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
|
|
@ -136,80 +153,91 @@ public class PayController {
|
|||
*/
|
||||
@GetMapping("queryQuickPay")
|
||||
public Result queryQuickPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("page") Integer page,
|
||||
@RequestParam("pageSize") Integer pageSize
|
||||
){
|
||||
return payService.queryQuickPay(token,page,pageSize);
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("page") Integer page,
|
||||
@RequestParam("pageSize") Integer pageSize) {
|
||||
return payService.queryQuickPay(token, page, pageSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 会员扫码支付
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @param memberCode
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("memberScanPay")
|
||||
@RequestMapping("memberScanPay")
|
||||
@LimitSubmit(key = "memberScanPay:%s")
|
||||
public Result memberScanPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("memberCode") String memberCode
|
||||
){
|
||||
return payService.memberScanPay(orderId,memberCode,token);
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody PaymentReq paymentReq) {
|
||||
return payService.memberScanPay(paymentReq.getOrderId(), paymentReq.getMemberCode(), token, paymentReq.getPayAmount(), paymentReq.getDiscountAmount());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 现金支付
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("cashPay")
|
||||
@RequestMapping("cashPay")
|
||||
@LimitSubmit(key = "cashPay:%s")
|
||||
public Result cashPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
return payService.cashPay(orderId,token);
|
||||
@RequestBody PaymentReq paymentReq) {
|
||||
Result result = payService.cashPay(paymentReq.getOrderId(), token, paymentReq.getPayAmount(), paymentReq.getDiscountAmount());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 银行卡支付
|
||||
* 会员支付
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("bankPay")
|
||||
@PostMapping("vipPay")
|
||||
@LimitSubmit(key = "vipPay:%s")
|
||||
public Result vipPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody VipPayDTO vipPayDTO) {
|
||||
if (vipPayDTO.getOrderId() == null || vipPayDTO.getVipUserId() == null) {
|
||||
return Result.fail("参数缺失");
|
||||
}
|
||||
|
||||
if ((vipPayDTO.getPayAmount() != null && vipPayDTO.getPayAmount().compareTo(BigDecimal.ZERO) <= 0) ||
|
||||
(vipPayDTO.getDiscountAmount() != null && vipPayDTO.getDiscountAmount().compareTo(BigDecimal.ZERO) <= 0)) {
|
||||
return Result.fail("折扣金额必须大于0");
|
||||
}
|
||||
return payService.vipPay(vipPayDTO.getOrderId(), token, vipPayDTO.getVipUserId(), vipPayDTO.getPayAmount(), vipPayDTO.getDiscountAmount());
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行卡支付
|
||||
*
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("bankPay")
|
||||
@LimitSubmit(key = "bankPay:%s")
|
||||
public Result bankPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
return payService.bankPay(orderId,token);
|
||||
@RequestBody PaymentReq paymentReq) {
|
||||
return payService.bankPay(paymentReq.getOrderId(), token, paymentReq.getPayAmount(), paymentReq.getDiscountAmount());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@RequestMapping("returnOrder")
|
||||
@LimitSubmit(key = "returnOrder:%s", limit = 10)
|
||||
public Result returnOrder(@RequestHeader("token") String token,
|
||||
|
|
@ -217,11 +245,8 @@ public class PayController {
|
|||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody List<TbOrderDetail> list,
|
||||
@RequestParam("pwd") String pwd,
|
||||
@RequestParam(defaultValue = "true") boolean isOnline
|
||||
){
|
||||
|
||||
|
||||
return payService.returnOrder(list,token,null, isOnline);
|
||||
@RequestParam(defaultValue = "true") boolean isOnline) {
|
||||
return payService.returnOrder(list, token, pwd, isOnline);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -229,19 +254,169 @@ public class PayController {
|
|||
public Result queryOrder(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
return payService.queryOrder(orderId,token);
|
||||
@RequestParam("orderId") String orderId) {
|
||||
return payService.queryOrder(orderId, token);
|
||||
}
|
||||
|
||||
@RequestMapping("returnGpOrder")
|
||||
public Result returnOrder(@RequestBody ReturnGroupOrderDto param){
|
||||
public Result returnOrder(@RequestBody ReturnGroupOrderDto param) {
|
||||
return payService.returnGroupOrder(param);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("test")
|
||||
@LimitSubmit(key = "testOrder:%s")
|
||||
public Result testOrder( @RequestParam("orderId") String orderId){
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
@RequestMapping("getOrderDiscount")
|
||||
public Result getOrderDiscount(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("staffId") String staffId) {
|
||||
return payService.getOrderDiscount(staffId, orderId, token);
|
||||
}
|
||||
|
||||
@RequestMapping("pcscanpay")
|
||||
@LimitSubmit(key = "pcscanpay:%s")
|
||||
public Result pcscanpay(HttpServletRequest request, @RequestBody PaymentReq paymentReq) {
|
||||
try {
|
||||
return payService.pcscanpay(paymentReq.getOrderId(), IpUtil.getIpAddr(request), paymentReq.getUserId(), paymentReq.getPayType());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return Result.fail(CodeEnum.FAIL);
|
||||
}
|
||||
|
||||
@RequestMapping("createOrder")
|
||||
public Result createOrder(HttpServletRequest request, @RequestBody PaymentReq paymentReq) {
|
||||
try {
|
||||
return payService.createOrder(IpUtil.getIpAddr(request), paymentReq.getUserId(), paymentReq.getPayType(),
|
||||
paymentReq.getShopId(), paymentReq.getOrderId(), paymentReq.getPayAmount(), paymentReq.getRemark());
|
||||
} catch (JsonProcessingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return Result.fail(CodeEnum.FAIL);
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("queryOrderPay")
|
||||
public Result queryOrderPay(String orderId) {
|
||||
return payService.queryOrderPay(orderId);
|
||||
}
|
||||
|
||||
@GetMapping("/noToken/queryOrderInfo")
|
||||
public Result noTokenQueryOrderInfo(String orderId) {
|
||||
if(StrUtil.isBlank(orderId)){
|
||||
return Result.fail("订单id不能为空");
|
||||
}
|
||||
TbOrderInfo orderInfo = tbOrderInfoMapper.selectByPrimaryKey(Integer.valueOf(orderId));
|
||||
if(orderInfo == null){
|
||||
return Result.fail("订单不存在");
|
||||
}
|
||||
Map<String, Object> data = new HashMap<>(4);
|
||||
data.put("id", orderInfo.getId());
|
||||
data.put("orderNo", orderInfo.getOrderNo());
|
||||
data.put("payAmount", orderInfo.getPayAmount());
|
||||
data.put("orderAmount", orderInfo.getOrderAmount());
|
||||
return Result.success(CodeEnum.SUCCESS, data);
|
||||
}
|
||||
|
||||
@Value("${wx.ysk.appId}")
|
||||
private String appId;
|
||||
|
||||
@Value("${wx.ysk.secrete}")
|
||||
private String secrete;
|
||||
|
||||
@Value("${ali.appId}")
|
||||
private String aliAppId;
|
||||
|
||||
@Value("${ali.privateKey}")
|
||||
private String privateKey;
|
||||
|
||||
@Value("${ali.publicKey}")
|
||||
private String publicKey;
|
||||
|
||||
|
||||
/**
|
||||
* 获取支付宝或微信openId
|
||||
*
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/openId")
|
||||
public Result getOpenId(@RequestParam String code, @RequestParam String payType,
|
||||
@RequestParam String shopId) throws AlipayApiException {
|
||||
if (StrUtil.isBlank(shopId)) {
|
||||
return Result.fail("店铺ID不能为空");
|
||||
}
|
||||
|
||||
// 查询店铺信息
|
||||
TbShopInfo shopInfo = tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(shopId));
|
||||
if (Objects.isNull(shopInfo)) {
|
||||
return Result.fail("店铺不存在");
|
||||
}
|
||||
|
||||
Map<String, Object> data = new HashMap<>(4);
|
||||
data.put("shopId", shopInfo.getId());
|
||||
data.put("shopName", shopInfo.getShopName());
|
||||
data.put("shopImage", shopInfo.getCoverImg());
|
||||
|
||||
if ("WECHAT".equals(payType)) {
|
||||
JSONObject SessionKeyOpenId = WechatUtil.getSessionKeyOrOpenId(code, appId, secrete);
|
||||
log.info("SessionKeyOpenId:{}", SessionKeyOpenId.toString());
|
||||
String openid = SessionKeyOpenId.getString("openid");
|
||||
if (Objects.isNull(openid)) {
|
||||
return Result.fail("获取微信id失败");
|
||||
}
|
||||
|
||||
data.put("openId", openid);
|
||||
return Result.success(CodeEnum.SUCCESS, data);
|
||||
} else if ("ALIPAY".equals(payType)) {
|
||||
// 初始化SDK
|
||||
AlipayClient alipayClient = new DefaultAlipayClient(getAlipayConfig());
|
||||
// 构造请求参数以调用接口
|
||||
AlipaySystemOauthTokenRequest request = new AlipaySystemOauthTokenRequest();
|
||||
// 设置授权码
|
||||
request.setCode(code);
|
||||
|
||||
// 设置授权方式
|
||||
request.setGrantType("authorization_code");
|
||||
|
||||
AlipaySystemOauthTokenResponse response = alipayClient.execute(request);
|
||||
|
||||
log.info("AlipaySystemOauthTokenResponse:{}", JSONUtil.toJSONString(response));
|
||||
|
||||
response.setAccessToken(response.getRefreshToken());
|
||||
if (!response.isSuccess()) {
|
||||
return Result.fail("获取支付宝userId失败");
|
||||
}
|
||||
|
||||
String openid = ObjectUtil.isNull(response.getUserId()) ? response.getOpenId() : response.getUserId();
|
||||
data.put("openId", openid);
|
||||
|
||||
return Result.success(CodeEnum.SUCCESS, data);
|
||||
}
|
||||
|
||||
return Result.fail(CodeEnum.FAIL);
|
||||
}
|
||||
|
||||
|
||||
private AlipayConfig getAlipayConfig() {
|
||||
AlipayConfig alipayConfig = new AlipayConfig();
|
||||
alipayConfig.setServerUrl("https://openapi.alipay.com/gateway.do");
|
||||
alipayConfig.setAppId(aliAppId);
|
||||
alipayConfig.setPrivateKey(privateKey);
|
||||
alipayConfig.setFormat("json");
|
||||
alipayConfig.setAlipayPublicKey(publicKey);
|
||||
alipayConfig.setCharset("UTF-8");
|
||||
alipayConfig.setSignType("RSA2");
|
||||
return alipayConfig;
|
||||
}
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
LocalDate date = LocalDate.now();
|
||||
if (date.isLeapYear()) {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,20 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ProductStatusDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ProductStockDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.QuerySpecDTO;
|
||||
import com.chaozhanggui.system.cashierservice.service.ProductService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import com.chaozhanggui.system.cashierservice.util.TokenUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
|
|
@ -21,6 +28,26 @@ public class ProductController {
|
|||
private ProductService productService;
|
||||
|
||||
|
||||
@PutMapping("/productStatus")
|
||||
public Result productStatus(
|
||||
@Valid @RequestBody ProductStatusDTO productStatusDTO
|
||||
) {
|
||||
productService.updateState(productStatusDTO);
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
|
||||
@PutMapping("/productStock")
|
||||
public Result productStock(
|
||||
@RequestHeader("token") String token,
|
||||
@Valid @RequestBody ProductStockDTO productStockDTO
|
||||
) {
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String loginName = jsonObject.getString("loginName");
|
||||
productService.updateStock(productStockDTO,loginName);
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(value = "queryCommodityInfo")
|
||||
public Result queryCommodityInfo(
|
||||
@RequestHeader("token") String token,
|
||||
|
|
@ -37,6 +64,15 @@ public class ProductController {
|
|||
return productService.queryCommodityInfo(shopId,categoryId,commdityName,page,pageSize,masterId);
|
||||
}
|
||||
|
||||
@GetMapping("querySpec")
|
||||
public Result querySpec(
|
||||
@RequestParam Integer shopId,
|
||||
@RequestParam Integer productId
|
||||
) {
|
||||
return Result.success(CodeEnum.SUCCESS, productService.querySpec(shopId, productId));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(value = "queryNewCommodityInfo")
|
||||
public Result queryNewCommodityInfo(
|
||||
@RequestHeader("token") String token,
|
||||
|
|
@ -46,11 +82,12 @@ public class ProductController {
|
|||
@RequestParam("categoryId") String categoryId,
|
||||
@RequestParam("commdityName") String commdityName,
|
||||
@RequestParam("masterId") String masterId,
|
||||
@RequestParam(value = "tableId", required = false) String tableId,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
){
|
||||
|
||||
return productService.queryNewCommodityInfo(shopId,categoryId,commdityName,page,pageSize,masterId);
|
||||
return productService.queryNewCommodityInfo(shopId,categoryId,commdityName, tableId,page,pageSize,masterId);
|
||||
}
|
||||
|
||||
@GetMapping(value = "queryCategory")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ClearTableDTO;
|
||||
import com.chaozhanggui.system.cashierservice.service.ShopInfoService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
@ -17,6 +19,11 @@ public class ShopInfoController {
|
|||
@Autowired
|
||||
ShopInfoService shopInfoService;
|
||||
|
||||
@GetMapping("/queryShopInfo")
|
||||
public Result queryShopInfo(@RequestParam Integer shopId){
|
||||
return shopInfoService.queryShopInfo(shopId);
|
||||
}
|
||||
|
||||
@GetMapping("queryShopArea")
|
||||
public Result queryShopArea(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
|
|
@ -42,6 +49,13 @@ public class ShopInfoController {
|
|||
return shopInfoService.queryShopTable(shopId, areaId, status, page, pageSize);
|
||||
}
|
||||
|
||||
@PutMapping("clearTable")
|
||||
public Result queryShopTable(
|
||||
@RequestBody ClearTableDTO clearTableDTO
|
||||
) {
|
||||
return Result.success(CodeEnum.SUCCESS, shopInfoService.cleatTable(clearTableDTO));
|
||||
}
|
||||
|
||||
@GetMapping("queryDuty")
|
||||
public Result queryDuty(@RequestHeader("token") String token,
|
||||
@RequestParam("page") int page,
|
||||
|
|
@ -59,4 +73,9 @@ public class ShopInfoController {
|
|||
) {
|
||||
return shopInfoService.queryDutyFlow(token, shopId, page,pageSize);
|
||||
}
|
||||
|
||||
@GetMapping("queryPwdInfo")
|
||||
public Result queryPwdInfo(@RequestParam("shopId") String shopId) {
|
||||
return shopInfoService.queryShopPwdInfo(shopId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbPrintMachineLog;
|
||||
import com.chaozhanggui.system.cashierservice.service.ShopPrintLogService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 店铺小票打印记录
|
||||
* @author tankaikai
|
||||
* @since 2024-10-09 17:14
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@CrossOrigin(origins = "*")
|
||||
@RequestMapping("shop/print/log")
|
||||
public class ShopPrintLogController {
|
||||
|
||||
@Resource
|
||||
private ShopPrintLogService shopPrintLogService;
|
||||
|
||||
@GetMapping("page")
|
||||
public Result page(@RequestParam Map<String, Object> params) {
|
||||
PageInfo<TbPrintMachineLog> page = shopPrintLogService.page(params);
|
||||
return Result.success(CodeEnum.SUCCESS, page);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ShopPrinterDTO;
|
||||
import com.chaozhanggui.system.cashierservice.service.ShopPrinterService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 店铺打印机配置
|
||||
*
|
||||
* @author tankaikai
|
||||
* @since 2024-09-24 16:56
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@CrossOrigin(origins = "*")
|
||||
@RequestMapping("shop-config/printer")
|
||||
public class ShopPrinterController {
|
||||
|
||||
@Resource
|
||||
private ShopPrinterService shopPrinterService;
|
||||
|
||||
@GetMapping("page")
|
||||
public Result page(@RequestHeader String token, @RequestParam Map<String, Object> params) {
|
||||
PageInfo<ShopPrinterDTO> page = shopPrinterService.page(params);
|
||||
return Result.success(CodeEnum.SUCCESS, page);
|
||||
}
|
||||
|
||||
@GetMapping("list")
|
||||
public Result list(@RequestParam Map<String, Object> params) {
|
||||
List<ShopPrinterDTO> list = shopPrinterService.list(params);
|
||||
return Result.success(CodeEnum.SUCCESS, list);
|
||||
}
|
||||
|
||||
@GetMapping("{id}")
|
||||
public Result get(@PathVariable("id") Integer id) {
|
||||
ShopPrinterDTO dto = shopPrinterService.get(id);
|
||||
return Result.success(CodeEnum.SUCCESS, dto);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
public Result save(@RequestBody ShopPrinterDTO dto) {
|
||||
shopPrinterService.save(dto);
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
public Result update(@RequestBody ShopPrinterDTO dto) {
|
||||
shopPrinterService.update(dto);
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
|
||||
@DeleteMapping("{id}")
|
||||
public Result delete(@PathVariable("id") Integer id) {
|
||||
shopPrinterService.delete(id);
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
|
||||
@PostMapping("update-status")
|
||||
public Result updateStatus(@RequestBody ShopPrinterDTO dto) {
|
||||
shopPrinterService.updateStatus(dto.getId(), dto.getStatus());
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.service.TbShopPermissionService;
|
||||
import com.chaozhanggui.system.cashierservice.service.TbShopStaffPermissionService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("staffPermission")
|
||||
public class StaffPermissionController {
|
||||
|
||||
@Autowired
|
||||
private TbShopPermissionService permissionService;
|
||||
|
||||
@GetMapping
|
||||
public Result getStaffPermission(String staffId, String code) {
|
||||
return permissionService.getStaffPermission(staffId, code);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbVersion;
|
||||
import com.chaozhanggui.system.cashierservice.service.LoginService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* @author yijiegong
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/version")
|
||||
public class VersionController {
|
||||
|
||||
@Autowired
|
||||
LoginService loginService;
|
||||
|
||||
@GetMapping("pcDownload")
|
||||
public ResponseEntity<Void> pcDownload(HttpServletRequest request, HttpServletResponse response) {
|
||||
TbVersion pcVersion = loginService.getCurrentPcVersion();
|
||||
|
||||
if (pcVersion == null) {
|
||||
throw new RuntimeException("未找到PC版本信息");
|
||||
}
|
||||
|
||||
// 重定向到下载地址
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setLocation(java.net.URI.create(pcVersion.getUrl()));
|
||||
return new ResponseEntity<>(headers, HttpStatus.FOUND);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig;
|
||||
|
||||
public interface CodeColumnConfigMapper {
|
||||
int deleteByPrimaryKey(Long columnId);
|
||||
|
||||
int insert(CodeColumnConfig record);
|
||||
|
||||
int insertSelective(CodeColumnConfig record);
|
||||
|
||||
CodeColumnConfig selectByPrimaryKey(Long columnId);
|
||||
|
||||
int updateByPrimaryKeySelective(CodeColumnConfig record);
|
||||
|
||||
int updateByPrimaryKey(CodeColumnConfig record);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.CodeGenConfig;
|
||||
|
||||
public interface CodeGenConfigMapper {
|
||||
int deleteByPrimaryKey(Long configId);
|
||||
|
||||
int insert(CodeGenConfig record);
|
||||
|
||||
int insertSelective(CodeGenConfig record);
|
||||
|
||||
CodeGenConfig selectByPrimaryKey(Long configId);
|
||||
|
||||
int updateByPrimaryKeySelective(CodeGenConfig record);
|
||||
|
||||
int updateByPrimaryKey(CodeGenConfig record);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntApp;
|
||||
|
||||
public interface MntAppMapper {
|
||||
int deleteByPrimaryKey(Long appId);
|
||||
|
||||
int insert(MntApp record);
|
||||
|
||||
int insertSelective(MntApp record);
|
||||
|
||||
MntApp selectByPrimaryKey(Long appId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntApp record);
|
||||
|
||||
int updateByPrimaryKey(MntApp record);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDatabase;
|
||||
|
||||
public interface MntDatabaseMapper {
|
||||
int deleteByPrimaryKey(String dbId);
|
||||
|
||||
int insert(MntDatabase record);
|
||||
|
||||
int insertSelective(MntDatabase record);
|
||||
|
||||
MntDatabase selectByPrimaryKey(String dbId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntDatabase record);
|
||||
|
||||
int updateByPrimaryKey(MntDatabase record);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDeployHistory;
|
||||
|
||||
public interface MntDeployHistoryMapper {
|
||||
int deleteByPrimaryKey(String historyId);
|
||||
|
||||
int insert(MntDeployHistory record);
|
||||
|
||||
int insertSelective(MntDeployHistory record);
|
||||
|
||||
MntDeployHistory selectByPrimaryKey(String historyId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntDeployHistory record);
|
||||
|
||||
int updateByPrimaryKey(MntDeployHistory record);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDeploy;
|
||||
|
||||
public interface MntDeployMapper {
|
||||
int deleteByPrimaryKey(Long deployId);
|
||||
|
||||
int insert(MntDeploy record);
|
||||
|
||||
int insertSelective(MntDeploy record);
|
||||
|
||||
MntDeploy selectByPrimaryKey(Long deployId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntDeploy record);
|
||||
|
||||
int updateByPrimaryKey(MntDeploy record);
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDeployServerKey;
|
||||
|
||||
public interface MntDeployServerMapper {
|
||||
int deleteByPrimaryKey(MntDeployServerKey key);
|
||||
|
||||
int insert(MntDeployServerKey record);
|
||||
|
||||
int insertSelective(MntDeployServerKey record);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntServer;
|
||||
|
||||
public interface MntServerMapper {
|
||||
int deleteByPrimaryKey(Long serverId);
|
||||
|
||||
int insert(MntServer record);
|
||||
|
||||
int insertSelective(MntServer record);
|
||||
|
||||
MntServer selectByPrimaryKey(Long serverId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntServer record);
|
||||
|
||||
int updateByPrimaryKey(MntServer record);
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ShopPrinterDTO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author tankaikai
|
||||
* @since 2024-09-24 17:25
|
||||
*/
|
||||
@Mapper
|
||||
public interface ShopPrinterServiceMapper {
|
||||
List<ShopPrinterDTO> getList(Map<String, Object> params);
|
||||
|
||||
int updateStatus(@Param("id") Integer id, @Param("status") Integer status);
|
||||
}
|
||||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Component
|
||||
public interface ShopUserDutyDetailMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -26,4 +24,4 @@ public interface ShopUserDutyDetailMapper {
|
|||
List<ShopUserDutyDetail> selectByDuctId(@Param("id") Integer id, @Param("list") List<Integer> list);
|
||||
|
||||
List<ShopUserDutyDetail> selectAllByDuctId(@Param("id") Integer id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@ import org.springframework.stereotype.Component;
|
|||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface ShopUserDutyMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -47,4 +45,4 @@ public interface ShopUserDutyMapper {
|
|||
|
||||
|
||||
List<ProductInfo> selectByDutyId(Integer dutyId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ import org.springframework.stereotype.Component;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface ShopUserDutyPayMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -34,4 +32,4 @@ public interface ShopUserDutyPayMapper {
|
|||
List<Map<String,Object>> selectCetoryBydutyId(Integer dutyId);
|
||||
|
||||
List<ProductInfoPO> selectProductByDutyId(Integer dutyId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,68 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbActivateInRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 活动商品赠送记录表(TbActivateInRecord)表数据库访问层
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-24 15:55:01
|
||||
*/
|
||||
public interface TbActivateInRecordMapper {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
TbActivateInRecord queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param tbActivateInRecord 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<TbActivateInRecord> queryAll(TbActivateInRecord tbActivateInRecord, @Param("pageable") Pageable pageable);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param tbActivateInRecord 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(TbActivateInRecord tbActivateInRecord);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<TbActivateInRecord> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<TbActivateInRecord> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param tbActivateInRecord 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(TbActivateInRecord tbActivateInRecord);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,27 +1,77 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbActivate;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
/**
|
||||
* (TbActivate)表数据库访问层
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-23 09:57:47
|
||||
*/
|
||||
public interface TbActivateMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbActivate record);
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
TbActivate queryById(Integer id);
|
||||
|
||||
int insertSelective(TbActivate record);
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param tbActivate 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<TbActivate> queryAll(TbActivate tbActivate, @Param("pageable") Pageable pageable);
|
||||
|
||||
TbActivate selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbActivate record);
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param tbActivate 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(TbActivate tbActivate);
|
||||
|
||||
int updateByPrimaryKey(TbActivate record);
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<TbActivate> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<TbActivate> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param tbActivate 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(TbActivate tbActivate);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
TbActivate selectByAmount(@Param("shopId") String shopId, @Param("amount") BigDecimal amount);
|
||||
}
|
||||
|
||||
TbActivate selectByAmountScope(@Param("shopId") String shopId,@Param("amount") BigDecimal amount);
|
||||
|
||||
int updateMemberPoints(@Param("memberId") Long memberId,@Param("points") Integer points);
|
||||
|
||||
int insertMemberPointsLog(Map<String,Object> params);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,68 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbActivateOutRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 活动赠送商品使用记录表(TbActivateOutRecord)表数据库访问层
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-24 15:55:23
|
||||
*/
|
||||
public interface TbActivateOutRecordMapper {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
TbActivateOutRecord queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param tbActivateOutRecord 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<TbActivateOutRecord> queryAll(TbActivateOutRecord tbActivateOutRecord, @Param("pageable") Pageable pageable);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param tbActivateOutRecord 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(TbActivateOutRecord tbActivateOutRecord);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<TbActivateOutRecord> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<TbActivateOutRecord> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param tbActivateOutRecord 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(TbActivateOutRecord tbActivateOutRecord);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -3,14 +3,14 @@ package com.chaozhanggui.system.cashierservice.dao;
|
|||
import com.chaozhanggui.system.cashierservice.entity.TbCashierCart;
|
||||
import com.chaozhanggui.system.cashierservice.entity.po.CartPo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.po.QueryCartPo;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbCashierCartMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -28,11 +28,14 @@ public interface TbCashierCartMapper {
|
|||
List<TbCashierCart> selectALlByMasterId(@Param("masterId") String masterId,@Param("status") String status);
|
||||
|
||||
TbCashierCart selectByDetail(@Param("masterId") String masterId, @Param("productId") String productId,
|
||||
@Param("shopId") String shopId, @Param("skuId") String skuId, @Param("day") String day,@Param("uuid") String uuid);
|
||||
@Param("shopId") String shopId, @Param("skuId") String skuId, @Param("day") String day,@Param("uuid") String uuid, @Param("tableId") String tableId);
|
||||
|
||||
TbCashierCart selectDetailByQrcode(@Param("tableId") String tableId, @Param("productId") String productId,
|
||||
@Param("shopId") String shopId, @Param("skuId") String skuId, @Param("uuid") String uuid);
|
||||
|
||||
List<TbCashierCart> selectByMaskerId(@Param("masterId")String masterId, @Param("shopId")Integer shopId,@Param("status") String status,@Param("day") String day);
|
||||
|
||||
void deleteByCartId(@Param("masterId") String masterId, @Param("cartId")Integer cartId);
|
||||
void deleteByCartIdOrTableId(@Param("masterId") String masterId, @Param("cartId")Integer cartId, @Param("qrcode") String qrcode);
|
||||
|
||||
void updateStatus(@Param("masterId") Integer id,@Param("status") String status);
|
||||
|
||||
|
|
@ -60,4 +63,17 @@ public interface TbCashierCartMapper {
|
|||
|
||||
|
||||
List<TbCashierCart> selectByOrderId(@Param("orderId") String orderId,@Param("status") String status);
|
||||
}
|
||||
|
||||
List<TbCashierCart> selectActivateByQrcode(@Param("tableId") String tableId, @Param("shopId") Integer shopId);
|
||||
|
||||
QueryCartPo selectProductNumByQrcode(@Param("qrcode") String qrcode, @Param("shopId") Integer shopId);
|
||||
|
||||
@Delete("delete from tb_cashier_cart where master_id=#{masterId} and id=#{cartId}")
|
||||
int deleteByCartId(@Param("masterId") String masterId, @Param("cartId")Integer cartId);
|
||||
|
||||
@Select("select count(*) from tb_cashier_cart where shop_id=#{shopId} and `status`='create' and table_id=#{qrcode} and order_id is not null")
|
||||
int countTable(@Param("qrcode") String qrcode, @Param("shopId") Integer shopId);
|
||||
|
||||
@Select("select count(*) from tb_order_detail where shop_id=#{shopId} and `status`='unpaid' and order_id=#{orderId} and order_id is not null")
|
||||
int countTableByDetail(@Param("orderId") Integer orderId, @Param("shopId") Integer shopId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbConsInfoFlowMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -23,4 +21,4 @@ public interface TbConsInfoFlowMapper {
|
|||
int updateByPrimaryKey(TbConsInfoFlow record);
|
||||
|
||||
void insertBatch(@Param("list")List<TbConsInfoFlow> list);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbConsInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -27,4 +25,4 @@ public interface TbConsInfoMapper {
|
|||
int countAll();
|
||||
|
||||
List<TbConsInfo> selectAllInfo();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,69 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbCouponProduct;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 活动赠送商品表(TbCouponProduct)表数据库访问层
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-24 15:56:08
|
||||
*/
|
||||
public interface TbCouponProductMapper {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
TbCouponProduct queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param tbCouponProduct 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<TbCouponProduct> queryAll(TbCouponProduct tbCouponProduct, @Param("pageable") Pageable pageable);
|
||||
|
||||
List<TbCouponProduct> queryAllByCouponId(Integer couponId);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param tbCouponProduct 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(TbCouponProduct tbCouponProduct);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<TbCouponProduct> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<TbCouponProduct> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param tbCouponProduct 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(TbCouponProduct tbCouponProduct);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbDeviceOperateInfo;
|
||||
|
||||
public interface TbDeviceOperateInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbDeviceOperateInfo record);
|
||||
|
||||
int insertSelective(TbDeviceOperateInfo record);
|
||||
|
||||
TbDeviceOperateInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbDeviceOperateInfo record);
|
||||
|
||||
int updateByPrimaryKey(TbDeviceOperateInfo record);
|
||||
}
|
||||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbMemberIn;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbMemberInMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -18,4 +16,4 @@ public interface TbMemberInMapper {
|
|||
int updateByPrimaryKeySelective(TbMemberIn record);
|
||||
|
||||
int updateByPrimaryKey(TbMemberIn record);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbMerchantThirdApplyMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -20,4 +18,4 @@ public interface TbMerchantThirdApplyMapper {
|
|||
int updateByPrimaryKeyWithBLOBs(TbMerchantThirdApply record);
|
||||
|
||||
int updateByPrimaryKey(TbMerchantThirdApply record);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ import org.springframework.stereotype.Component;
|
|||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Component
|
||||
public interface TbOrderDetailMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -25,7 +23,7 @@ public interface TbOrderDetailMapper {
|
|||
|
||||
int updateByPrimaryKey(TbOrderDetail record);
|
||||
|
||||
void updateStatusByOrderId(@Param("orderId") int orderId,@Param("status") String status);
|
||||
void updateStatusByOrderId(@Param("orderId") int orderId,@Param("status") String status,@Param("radio") BigDecimal radio);
|
||||
|
||||
void updateStatusByOrderIdAndStatus(@Param("orderId") int orderId,@Param("status") String status);
|
||||
void deleteByOUrderId(@Param("orderId") int orderId);
|
||||
|
|
@ -43,4 +41,4 @@ public interface TbOrderDetailMapper {
|
|||
int batchInsert(@Param("list") List<TbOrderDetail> list,@Param("orderId") String orderId);
|
||||
|
||||
TbOrderDetail selectByOrderIdAndSkuId(@Param("orderId") int orderId, @Param("skuId") Integer skuId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ import java.util.Date;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbOrderInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -52,4 +50,6 @@ public interface TbOrderInfoMapper {
|
|||
|
||||
|
||||
TbOrderInfo selectById(Integer id);
|
||||
|
||||
List<TbOrderInfo> selectActivateOrder(@Param("shopId") String shopId, @Param("tableId") String qrcodeId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,12 +7,10 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbOrderOutNumberMapper {
|
||||
int insert(TbOrderOutNumber record);
|
||||
|
||||
int insertSelective(TbOrderOutNumber record);
|
||||
|
||||
List<TbOrderOutNumber> selectAll(@Param("shopId") String shopId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderPayment;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbOrderPaymentMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -20,4 +19,6 @@ public interface TbOrderPaymentMapper {
|
|||
int updateByPrimaryKey(TbOrderPayment record);
|
||||
|
||||
TbOrderPayment selectByOrderId(String orderId);
|
||||
}
|
||||
|
||||
List<TbOrderPayment> selectListByOrderId(@Param("orderId") String orderId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods;
|
||||
|
||||
public interface TbPlussDeviceGoodsMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbPlussDeviceGoods record);
|
||||
|
||||
int insertSelective(TbPlussDeviceGoods record);
|
||||
|
||||
TbPlussDeviceGoods selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbPlussDeviceGoods record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbPlussDeviceGoods record);
|
||||
|
||||
int updateByPrimaryKey(TbPlussDeviceGoods record);
|
||||
}
|
||||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbPlussShopStaff;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbPlussShopStaffMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -21,4 +19,4 @@ public interface TbPlussShopStaffMapper {
|
|||
|
||||
TbPlussShopStaff selectByAccount(String account);
|
||||
TbPlussShopStaff selectByAccountAndShopId(String account,String shopId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbPrintMachineLog;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 店铺小票打印记录
|
||||
*
|
||||
* @author tankaikai
|
||||
* @since 2024-10-8 16:37
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbPrintMachineLogMapper extends BaseMapper<TbPrintMachineLog> {
|
||||
}
|
||||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbPrintMachineMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -25,4 +23,4 @@ public interface TbPrintMachineMapper {
|
|||
int updateByPrimaryKey(TbPrintMachine record);
|
||||
|
||||
List<TbPrintMachineWithBLOBs> selectByShopId(String shopId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbPrintPCMachineMapper {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,45 +1,26 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProduct;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductWithBLOBs;
|
||||
import com.chaozhanggui.system.cashierservice.entity.po.ProConsSkuInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbProductMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbProductWithBLOBs record);
|
||||
TbProduct selectByPrimaryKey(Integer id);
|
||||
|
||||
int insertSelective(TbProductWithBLOBs record);
|
||||
List<TbProduct> selectByShopId(@Param("shopId") String shopId,@Param("commdityName") String commdityName);
|
||||
List<TbProduct> selectByShopIdAndCheckGrounding(@Param("shopId") String shopId,@Param("commdityName") String commdityName);
|
||||
|
||||
TbProductWithBLOBs selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbProduct record);
|
||||
|
||||
|
||||
List<TbProductWithBLOBs> selectByShopId(@Param("shopId") String shopId,@Param("commdityName") String commdityName);
|
||||
List<TbProductWithBLOBs> selectByShopIdAndCheckGrounding(@Param("shopId") String shopId,@Param("commdityName") String commdityName);
|
||||
|
||||
|
||||
|
||||
List<TbProductWithBLOBs> selectByShopIdAndShopType(@Param("shopId") String shopId, @Param("categoryId") String categoryId,@Param("commdityName") String commdityName);
|
||||
List<TbProductWithBLOBs> selectByShopIdAndShopTypeCheckGrounding(@Param("shopId") String shopId, @Param("categoryId") String categoryId,@Param("commdityName") String commdityName);
|
||||
|
||||
|
||||
|
||||
Integer countOrderByshopIdAndProductId(@Param("shopId") String shopId, @Param("productId") String productId, @Param("masterId") String masterId,@Param("day") String day);
|
||||
List<TbProduct> selectByShopIdAndShopType(@Param("shopId") String shopId, @Param("categoryId") String categoryId,@Param("commdityName") String commdityName);
|
||||
List<TbProduct> selectByShopIdAndShopTypeCheckGrounding(@Param("shopId") String shopId, @Param("categoryId") String categoryId,@Param("commdityName") String commdityName);
|
||||
List<TbProduct> selectByShopIdAndShopTypeUnGrounding(@Param("shopId") String shopId,@Param("commdityName") String commdityName);
|
||||
|
||||
Integer countOrderByshopIdAndProductId(@Param("shopId") String shopId, @Param("productId") String productId, @Param("masterId") String masterId,@Param("day") String day, @Param("tableId") String tableId);
|
||||
@Update("update tb_product set stock_number = stock_number - #{num,jdbcType=INTEGER} where id = #{productId}")
|
||||
void updateStockById(@Param("productId")Integer productId, @Param("num")Integer num);
|
||||
|
||||
|
||||
|
|
@ -53,4 +34,24 @@ public interface TbProductMapper {
|
|||
|
||||
@Update("update tb_product set stock_number=stock_number-#{num} WHERE id=#{id}")
|
||||
int decrStockUnCheck(String id, int num);
|
||||
|
||||
@Select("select * from tb_product product where product.id=#{productId} and product.shop_id=#{shopId} and product.is_del=0")
|
||||
TbProduct selectByShopIdAndId(@Param("productId") Integer productId, @Param("shopId") Integer shopId);
|
||||
|
||||
@Update("update tb_product_sku set is_grounding=#{isGrounding} where product_id=#{productId}")
|
||||
int updateGroundingByProId(@Param("productId") Integer productId, @Param("isGrounding") int isGrounding);
|
||||
|
||||
@Update("update tb_product_sku set is_grounding=#{status} where id=#{skuId}")
|
||||
int updateGrounding(@Param("skuId") Integer skuId, @Param("status") int status);
|
||||
|
||||
@Update("update tb_product set is_pause_sale=#{state} where id=#{id} and shop_id=#{shopId}")
|
||||
int pauseSale(@Param("id") Integer id, @Param("shopId") Integer shopId, @Param("state") Integer state);
|
||||
|
||||
@Update("update tb_product_sku set is_pause_sale=#{state} where product_id=#{id} and shop_id=#{shopId}")
|
||||
int pauseSkuSale(@Param("id") Integer proId, @Param("shopId") Integer shopId, @Param("state") Integer state);
|
||||
|
||||
|
||||
|
||||
@Update("update tb_product set stock_number=#{stock} where id=#{productId} and shop_id=#{shopId}")
|
||||
int updateStock(@Param("shopId") Integer shopId, @Param("productId") Integer productId, @Param("stock") Integer stock);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbProductSkuMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -48,12 +46,24 @@ public interface TbProductSkuMapper {
|
|||
@Update("update tb_product_sku set stock_number=stock_number-#{num} WHERE id=#{id} and stock_number-#{num} >= 0")
|
||||
int decrStock(String id, int num);
|
||||
|
||||
@Update("update tb_product_sku set real_sales_number=real_sales_number-#{num} WHERE id=#{skuId}")
|
||||
int decrRealSalesNumber(@Param("skuId") Integer skuId, @Param("num") Integer num);
|
||||
|
||||
@Update("update tb_product_sku set stock_number=stock_number-#{num} WHERE id=#{id} ")
|
||||
int decrStockUnCheck(String id, int num);
|
||||
|
||||
@Select("select * from tb_product_sku where is_grounding=1 and product_id=#{id}")
|
||||
@Select("select * from tb_product_sku where is_grounding=1 and product_id=#{id} and is_del=0")
|
||||
List<TbProductSku> selectByProductCheckGrounding(@Param("id") Integer id);
|
||||
|
||||
@Select("select * from tb_product_sku where is_grounding=1 and is_del=0 and product_id=#{id}")
|
||||
List<TbProductSku> selectGroundingByProId(Integer id);
|
||||
List<TbProductSku> selectGroundingByProId(@Param("id") Integer id);
|
||||
|
||||
@Update("update tb_product_sku set is_pause_sale=#{state} where id=#{skuId} and shop_id=#{shopId}")
|
||||
int pauseSale(@Param("skuId") Integer skuId, @Param("shopId") Integer shopId, @Param("state") Integer state);
|
||||
|
||||
@Update("update tb_product_sku set stock_number=#{stock} where product_id=#{skuId} and shop_id=#{shopId}")
|
||||
int updateStock(@Param("shopId") Integer shopId, @Param("skuId") Integer skuId, @Param("stock") Integer stock);
|
||||
|
||||
@Select("select * from tb_product_sku where product_id=#{id} and is_del=0")
|
||||
List<TbProductSku> selectByProductId(Integer id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbProductSkuResult;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbProductSkuResultMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -20,4 +18,4 @@ public interface TbProductSkuResultMapper {
|
|||
int updateByPrimaryKeyWithBLOBs(TbProductSkuResult record);
|
||||
|
||||
int updateByPrimaryKey(TbProductSkuResult record);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ import org.apache.ibatis.annotations.Mapper;
|
|||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbProductSpecMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -22,4 +20,4 @@ public interface TbProductSpecMapper {
|
|||
|
||||
int updateByPrimaryKey(TbProductSpec record);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbProskuConMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -24,12 +22,14 @@ public interface TbProskuConMapper {
|
|||
|
||||
|
||||
List<TbProskuCon> selectBySkuIdAndShopId(@Param("skuId") Integer skuId, @Param("shopId") Integer shopId);
|
||||
List<TbProskuCon> selectBySkuIdAndShopIdAngCheck(@Param("skuId") Integer skuId, @Param("shopId") Integer shopId);
|
||||
|
||||
|
||||
List<Integer> selectIdBySkuIdAndShopId(@Param("skuId") Integer skuId, @Param("shopId") Integer shopId);
|
||||
|
||||
List<TbProskuCon> selectByShopIdAndSkuIdAndProductId(@Param("skuId") Integer skuId, @Param("shopId") Integer shopId,@Param("productId") Integer productId);
|
||||
List<TbProskuCon> selectByShopIdAndSkuIdAndProductIdAndCheck(@Param("skuId") Integer skuId, @Param("shopId") Integer shopId,@Param("productId") Integer productId);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbQuickPayMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -25,4 +23,4 @@ public interface TbQuickPayMapper {
|
|||
List<TbQuickPay> selectByShopIdAndStaffId(@Param("shopId") Integer shopId,@Param("staffId") Integer staffId);
|
||||
|
||||
TbQuickPay selectByOrderNo(String orderNo);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbReceiptSales;
|
||||
|
||||
public interface TbReceiptSalesMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbReceiptSales record);
|
||||
|
||||
int insertSelective(TbReceiptSales record);
|
||||
|
||||
TbReceiptSales selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbReceiptSales record);
|
||||
|
||||
int updateByPrimaryKey(TbReceiptSales record);
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog;
|
||||
|
||||
public interface TbRenewalsPayLogMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbRenewalsPayLog record);
|
||||
|
||||
int insertSelective(TbRenewalsPayLog record);
|
||||
|
||||
TbRenewalsPayLog selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbRenewalsPayLog record);
|
||||
|
||||
int updateByPrimaryKey(TbRenewalsPayLog record);
|
||||
}
|
||||
|
|
@ -6,8 +6,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopAreaMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -24,4 +22,4 @@ public interface TbShopAreaMapper {
|
|||
int updateByPrimaryKey(TbShopArea record);
|
||||
|
||||
List<TbShopArea> selectByShopId(String shopId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCashSpread;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCashSpreadWithBLOBs;
|
||||
|
||||
public interface TbShopCashSpreadMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopCashSpreadWithBLOBs record);
|
||||
|
||||
int insertSelective(TbShopCashSpreadWithBLOBs record);
|
||||
|
||||
TbShopCashSpreadWithBLOBs selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopCashSpreadWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbShopCashSpreadWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbShopCashSpread record);
|
||||
}
|
||||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopCategoryMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -24,4 +22,4 @@ public interface TbShopCategoryMapper {
|
|||
|
||||
List<TbShopCategory> selectByAll(String shopId);
|
||||
List<ShopCategoryVo> queryAllCategory(String shopId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,68 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCoupon;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 优惠券(TbShopCoupon)表数据库访问层
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-24 15:52:58
|
||||
*/
|
||||
public interface TbShopCouponMapper {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
TbShopCoupon queryById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param tbShopCoupon 查询条件
|
||||
* @param pageable 分页对象
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<TbShopCoupon> queryAll(TbShopCoupon tbShopCoupon, @Param("pageable") Pageable pageable);
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param tbShopCoupon 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insert(TbShopCoupon tbShopCoupon);
|
||||
|
||||
/**
|
||||
* 批量新增数据(MyBatis原生foreach方法)
|
||||
*
|
||||
* @param entities List<TbShopCoupon> 实例对象列表
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertBatch(@Param("entities") List<TbShopCoupon> entities);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param tbShopCoupon 实例对象
|
||||
* @return 影响行数
|
||||
*/
|
||||
int update(TbShopCoupon tbShopCoupon);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 影响行数
|
||||
*/
|
||||
int deleteById(Integer id);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCurrency;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs;
|
||||
|
||||
public interface TbShopCurrencyMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopCurrencyWithBLOBs record);
|
||||
|
||||
int insertSelective(TbShopCurrencyWithBLOBs record);
|
||||
|
||||
TbShopCurrencyWithBLOBs selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopCurrencyWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbShopCurrencyWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbShopCurrency record);
|
||||
}
|
||||
|
|
@ -1,32 +1,18 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopInfo record);
|
||||
|
||||
int insertSelective(TbShopInfo record);
|
||||
|
||||
TbShopInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopInfo record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbShopInfo record);
|
||||
|
||||
int updateByPrimaryKey(TbShopInfo record);
|
||||
|
||||
List<TbShopInfo> selectAll();
|
||||
|
||||
List<TbShopInfo> selectAllByCreateTime();
|
||||
|
||||
|
||||
String getTicketLogo(Integer shopId);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbShopOnline;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopOnlineMapper {
|
||||
int deleteByPrimaryKey(Integer shopId);
|
||||
|
||||
|
|
@ -18,4 +16,4 @@ public interface TbShopOnlineMapper {
|
|||
int updateByPrimaryKeySelective(TbShopOnline record);
|
||||
|
||||
int updateByPrimaryKey(TbShopOnline record);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopOpenId;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -27,4 +28,7 @@ public interface TbShopOpenIdMapper {
|
|||
|
||||
@Select("select * from tb_shop_open_id where shop_id=#{shopId} and status=1")
|
||||
List<TbShopOpenId> selectByShopId(Integer integer);
|
||||
|
||||
@Select("select * from tb_shop_open_id where shop_id=#{shopId} and status=1 and (type=#{type} or type=-1) group by open_id;")
|
||||
List<TbShopOpenId> selectStateByShopIdAndType(@Param("shopId") String shopId, @Param("type") int type);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopPayTypeMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -27,4 +25,4 @@ public interface TbShopPayTypeMapper {
|
|||
int countSelectByShopIdAndPayType(@Param("shopId") String shopId, @Param("payType") String payType );
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopPermission;
|
||||
|
||||
/**
|
||||
* (TbShopPermission)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-09-14 17:08:48
|
||||
*/
|
||||
public interface TbShopPermissionDao extends BaseMapper<TbShopPermission> {
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopStaffPermission;
|
||||
|
||||
/**
|
||||
* 店铺员工权限关联表(TbShopStaffPermission)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-09-14 17:07:33
|
||||
*/
|
||||
public interface TbShopStaffPermissionDao extends BaseMapper<TbShopStaffPermission> {
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,14 +1,13 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopTable;
|
||||
import com.chaozhanggui.system.cashierservice.entity.vo.TbShopTableVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopTableMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -23,4 +22,5 @@ public interface TbShopTableMapper {
|
|||
int updateByPrimaryKey(TbShopTable record);
|
||||
|
||||
List<TbShopTable> selectByShopIdAndStatus(@Param("shopId") String shopId,@Param("areaId") String areaId,@Param("status") String status);
|
||||
}
|
||||
List<TbShopTableVO> selectTableInfo(@Param("shopId") String shopId, @Param("areaId") String areaId, @Param("status") String status, @Param("day") String day);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopUserFlowMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -23,4 +21,4 @@ public interface TbShopUserFlowMapper {
|
|||
int updateByPrimaryKey(TbShopUserFlow record);
|
||||
|
||||
List<Map<String,Object>> selectByMemberAccountFlow(String memberId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopUserMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -22,7 +20,7 @@ public interface TbShopUserMapper {
|
|||
|
||||
int updateByPrimaryKey(TbShopUser record);
|
||||
|
||||
List<TbShopUser> selectByShopId(@Param("shopId") String shopId,@Param("phone") String phone);
|
||||
List<TbShopUser> selectByShopId(@Param("shopId") String shopId,@Param("phone") String phone,@Param("isFlag") String isFlag);
|
||||
|
||||
|
||||
List<TbShopUser> selectByShopIdAndPhone(@Param("shopId") String shopId,@Param("phone") String phone);
|
||||
|
|
@ -30,4 +28,4 @@ public interface TbShopUserMapper {
|
|||
TbShopUser selectByUserIdAndShopId(@Param("userId") String userId,@Param("shopId") String shopId);
|
||||
|
||||
TbShopUser selectByShopIdAndDdynamicCode(@Param("shopId") String shopId,@Param("memberAccount") String memberAccount);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbToken;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbTokenMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -20,4 +18,4 @@ public interface TbTokenMapper {
|
|||
int updateByPrimaryKey(TbToken record);
|
||||
|
||||
TbToken selectByToken(String token);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbUserInfo;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbUserInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -23,4 +21,4 @@ public interface TbUserInfoMapper {
|
|||
TbUserInfo selectByPhone(String phone);
|
||||
|
||||
int selectCountByPhone(String phone);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbUserShopMsgMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -28,4 +26,4 @@ public interface TbUserShopMsgMapper {
|
|||
|
||||
|
||||
List<TbUserShopMsg> selectAllByShopId(@Param("shopId") Integer shopId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.TbmerchantAccount;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbmerchantAccountMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -23,4 +21,4 @@ public interface TbmerchantAccountMapper {
|
|||
|
||||
|
||||
TbmerchantAccount selectByAccount(String account);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import com.chaozhanggui.system.cashierservice.entity.tbHandover;
|
|||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface tbHandoverMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
|
|
@ -18,4 +16,4 @@ public interface tbHandoverMapper {
|
|||
int updateByPrimaryKeySelective(tbHandover record);
|
||||
|
||||
int updateByPrimaryKey(tbHandover record);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,147 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CodeColumnConfig implements Serializable {
|
||||
private Long columnId;
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String columnName;
|
||||
|
||||
private String columnType;
|
||||
|
||||
private String dictName;
|
||||
|
||||
private String extra;
|
||||
|
||||
private Boolean formShow;
|
||||
|
||||
private String formType;
|
||||
|
||||
private String keyType;
|
||||
|
||||
private Boolean listShow;
|
||||
|
||||
private Boolean notNull;
|
||||
|
||||
private String queryType;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String dateAnnotation;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getColumnId() {
|
||||
return columnId;
|
||||
}
|
||||
|
||||
public void setColumnId(Long columnId) {
|
||||
this.columnId = columnId;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName == null ? null : tableName.trim();
|
||||
}
|
||||
|
||||
public String getColumnName() {
|
||||
return columnName;
|
||||
}
|
||||
|
||||
public void setColumnName(String columnName) {
|
||||
this.columnName = columnName == null ? null : columnName.trim();
|
||||
}
|
||||
|
||||
public String getColumnType() {
|
||||
return columnType;
|
||||
}
|
||||
|
||||
public void setColumnType(String columnType) {
|
||||
this.columnType = columnType == null ? null : columnType.trim();
|
||||
}
|
||||
|
||||
public String getDictName() {
|
||||
return dictName;
|
||||
}
|
||||
|
||||
public void setDictName(String dictName) {
|
||||
this.dictName = dictName == null ? null : dictName.trim();
|
||||
}
|
||||
|
||||
public String getExtra() {
|
||||
return extra;
|
||||
}
|
||||
|
||||
public void setExtra(String extra) {
|
||||
this.extra = extra == null ? null : extra.trim();
|
||||
}
|
||||
|
||||
public Boolean getFormShow() {
|
||||
return formShow;
|
||||
}
|
||||
|
||||
public void setFormShow(Boolean formShow) {
|
||||
this.formShow = formShow;
|
||||
}
|
||||
|
||||
public String getFormType() {
|
||||
return formType;
|
||||
}
|
||||
|
||||
public void setFormType(String formType) {
|
||||
this.formType = formType == null ? null : formType.trim();
|
||||
}
|
||||
|
||||
public String getKeyType() {
|
||||
return keyType;
|
||||
}
|
||||
|
||||
public void setKeyType(String keyType) {
|
||||
this.keyType = keyType == null ? null : keyType.trim();
|
||||
}
|
||||
|
||||
public Boolean getListShow() {
|
||||
return listShow;
|
||||
}
|
||||
|
||||
public void setListShow(Boolean listShow) {
|
||||
this.listShow = listShow;
|
||||
}
|
||||
|
||||
public Boolean getNotNull() {
|
||||
return notNull;
|
||||
}
|
||||
|
||||
public void setNotNull(Boolean notNull) {
|
||||
this.notNull = notNull;
|
||||
}
|
||||
|
||||
public String getQueryType() {
|
||||
return queryType;
|
||||
}
|
||||
|
||||
public void setQueryType(String queryType) {
|
||||
this.queryType = queryType == null ? null : queryType.trim();
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
public String getDateAnnotation() {
|
||||
return dateAnnotation;
|
||||
}
|
||||
|
||||
public void setDateAnnotation(String dateAnnotation) {
|
||||
this.dateAnnotation = dateAnnotation == null ? null : dateAnnotation.trim();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CodeGenConfig implements Serializable {
|
||||
private Long configId;
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String author;
|
||||
|
||||
private Boolean cover;
|
||||
|
||||
private String moduleName;
|
||||
|
||||
private String pack;
|
||||
|
||||
private String path;
|
||||
|
||||
private String apiPath;
|
||||
|
||||
private String prefix;
|
||||
|
||||
private String apiAlias;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getConfigId() {
|
||||
return configId;
|
||||
}
|
||||
|
||||
public void setConfigId(Long configId) {
|
||||
this.configId = configId;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName == null ? null : tableName.trim();
|
||||
}
|
||||
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author == null ? null : author.trim();
|
||||
}
|
||||
|
||||
public Boolean getCover() {
|
||||
return cover;
|
||||
}
|
||||
|
||||
public void setCover(Boolean cover) {
|
||||
this.cover = cover;
|
||||
}
|
||||
|
||||
public String getModuleName() {
|
||||
return moduleName;
|
||||
}
|
||||
|
||||
public void setModuleName(String moduleName) {
|
||||
this.moduleName = moduleName == null ? null : moduleName.trim();
|
||||
}
|
||||
|
||||
public String getPack() {
|
||||
return pack;
|
||||
}
|
||||
|
||||
public void setPack(String pack) {
|
||||
this.pack = pack == null ? null : pack.trim();
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path == null ? null : path.trim();
|
||||
}
|
||||
|
||||
public String getApiPath() {
|
||||
return apiPath;
|
||||
}
|
||||
|
||||
public void setApiPath(String apiPath) {
|
||||
this.apiPath = apiPath == null ? null : apiPath.trim();
|
||||
}
|
||||
|
||||
public String getPrefix() {
|
||||
return prefix;
|
||||
}
|
||||
|
||||
public void setPrefix(String prefix) {
|
||||
this.prefix = prefix == null ? null : prefix.trim();
|
||||
}
|
||||
|
||||
public String getApiAlias() {
|
||||
return apiAlias;
|
||||
}
|
||||
|
||||
public void setApiAlias(String apiAlias) {
|
||||
this.apiAlias = apiAlias == null ? null : apiAlias.trim();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntApp implements Serializable {
|
||||
private Long appId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String uploadPath;
|
||||
|
||||
private String deployPath;
|
||||
|
||||
private String backupPath;
|
||||
|
||||
private Integer port;
|
||||
|
||||
private String startScript;
|
||||
|
||||
private String deployScript;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(Long appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getUploadPath() {
|
||||
return uploadPath;
|
||||
}
|
||||
|
||||
public void setUploadPath(String uploadPath) {
|
||||
this.uploadPath = uploadPath == null ? null : uploadPath.trim();
|
||||
}
|
||||
|
||||
public String getDeployPath() {
|
||||
return deployPath;
|
||||
}
|
||||
|
||||
public void setDeployPath(String deployPath) {
|
||||
this.deployPath = deployPath == null ? null : deployPath.trim();
|
||||
}
|
||||
|
||||
public String getBackupPath() {
|
||||
return backupPath;
|
||||
}
|
||||
|
||||
public void setBackupPath(String backupPath) {
|
||||
this.backupPath = backupPath == null ? null : backupPath.trim();
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getStartScript() {
|
||||
return startScript;
|
||||
}
|
||||
|
||||
public void setStartScript(String startScript) {
|
||||
this.startScript = startScript == null ? null : startScript.trim();
|
||||
}
|
||||
|
||||
public String getDeployScript() {
|
||||
return deployScript;
|
||||
}
|
||||
|
||||
public void setDeployScript(String deployScript) {
|
||||
this.deployScript = deployScript == null ? null : deployScript.trim();
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntDatabase implements Serializable {
|
||||
private String dbId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String jdbcUrl;
|
||||
|
||||
private String userName;
|
||||
|
||||
private String pwd;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getDbId() {
|
||||
return dbId;
|
||||
}
|
||||
|
||||
public void setDbId(String dbId) {
|
||||
this.dbId = dbId == null ? null : dbId.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getJdbcUrl() {
|
||||
return jdbcUrl;
|
||||
}
|
||||
|
||||
public void setJdbcUrl(String jdbcUrl) {
|
||||
this.jdbcUrl = jdbcUrl == null ? null : jdbcUrl.trim();
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName == null ? null : userName.trim();
|
||||
}
|
||||
|
||||
public String getPwd() {
|
||||
return pwd;
|
||||
}
|
||||
|
||||
public void setPwd(String pwd) {
|
||||
this.pwd = pwd == null ? null : pwd.trim();
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntDeploy implements Serializable {
|
||||
private Long deployId;
|
||||
|
||||
private Long appId;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getDeployId() {
|
||||
return deployId;
|
||||
}
|
||||
|
||||
public void setDeployId(Long deployId) {
|
||||
this.deployId = deployId;
|
||||
}
|
||||
|
||||
public Long getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(Long appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntDeployHistory implements Serializable {
|
||||
private String historyId;
|
||||
|
||||
private String appName;
|
||||
|
||||
private Date deployDate;
|
||||
|
||||
private String deployUser;
|
||||
|
||||
private String ip;
|
||||
|
||||
private Long deployId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getHistoryId() {
|
||||
return historyId;
|
||||
}
|
||||
|
||||
public void setHistoryId(String historyId) {
|
||||
this.historyId = historyId == null ? null : historyId.trim();
|
||||
}
|
||||
|
||||
public String getAppName() {
|
||||
return appName;
|
||||
}
|
||||
|
||||
public void setAppName(String appName) {
|
||||
this.appName = appName == null ? null : appName.trim();
|
||||
}
|
||||
|
||||
public Date getDeployDate() {
|
||||
return deployDate;
|
||||
}
|
||||
|
||||
public void setDeployDate(Date deployDate) {
|
||||
this.deployDate = deployDate;
|
||||
}
|
||||
|
||||
public String getDeployUser() {
|
||||
return deployUser;
|
||||
}
|
||||
|
||||
public void setDeployUser(String deployUser) {
|
||||
this.deployUser = deployUser == null ? null : deployUser.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip == null ? null : ip.trim();
|
||||
}
|
||||
|
||||
public Long getDeployId() {
|
||||
return deployId;
|
||||
}
|
||||
|
||||
public void setDeployId(Long deployId) {
|
||||
this.deployId = deployId;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class MntDeployServerKey implements Serializable {
|
||||
private Long deployId;
|
||||
|
||||
private Long serverId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getDeployId() {
|
||||
return deployId;
|
||||
}
|
||||
|
||||
public void setDeployId(Long deployId) {
|
||||
this.deployId = deployId;
|
||||
}
|
||||
|
||||
public Long getServerId() {
|
||||
return serverId;
|
||||
}
|
||||
|
||||
public void setServerId(Long serverId) {
|
||||
this.serverId = serverId;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntServer implements Serializable {
|
||||
private Long serverId;
|
||||
|
||||
private String account;
|
||||
|
||||
private String ip;
|
||||
|
||||
private String name;
|
||||
|
||||
private String password;
|
||||
|
||||
private Integer port;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getServerId() {
|
||||
return serverId;
|
||||
}
|
||||
|
||||
public void setServerId(Long serverId) {
|
||||
this.serverId = serverId;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account == null ? null : account.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip == null ? null : ip.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password == null ? null : password.trim();
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -2,6 +2,8 @@ package com.chaozhanggui.system.cashierservice.entity;
|
|||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
|
|
@ -12,4 +14,13 @@ public class OrderVo {
|
|||
private Integer shopId;
|
||||
private String userId;
|
||||
private Integer merchantId;
|
||||
private String tableId;
|
||||
private Integer vipUserId;
|
||||
private Integer type;
|
||||
|
||||
private String sendType;
|
||||
|
||||
private String eatModel;
|
||||
@Min(1)
|
||||
private Integer seatNum;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,24 +1,49 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* (TbActivate)实体类
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-23 09:57:13
|
||||
*/
|
||||
public class TbActivate implements Serializable {
|
||||
private static final long serialVersionUID = -45208765530510891L;
|
||||
|
||||
private Integer id;
|
||||
|
||||
private Integer shopId;
|
||||
/**
|
||||
* 充值金额
|
||||
*/
|
||||
private Integer amount;
|
||||
/**
|
||||
* 赠送金额
|
||||
*/
|
||||
private Integer giftAmount;
|
||||
/**
|
||||
* 赠送积分
|
||||
*/
|
||||
private Integer giftPoints;
|
||||
/**
|
||||
* 是否使用优惠卷 0否 1是
|
||||
*/
|
||||
private Integer isUseCoupon;
|
||||
/**
|
||||
* 优惠卷id
|
||||
*/
|
||||
private Integer couponId;
|
||||
/**
|
||||
* 优惠卷数量
|
||||
*/
|
||||
private Integer num;
|
||||
|
||||
private Integer minNum;
|
||||
private Date createTime;
|
||||
|
||||
private Integer maxNum;
|
||||
private Date updateTime;
|
||||
|
||||
private BigDecimal handselNum;
|
||||
|
||||
private String handselType;
|
||||
|
||||
private String isDel;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
|
|
@ -36,43 +61,68 @@ public class TbActivate implements Serializable {
|
|||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
public Integer getMinNum() {
|
||||
return minNum;
|
||||
public Integer getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setMinNum(Integer minNum) {
|
||||
this.minNum = minNum;
|
||||
public void setAmount(Integer amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public Integer getMaxNum() {
|
||||
return maxNum;
|
||||
public Integer getGiftAmount() {
|
||||
return giftAmount;
|
||||
}
|
||||
|
||||
public void setMaxNum(Integer maxNum) {
|
||||
this.maxNum = maxNum;
|
||||
public void setGiftAmount(Integer giftAmount) {
|
||||
this.giftAmount = giftAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getHandselNum() {
|
||||
return handselNum;
|
||||
public Integer getIsUseCoupon() {
|
||||
return isUseCoupon;
|
||||
}
|
||||
|
||||
public void setHandselNum(BigDecimal handselNum) {
|
||||
this.handselNum = handselNum;
|
||||
public void setIsUseCoupon(Integer isUseCoupon) {
|
||||
this.isUseCoupon = isUseCoupon;
|
||||
}
|
||||
|
||||
public String getHandselType() {
|
||||
return handselType;
|
||||
public Integer getCouponId() {
|
||||
return couponId;
|
||||
}
|
||||
|
||||
public void setHandselType(String handselType) {
|
||||
this.handselType = handselType == null ? null : handselType.trim();
|
||||
public void setCouponId(Integer couponId) {
|
||||
this.couponId = couponId;
|
||||
}
|
||||
|
||||
public String getIsDel() {
|
||||
return isDel;
|
||||
public Integer getNum() {
|
||||
return num;
|
||||
}
|
||||
|
||||
public void setIsDel(String isDel) {
|
||||
this.isDel = isDel == null ? null : isDel.trim();
|
||||
public void setNum(Integer num) {
|
||||
this.num = num;
|
||||
}
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Integer getGiftPoints() {
|
||||
return giftPoints;
|
||||
}
|
||||
|
||||
public void setGiftPoints(Integer giftPoints) {
|
||||
this.giftPoints = giftPoints;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,233 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 活动商品赠送记录表(TbActivateInRecord)实体类
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-24 15:55:01
|
||||
*/
|
||||
public class TbActivateInRecord implements Serializable {
|
||||
private static final long serialVersionUID = -87516247063601097L;
|
||||
|
||||
private Integer id;
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private Integer vipUserId;
|
||||
/**
|
||||
* 卷Id (校验是否可用)
|
||||
*/
|
||||
private Integer couponId;
|
||||
/**
|
||||
* 卷描述 满10减2/商品卷
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 1-满减 2-商品
|
||||
*/
|
||||
private Integer type;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Integer proId;
|
||||
/**
|
||||
* 满多少金额
|
||||
*/
|
||||
private BigDecimal fullAmount;
|
||||
/**
|
||||
* 减多少金额
|
||||
*/
|
||||
private BigDecimal discountAmount;
|
||||
/**
|
||||
* 赠送数量
|
||||
*/
|
||||
private Integer num;
|
||||
/**
|
||||
* 未使用数量
|
||||
*/
|
||||
private Integer overNum;
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Integer shopId;
|
||||
/**
|
||||
* 来源活动id
|
||||
*/
|
||||
private Integer sourceActId;
|
||||
|
||||
private Integer sourceFlowId;
|
||||
/**
|
||||
* 可用开始时间
|
||||
*/
|
||||
private Date useStartTime;
|
||||
/**
|
||||
* 可用结束时间
|
||||
*/
|
||||
private Date useEndTime;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private String couponJson;
|
||||
|
||||
private String source;
|
||||
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getVipUserId() {
|
||||
return vipUserId;
|
||||
}
|
||||
|
||||
public void setVipUserId(Integer vipUserId) {
|
||||
this.vipUserId = vipUserId;
|
||||
}
|
||||
|
||||
public Integer getCouponId() {
|
||||
return couponId;
|
||||
}
|
||||
|
||||
public void setCouponId(Integer couponId) {
|
||||
this.couponId = couponId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getProId() {
|
||||
return proId;
|
||||
}
|
||||
|
||||
public void setProId(Integer proId) {
|
||||
this.proId = proId;
|
||||
}
|
||||
|
||||
public BigDecimal getFullAmount() {
|
||||
return fullAmount;
|
||||
}
|
||||
|
||||
public void setFullAmount(BigDecimal fullAmount) {
|
||||
this.fullAmount = fullAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getDiscountAmount() {
|
||||
return discountAmount;
|
||||
}
|
||||
|
||||
public void setDiscountAmount(BigDecimal discountAmount) {
|
||||
this.discountAmount = discountAmount;
|
||||
}
|
||||
|
||||
public Integer getNum() {
|
||||
return num;
|
||||
}
|
||||
|
||||
public void setNum(Integer num) {
|
||||
this.num = num;
|
||||
}
|
||||
|
||||
public Integer getOverNum() {
|
||||
return overNum;
|
||||
}
|
||||
|
||||
public void setOverNum(Integer overNum) {
|
||||
this.overNum = overNum;
|
||||
}
|
||||
|
||||
public Integer getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(Integer shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
public Integer getSourceActId() {
|
||||
return sourceActId;
|
||||
}
|
||||
|
||||
public void setSourceActId(Integer sourceActId) {
|
||||
this.sourceActId = sourceActId;
|
||||
}
|
||||
|
||||
public Integer getSourceFlowId() {
|
||||
return sourceFlowId;
|
||||
}
|
||||
|
||||
public void setSourceFlowId(Integer sourceFlowId) {
|
||||
this.sourceFlowId = sourceFlowId;
|
||||
}
|
||||
|
||||
public Date getUseStartTime() {
|
||||
return useStartTime;
|
||||
}
|
||||
|
||||
public void setUseStartTime(Date useStartTime) {
|
||||
this.useStartTime = useStartTime;
|
||||
}
|
||||
|
||||
public Date getUseEndTime() {
|
||||
return useEndTime;
|
||||
}
|
||||
|
||||
public void setUseEndTime(Date useEndTime) {
|
||||
this.useEndTime = useEndTime;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getCouponJson() {
|
||||
return couponJson;
|
||||
}
|
||||
|
||||
public void setCouponJson(String couponJson) {
|
||||
this.couponJson = couponJson;
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,141 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 活动赠送商品使用记录表(TbActivateOutRecord)实体类
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-24 15:55:23
|
||||
*/
|
||||
public class TbActivateOutRecord implements Serializable {
|
||||
private static final long serialVersionUID = -14744224643993479L;
|
||||
|
||||
private Integer id;
|
||||
|
||||
private Integer shopId;
|
||||
/**
|
||||
* 订单id
|
||||
*/
|
||||
private String orderId;
|
||||
/**
|
||||
* 商品赠送Id tb_activate_in_record的id
|
||||
*/
|
||||
private Integer giveId;
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private Integer vipUserId;
|
||||
/**
|
||||
* 1-满减 2-商品
|
||||
*/
|
||||
private Integer type;
|
||||
/**
|
||||
* 使用数量
|
||||
*/
|
||||
private Integer useNum;
|
||||
/**
|
||||
* 退单量
|
||||
*/
|
||||
private Integer refNum;
|
||||
/**
|
||||
* 新建: create, 完成: closed, 取消:cancel,
|
||||
*/
|
||||
private String status;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(Integer shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
public String getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(String orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Integer getGiveId() {
|
||||
return giveId;
|
||||
}
|
||||
|
||||
public void setGiveId(Integer giveId) {
|
||||
this.giveId = giveId;
|
||||
}
|
||||
|
||||
public Integer getVipUserId() {
|
||||
return vipUserId;
|
||||
}
|
||||
|
||||
public void setVipUserId(Integer vipUserId) {
|
||||
this.vipUserId = vipUserId;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getUseNum() {
|
||||
return useNum;
|
||||
}
|
||||
|
||||
public void setUseNum(Integer useNum) {
|
||||
this.useNum = useNum;
|
||||
}
|
||||
|
||||
public Integer getRefNum() {
|
||||
return refNum;
|
||||
}
|
||||
|
||||
public void setRefNum(Integer refNum) {
|
||||
this.refNum = refNum;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,315 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName tb_call_config
|
||||
*/
|
||||
@TableName(value ="tb_call_config")
|
||||
public class TbCallConfig implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 小程序页面地址
|
||||
*/
|
||||
private String pageAddress;
|
||||
|
||||
/**
|
||||
* 线上取号 1是 0否
|
||||
*/
|
||||
private Integer isOnline;
|
||||
|
||||
/**
|
||||
* 背景图片
|
||||
*/
|
||||
private String bgCover;
|
||||
|
||||
/**
|
||||
* 成功提示
|
||||
*/
|
||||
private String successMsg;
|
||||
|
||||
/**
|
||||
* 临近提示
|
||||
*/
|
||||
private String nearMsg;
|
||||
|
||||
/**
|
||||
* 过号提示
|
||||
*/
|
||||
private String callingMsg;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Integer shopId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 是否过号顺延
|
||||
*/
|
||||
private Integer isPostpone;
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
private Integer postponeNum;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序页面地址
|
||||
*/
|
||||
public String getPageAddress() {
|
||||
return pageAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序页面地址
|
||||
*/
|
||||
public void setPageAddress(String pageAddress) {
|
||||
this.pageAddress = pageAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* 线上取号 1是 0否
|
||||
*/
|
||||
public Integer getIsOnline() {
|
||||
return isOnline;
|
||||
}
|
||||
|
||||
/**
|
||||
* 线上取号 1是 0否
|
||||
*/
|
||||
public void setIsOnline(Integer isOnline) {
|
||||
this.isOnline = isOnline;
|
||||
}
|
||||
|
||||
/**
|
||||
* 背景图片
|
||||
*/
|
||||
public String getBgCover() {
|
||||
return bgCover;
|
||||
}
|
||||
|
||||
/**
|
||||
* 背景图片
|
||||
*/
|
||||
public void setBgCover(String bgCover) {
|
||||
this.bgCover = bgCover;
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功提示
|
||||
*/
|
||||
public String getSuccessMsg() {
|
||||
return successMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功提示
|
||||
*/
|
||||
public void setSuccessMsg(String successMsg) {
|
||||
this.successMsg = successMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 临近提示
|
||||
*/
|
||||
public String getNearMsg() {
|
||||
return nearMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 临近提示
|
||||
*/
|
||||
public void setNearMsg(String nearMsg) {
|
||||
this.nearMsg = nearMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 过号提示
|
||||
*/
|
||||
public String getCallingMsg() {
|
||||
return callingMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 过号提示
|
||||
*/
|
||||
public void setCallingMsg(String callingMsg) {
|
||||
this.callingMsg = callingMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
public Integer getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
public void setShopId(Integer shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否过号顺延
|
||||
*/
|
||||
public Integer getIsPostpone() {
|
||||
return isPostpone;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否过号顺延
|
||||
*/
|
||||
public void setIsPostpone(Integer isPostpone) {
|
||||
this.isPostpone = isPostpone;
|
||||
}
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
public Integer getPostponeNum() {
|
||||
return postponeNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
public void setPostponeNum(Integer postponeNum) {
|
||||
this.postponeNum = postponeNum;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
TbCallConfig other = (TbCallConfig) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getPageAddress() == null ? other.getPageAddress() == null : this.getPageAddress().equals(other.getPageAddress()))
|
||||
&& (this.getIsOnline() == null ? other.getIsOnline() == null : this.getIsOnline().equals(other.getIsOnline()))
|
||||
&& (this.getBgCover() == null ? other.getBgCover() == null : this.getBgCover().equals(other.getBgCover()))
|
||||
&& (this.getSuccessMsg() == null ? other.getSuccessMsg() == null : this.getSuccessMsg().equals(other.getSuccessMsg()))
|
||||
&& (this.getNearMsg() == null ? other.getNearMsg() == null : this.getNearMsg().equals(other.getNearMsg()))
|
||||
&& (this.getCallingMsg() == null ? other.getCallingMsg() == null : this.getCallingMsg().equals(other.getCallingMsg()))
|
||||
&& (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getIsPostpone() == null ? other.getIsPostpone() == null : this.getIsPostpone().equals(other.getIsPostpone()))
|
||||
&& (this.getPostponeNum() == null ? other.getPostponeNum() == null : this.getPostponeNum().equals(other.getPostponeNum()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getPageAddress() == null) ? 0 : getPageAddress().hashCode());
|
||||
result = prime * result + ((getIsOnline() == null) ? 0 : getIsOnline().hashCode());
|
||||
result = prime * result + ((getBgCover() == null) ? 0 : getBgCover().hashCode());
|
||||
result = prime * result + ((getSuccessMsg() == null) ? 0 : getSuccessMsg().hashCode());
|
||||
result = prime * result + ((getNearMsg() == null) ? 0 : getNearMsg().hashCode());
|
||||
result = prime * result + ((getCallingMsg() == null) ? 0 : getCallingMsg().hashCode());
|
||||
result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getIsPostpone() == null) ? 0 : getIsPostpone().hashCode());
|
||||
result = prime * result + ((getPostponeNum() == null) ? 0 : getPostponeNum().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", pageAddress=").append(pageAddress);
|
||||
sb.append(", isOnline=").append(isOnline);
|
||||
sb.append(", bgCover=").append(bgCover);
|
||||
sb.append(", successMsg=").append(successMsg);
|
||||
sb.append(", nearMsg=").append(nearMsg);
|
||||
sb.append(", callingMsg=").append(callingMsg);
|
||||
sb.append(", shopId=").append(shopId);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", isPostpone=").append(isPostpone);
|
||||
sb.append(", postponeNum=").append(postponeNum);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,469 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName tb_call_queue
|
||||
*/
|
||||
@TableName(value ="tb_call_queue")
|
||||
public class TbCallQueue implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 叫号台桌类型id
|
||||
*/
|
||||
private Integer callTableId;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
private String shopName;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Integer shopId;
|
||||
|
||||
/**
|
||||
* -1已取消 0排队中 1叫号中 2已入座 3 已过号
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 排号时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 叫号时间
|
||||
*/
|
||||
private Date callTime;
|
||||
|
||||
/**
|
||||
* 叫号次数
|
||||
*/
|
||||
private Integer callCount;
|
||||
|
||||
/**
|
||||
* 过号时间
|
||||
*/
|
||||
private Date passTime;
|
||||
|
||||
/**
|
||||
* 取消时间
|
||||
*/
|
||||
private Date cancelTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String note;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String openId;
|
||||
|
||||
/**
|
||||
* 订阅提醒 0未订阅 1已订阅
|
||||
*/
|
||||
private Integer subState;
|
||||
|
||||
/**
|
||||
* 确认时间
|
||||
*/
|
||||
private Date confirmTime;
|
||||
|
||||
/**
|
||||
* 叫号号码
|
||||
*/
|
||||
private String callNum;
|
||||
|
||||
/**
|
||||
* 创建年月日
|
||||
*/
|
||||
private String createDay;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号台桌类型id
|
||||
*/
|
||||
public Integer getCallTableId() {
|
||||
return callTableId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号台桌类型id
|
||||
*/
|
||||
public void setCallTableId(Integer callTableId) {
|
||||
this.callTableId = callTableId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
public String getShopName() {
|
||||
return shopName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
public void setShopName(String shopName) {
|
||||
this.shopName = shopName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
public Integer getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
public void setShopId(Integer shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* -1已取消 0排队中 1叫号中 2已入座 3 已过号
|
||||
*/
|
||||
public Integer getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* -1已取消 0排队中 1叫号中 2已入座 3 已过号
|
||||
*/
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* 排号时间
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 排号时间
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号时间
|
||||
*/
|
||||
public Date getCallTime() {
|
||||
return callTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号时间
|
||||
*/
|
||||
public void setCallTime(Date callTime) {
|
||||
this.callTime = callTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号次数
|
||||
*/
|
||||
public Integer getCallCount() {
|
||||
return callCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号次数
|
||||
*/
|
||||
public void setCallCount(Integer callCount) {
|
||||
this.callCount = callCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* 过号时间
|
||||
*/
|
||||
public Date getPassTime() {
|
||||
return passTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 过号时间
|
||||
*/
|
||||
public void setPassTime(Date passTime) {
|
||||
this.passTime = passTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消时间
|
||||
*/
|
||||
public Date getCancelTime() {
|
||||
return cancelTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消时间
|
||||
*/
|
||||
public void setCancelTime(Date cancelTime) {
|
||||
this.cancelTime = cancelTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public String getOpenId() {
|
||||
return openId;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setOpenId(String openId) {
|
||||
this.openId = openId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订阅提醒 0未订阅 1已订阅
|
||||
*/
|
||||
public Integer getSubState() {
|
||||
return subState;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订阅提醒 0未订阅 1已订阅
|
||||
*/
|
||||
public void setSubState(Integer subState) {
|
||||
this.subState = subState;
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认时间
|
||||
*/
|
||||
public Date getConfirmTime() {
|
||||
return confirmTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认时间
|
||||
*/
|
||||
public void setConfirmTime(Date confirmTime) {
|
||||
this.confirmTime = confirmTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号号码
|
||||
*/
|
||||
public String getCallNum() {
|
||||
return callNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* 叫号号码
|
||||
*/
|
||||
public void setCallNum(String callNum) {
|
||||
this.callNum = callNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建年月日
|
||||
*/
|
||||
public String getCreateDay() {
|
||||
return createDay;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建年月日
|
||||
*/
|
||||
public void setCreateDay(String createDay) {
|
||||
this.createDay = createDay;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
TbCallQueue other = (TbCallQueue) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getCallTableId() == null ? other.getCallTableId() == null : this.getCallTableId().equals(other.getCallTableId()))
|
||||
&& (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getShopName() == null ? other.getShopName() == null : this.getShopName().equals(other.getShopName()))
|
||||
&& (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId()))
|
||||
&& (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getCallTime() == null ? other.getCallTime() == null : this.getCallTime().equals(other.getCallTime()))
|
||||
&& (this.getCallCount() == null ? other.getCallCount() == null : this.getCallCount().equals(other.getCallCount()))
|
||||
&& (this.getPassTime() == null ? other.getPassTime() == null : this.getPassTime().equals(other.getPassTime()))
|
||||
&& (this.getCancelTime() == null ? other.getCancelTime() == null : this.getCancelTime().equals(other.getCancelTime()))
|
||||
&& (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
|
||||
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
||||
&& (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
|
||||
&& (this.getSubState() == null ? other.getSubState() == null : this.getSubState().equals(other.getSubState()))
|
||||
&& (this.getConfirmTime() == null ? other.getConfirmTime() == null : this.getConfirmTime().equals(other.getConfirmTime()))
|
||||
&& (this.getCallNum() == null ? other.getCallNum() == null : this.getCallNum().equals(other.getCallNum()))
|
||||
&& (this.getCreateDay() == null ? other.getCreateDay() == null : this.getCreateDay().equals(other.getCreateDay()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getCallTableId() == null) ? 0 : getCallTableId().hashCode());
|
||||
result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getShopName() == null) ? 0 : getShopName().hashCode());
|
||||
result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode());
|
||||
result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getCallTime() == null) ? 0 : getCallTime().hashCode());
|
||||
result = prime * result + ((getCallCount() == null) ? 0 : getCallCount().hashCode());
|
||||
result = prime * result + ((getPassTime() == null) ? 0 : getPassTime().hashCode());
|
||||
result = prime * result + ((getCancelTime() == null) ? 0 : getCancelTime().hashCode());
|
||||
result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
|
||||
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
||||
result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
|
||||
result = prime * result + ((getSubState() == null) ? 0 : getSubState().hashCode());
|
||||
result = prime * result + ((getConfirmTime() == null) ? 0 : getConfirmTime().hashCode());
|
||||
result = prime * result + ((getCallNum() == null) ? 0 : getCallNum().hashCode());
|
||||
result = prime * result + ((getCreateDay() == null) ? 0 : getCreateDay().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", callTableId=").append(callTableId);
|
||||
sb.append(", phone=").append(phone);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", shopName=").append(shopName);
|
||||
sb.append(", shopId=").append(shopId);
|
||||
sb.append(", state=").append(state);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", callTime=").append(callTime);
|
||||
sb.append(", callCount=").append(callCount);
|
||||
sb.append(", passTime=").append(passTime);
|
||||
sb.append(", cancelTime=").append(cancelTime);
|
||||
sb.append(", note=").append(note);
|
||||
sb.append(", userId=").append(userId);
|
||||
sb.append(", openId=").append(openId);
|
||||
sb.append(", subState=").append(subState);
|
||||
sb.append(", confirmTime=").append(confirmTime);
|
||||
sb.append(", callNum=").append(callNum);
|
||||
sb.append(", createDay=").append(createDay);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,359 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 叫号桌型表
|
||||
* @TableName tb_call_table
|
||||
*/
|
||||
@TableName(value ="tb_call_table")
|
||||
public class TbCallTable implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 等待时间分钟
|
||||
*/
|
||||
private Integer waitTime;
|
||||
|
||||
/**
|
||||
* 前缀
|
||||
*/
|
||||
private String prefix;
|
||||
|
||||
/**
|
||||
* 起始号码
|
||||
*/
|
||||
private Integer start;
|
||||
|
||||
/**
|
||||
* 临近几桌提醒
|
||||
*/
|
||||
private Integer nearNum;
|
||||
|
||||
/**
|
||||
* 0禁用 1使用
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Integer shopId;
|
||||
|
||||
/**
|
||||
* 二维码地址
|
||||
*/
|
||||
private String qrcode;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
private Integer isPostpone;
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
private Integer postponeNum;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
/**
|
||||
* 等待时间分钟
|
||||
*/
|
||||
public Integer getWaitTime() {
|
||||
return waitTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 等待时间分钟
|
||||
*/
|
||||
public void setWaitTime(Integer waitTime) {
|
||||
this.waitTime = waitTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 前缀
|
||||
*/
|
||||
public String getPrefix() {
|
||||
return prefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* 前缀
|
||||
*/
|
||||
public void setPrefix(String prefix) {
|
||||
this.prefix = prefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* 起始号码
|
||||
*/
|
||||
public Integer getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
/**
|
||||
* 起始号码
|
||||
*/
|
||||
public void setStart(Integer start) {
|
||||
this.start = start;
|
||||
}
|
||||
|
||||
/**
|
||||
* 临近几桌提醒
|
||||
*/
|
||||
public Integer getNearNum() {
|
||||
return nearNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* 临近几桌提醒
|
||||
*/
|
||||
public void setNearNum(Integer nearNum) {
|
||||
this.nearNum = nearNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* 0禁用 1使用
|
||||
*/
|
||||
public Integer getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* 0禁用 1使用
|
||||
*/
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
public Integer getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
public void setShopId(Integer shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 二维码地址
|
||||
*/
|
||||
public String getQrcode() {
|
||||
return qrcode;
|
||||
}
|
||||
|
||||
/**
|
||||
* 二维码地址
|
||||
*/
|
||||
public void setQrcode(String qrcode) {
|
||||
this.qrcode = qrcode;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
public Integer getIsPostpone() {
|
||||
return isPostpone;
|
||||
}
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
public void setIsPostpone(Integer isPostpone) {
|
||||
this.isPostpone = isPostpone;
|
||||
}
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
public Integer getPostponeNum() {
|
||||
return postponeNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* 顺延号码数量
|
||||
*/
|
||||
public void setPostponeNum(Integer postponeNum) {
|
||||
this.postponeNum = postponeNum;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object that) {
|
||||
if (this == that) {
|
||||
return true;
|
||||
}
|
||||
if (that == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != that.getClass()) {
|
||||
return false;
|
||||
}
|
||||
TbCallTable other = (TbCallTable) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
&& (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
|
||||
&& (this.getWaitTime() == null ? other.getWaitTime() == null : this.getWaitTime().equals(other.getWaitTime()))
|
||||
&& (this.getPrefix() == null ? other.getPrefix() == null : this.getPrefix().equals(other.getPrefix()))
|
||||
&& (this.getStart() == null ? other.getStart() == null : this.getStart().equals(other.getStart()))
|
||||
&& (this.getNearNum() == null ? other.getNearNum() == null : this.getNearNum().equals(other.getNearNum()))
|
||||
&& (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
|
||||
&& (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId()))
|
||||
&& (this.getQrcode() == null ? other.getQrcode() == null : this.getQrcode().equals(other.getQrcode()))
|
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
||||
&& (this.getIsPostpone() == null ? other.getIsPostpone() == null : this.getIsPostpone().equals(other.getIsPostpone()))
|
||||
&& (this.getPostponeNum() == null ? other.getPostponeNum() == null : this.getPostponeNum().equals(other.getPostponeNum()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
|
||||
result = prime * result + ((getWaitTime() == null) ? 0 : getWaitTime().hashCode());
|
||||
result = prime * result + ((getPrefix() == null) ? 0 : getPrefix().hashCode());
|
||||
result = prime * result + ((getStart() == null) ? 0 : getStart().hashCode());
|
||||
result = prime * result + ((getNearNum() == null) ? 0 : getNearNum().hashCode());
|
||||
result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
|
||||
result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode());
|
||||
result = prime * result + ((getQrcode() == null) ? 0 : getQrcode().hashCode());
|
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
||||
result = prime * result + ((getIsPostpone() == null) ? 0 : getIsPostpone().hashCode());
|
||||
result = prime * result + ((getPostponeNum() == null) ? 0 : getPostponeNum().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", name=").append(name);
|
||||
sb.append(", note=").append(note);
|
||||
sb.append(", waitTime=").append(waitTime);
|
||||
sb.append(", prefix=").append(prefix);
|
||||
sb.append(", start=").append(start);
|
||||
sb.append(", nearNum=").append(nearNum);
|
||||
sb.append(", state=").append(state);
|
||||
sb.append(", shopId=").append(shopId);
|
||||
sb.append(", qrcode=").append(qrcode);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", updateTime=").append(updateTime);
|
||||
sb.append(", isPostpone=").append(isPostpone);
|
||||
sb.append(", postponeNum=").append(postponeNum);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -57,8 +58,35 @@ public class TbCashierCart implements Serializable {
|
|||
private Long updatedAt;
|
||||
private Integer userId;
|
||||
private String tableId;
|
||||
private String useType;
|
||||
private Integer placeNum;
|
||||
private String platformType;
|
||||
private BigDecimal memberPrice;
|
||||
private Integer isMember;
|
||||
|
||||
@TableField(exist = false)
|
||||
private TbProductSpec tbProductSpec;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String selectSpec="";
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据是否会员充值价格
|
||||
*/
|
||||
public void resetTotalAmount() {
|
||||
if ("false".equals(isPack)) {
|
||||
packFee = BigDecimal.ZERO;
|
||||
}
|
||||
if ("true".equals(isGift)) {
|
||||
totalAmount = packFee;
|
||||
}else {
|
||||
if (isMember != null && isMember == 1 && memberPrice != null && memberPrice.compareTo(BigDecimal.ZERO) > 0) {
|
||||
totalAmount = BigDecimal.valueOf(totalNumber).multiply(memberPrice).add(packFee);
|
||||
}else {
|
||||
totalAmount = BigDecimal.valueOf(totalNumber).multiply(salePrice).add(packFee);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ public class TbConsInfo implements Serializable {
|
|||
|
||||
private Date updateTime;
|
||||
|
||||
private String isCheck;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
|
|
@ -156,4 +158,12 @@ public class TbConsInfo implements Serializable {
|
|||
public void setPrice(BigDecimal price) {
|
||||
this.price = price;
|
||||
}
|
||||
}
|
||||
|
||||
public String getIsCheck() {
|
||||
return isCheck;
|
||||
}
|
||||
|
||||
public void setIsCheck(String isCheck) {
|
||||
this.isCheck = isCheck;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,83 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 活动赠送商品表(TbCouponProduct)实体类
|
||||
*
|
||||
* @author ww
|
||||
* @since 2024-10-24 15:56:09
|
||||
*/
|
||||
public class TbCouponProduct implements Serializable {
|
||||
private static final long serialVersionUID = 685322089212281310L;
|
||||
|
||||
private Integer id;
|
||||
/**
|
||||
* 活动Id
|
||||
*/
|
||||
private Integer couponId;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Integer productId;
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
private Integer num;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getCouponId() {
|
||||
return couponId;
|
||||
}
|
||||
|
||||
public void setCouponId(Integer couponId) {
|
||||
this.couponId = couponId;
|
||||
}
|
||||
|
||||
public Integer getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Integer productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Integer getNum() {
|
||||
return num;
|
||||
}
|
||||
|
||||
public void setNum(Integer num) {
|
||||
this.num = num;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class TbDeviceOperateInfo implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String deviceno;
|
||||
|
||||
private String type;
|
||||
|
||||
private String shopId;
|
||||
|
||||
private Date createtime;
|
||||
|
||||
private String remark;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeviceno() {
|
||||
return deviceno;
|
||||
}
|
||||
|
||||
public void setDeviceno(String deviceno) {
|
||||
this.deviceno = deviceno == null ? null : deviceno.trim();
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
public String getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(String shopId) {
|
||||
this.shopId = shopId == null ? null : shopId.trim();
|
||||
}
|
||||
|
||||
public Date getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
public void setCreatetime(Date createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue