This commit is contained in:
parent
1c47f567d8
commit
b77eacdccb
|
|
@ -0,0 +1,242 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.7.3</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
<groupId>com.chaozhangui.system.cashservice</groupId>
|
||||
<artifactId>cashier-service</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.4</version>
|
||||
</dependency>
|
||||
|
||||
<!-- httpclient -->
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<version>2.4.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.7.21</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
<!-- <artifactId>spring-boot-starter-security</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- BeanUtils的依赖 -->
|
||||
<dependency>
|
||||
<groupId>commons-beanutils</groupId>
|
||||
<artifactId>commons-beanutils</artifactId>
|
||||
<version>1.9.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>2.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis.generator</groupId>
|
||||
<artifactId>mybatis-generator-core</artifactId>
|
||||
<version>1.3.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>3.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjweaver</artifactId>
|
||||
<version>1.9.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-webflux</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>20.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>3.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>4.5.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpmime</artifactId>
|
||||
<version>4.5.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.48</version>
|
||||
</dependency>
|
||||
<!-- http请求工具包依赖 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>4.5.2</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt</artifactId>
|
||||
<version>0.9.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-redis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
<version>1.5.2.RELEASE</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.binarywang</groupId>
|
||||
<artifactId>weixin-java-miniapp</artifactId>
|
||||
<version>3.8.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.7.0</version>
|
||||
<configuration>
|
||||
<encoding>UTF-8</encoding>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>1.4.2.RELEASE</version>
|
||||
<configuration>
|
||||
<mainClass>com.chaozhanggui.system.cashierservice.Shell</mainClass>
|
||||
<outputDirectory>./</outputDirectory>
|
||||
<fork>true</fork>
|
||||
<includeSystemScope>true</includeSystemScope>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!--mybatis反向生成插件-->
|
||||
<plugin>
|
||||
<groupId>org.mybatis.generator</groupId>
|
||||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||||
<version>1.3.7</version>
|
||||
<configuration>
|
||||
<!--允许移动生成的文件 -->
|
||||
<verbose>false</verbose>
|
||||
<!--允许覆盖生成的文件 -->
|
||||
<overwrite>false</overwrite>
|
||||
<!--配置文件的路径 -->
|
||||
<configurationFile>src/main/resources/generator-mapper/generatorConfig.xml</configurationFile>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.17</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.chaozhanggui.system.cashierservice;
|
||||
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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.support.PropertySourcesPlaceholderConfigurer;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
import org.springframework.web.socket.config.annotation.EnableWebSocket;
|
||||
|
||||
import java.net.ServerSocket;
|
||||
import java.net.Socket;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableScheduling
|
||||
@EntityScan(basePackageClasses = {Shell.class})
|
||||
@MapperScan(basePackageClasses ={Shell.class} )
|
||||
@ComponentScan(basePackageClasses ={Shell.class})
|
||||
@EnableTransactionManagement
|
||||
@EnableAspectJAutoProxy(proxyTargetClass = true)
|
||||
@Slf4j
|
||||
@EnableWebSocket
|
||||
public class Shell {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(Shell.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication springApplication = new SpringApplication(Shell.class);
|
||||
springApplication.run(args);
|
||||
}
|
||||
@Bean
|
||||
RestTemplate restTemplate(){
|
||||
return new RestTemplate();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
|
||||
return (args) -> {
|
||||
logger.info("=========================启动完成==========================");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@Bean
|
||||
public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
|
||||
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();
|
||||
propertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true);
|
||||
return propertySourcesPlaceholderConfigurer;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package com.chaozhanggui.system.cashierservice.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* @author DJH
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface OpLog {
|
||||
|
||||
/**
|
||||
* 操作日志code
|
||||
* @return 操作code
|
||||
*/
|
||||
String opCode() default "";
|
||||
|
||||
/**
|
||||
* 操作日志-详情
|
||||
* @return 操作详情
|
||||
*/
|
||||
String opDetail() default "";
|
||||
|
||||
/**
|
||||
* 操作日志名称
|
||||
* @return 操作名称
|
||||
*/
|
||||
String opName() default "";
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.chaozhanggui.system.cashierservice.annotation;
|
||||
|
||||
/**
|
||||
* 响应码枚举,参考HTTP状态码的语义
|
||||
*/
|
||||
public enum ResultCode {
|
||||
//成功
|
||||
SUCCESS(200),
|
||||
//失败
|
||||
FAIL(400),
|
||||
//未认证(签名错误)
|
||||
UNAUTHORIZED(401),
|
||||
//未认证(签名错误)
|
||||
PARAM_ERROR(422),
|
||||
// 403
|
||||
FORBIDDEN(403),
|
||||
//接口不存在
|
||||
NOT_FOUND(404),
|
||||
//服务器内部错误
|
||||
INTERNAL_SERVER_ERROR(500),
|
||||
// 服务不可达
|
||||
SERVICE_UNAVAILABLE(503),
|
||||
//未认证(签名错误)
|
||||
NOT_TOKEN(401),
|
||||
//无数据
|
||||
UNDEFINDE(201),
|
||||
/**
|
||||
* 交易未知 查询交易结果
|
||||
*/
|
||||
TRANSUNKNOW(202);
|
||||
|
||||
private final int code;
|
||||
|
||||
ResultCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public int code() {
|
||||
return code;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.socket.AppWebSocketServer;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
//处理前端改变购物车的行为,并记录
|
||||
public class ChangeHandler extends Handler {
|
||||
|
||||
@Override
|
||||
public void handleRequest(ConcurrentHashMap<String, List<AppWebSocketServer>> webSocketMap,
|
||||
JSONObject jsonObject, ConcurrentHashMap<String,
|
||||
List<JSONObject>> recordMap,
|
||||
AppWebSocketServer webSocke) throws IOException {
|
||||
|
||||
if (jsonObject.containsKey("change")) {
|
||||
ArrayList<JSONObject> jsonObjects = new ArrayList<>();
|
||||
jsonObjects.add(jsonObject);
|
||||
// producerMq.syncShopCar(jsonObjects);
|
||||
//记录每一次购物车变化的记录
|
||||
List<JSONObject> objects = recordMap.get(webSocke.getTableId());
|
||||
objects.add(jsonObject);
|
||||
} else {
|
||||
// 无法处理,传递给下一个处理器
|
||||
if (nextHandler != null) {
|
||||
nextHandler.handleRequest(webSocketMap,jsonObject,recordMap,webSocke);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.socket.AppWebSocketServer;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
//处理前端订单已完成,把订单标志位置为false
|
||||
public class ClearHandler extends Handler{
|
||||
|
||||
@Override
|
||||
public void handleRequest(ConcurrentHashMap<String, List<AppWebSocketServer>> webSocketMap,
|
||||
JSONObject jsonObject, ConcurrentHashMap<String,
|
||||
List<JSONObject>> recordMap,
|
||||
AppWebSocketServer webSocke) throws IOException {
|
||||
if (jsonObject.containsKey("clear")) {
|
||||
if (StringUtils.isNotBlank(webSocke.getTableId()) && webSocketMap.containsKey(webSocke.getTableId())) {
|
||||
List<AppWebSocketServer> serverList = webSocketMap.get(webSocke.getTableId());
|
||||
//遍历所有对象,把订单都改为未提交,为了下一次点餐
|
||||
serverList.forEach(m -> m.getCreateOrder().set(false));
|
||||
|
||||
}
|
||||
} else {
|
||||
// 无法处理,传递给下一个处理器
|
||||
if (nextHandler != null) {
|
||||
nextHandler.handleRequest(webSocketMap,jsonObject,recordMap,webSocke);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.socket.AppWebSocketServer;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
//处理前端创建订单
|
||||
public class CreateOrderHandler extends Handler{
|
||||
|
||||
@Override
|
||||
public void handleRequest(ConcurrentHashMap<String, List<AppWebSocketServer>> webSocketMap,
|
||||
JSONObject jsonObject, ConcurrentHashMap<String,
|
||||
List<JSONObject>> recordMap,
|
||||
AppWebSocketServer webSocke) throws IOException {
|
||||
|
||||
|
||||
if (jsonObject.containsKey("createOrdwebSockeer")) {
|
||||
if (StringUtils.isNotBlank(webSocke.getTableId()) && webSocketMap.containsKey(webSocke.getTableId())) {
|
||||
List<AppWebSocketServer> serverList = webSocketMap.get(webSocke.getTableId());
|
||||
//有一个为true就说明已经有订单了
|
||||
if (serverList.stream().anyMatch(m -> m.getCreateOrder().get())) {
|
||||
webSocke.sendMessage("已有人提交订单,请稍后");
|
||||
return;
|
||||
}
|
||||
}
|
||||
synchronized (webSocke) {
|
||||
if (StringUtils.isNotBlank(webSocke.getTableId()) && webSocketMap.containsKey(webSocke.getTableId())) {
|
||||
List<AppWebSocketServer> serverList = webSocketMap.get(webSocke.getTableId());
|
||||
//有一个为true就说明已经有订单了
|
||||
if (serverList.stream().anyMatch(m -> m.getCreateOrder().get())) {
|
||||
webSocke.sendMessage("已有人提交订单,请稍后");
|
||||
return;
|
||||
}
|
||||
|
||||
BigDecimal amount = new BigDecimal((Integer) jsonObject.get("amount"));
|
||||
JSONArray shopCarList = jsonObject.getJSONArray("shopCarList");
|
||||
String remark = jsonObject.get("remark").toString();
|
||||
|
||||
|
||||
// List<ShopListDto> list=shopCarList.toJavaList(ShopListDto.class);
|
||||
// //TODO 加个拦截加个shopid,抛出异常,前端展示
|
||||
// setShopId(list.get(0).getShopId());
|
||||
// try {
|
||||
// Result order = orderFeign.createOrder(new CreateOrderDto(Long.parseLong(webSocke.getTableId()), amount, list, remark));
|
||||
// if (order.getCode() == 200){
|
||||
// //通知清空购物车
|
||||
// AppSendInfo("订单提交成功", webSocke.getTableId());
|
||||
// //清空本地的购物记录
|
||||
// recordMap.get(webSocke.getTableId()).clear();
|
||||
// webSocke.getCreateOrder().set(true);
|
||||
// }else {
|
||||
// AppSendInfo("订单提交失败",webSocke.getTableId());
|
||||
// }
|
||||
//
|
||||
//
|
||||
// }catch (Exception e){
|
||||
// e.printStackTrace();
|
||||
// AppSendInfo("订单提交失败",webSocke.getTableId());
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
// 无法处理,传递给下一个处理器
|
||||
if (nextHandler != null) {
|
||||
nextHandler.handleRequest(webSocketMap,jsonObject,recordMap,webSocke);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.socket.AppWebSocketServer;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public abstract class Handler {
|
||||
protected Handler nextHandler;
|
||||
|
||||
|
||||
public Handler addNextHandler(Handler handler) {
|
||||
this.nextHandler = handler;
|
||||
return handler;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public abstract void handleRequest(ConcurrentHashMap<String, List<AppWebSocketServer>> webSocketMap,
|
||||
JSONObject jsonObject, ConcurrentHashMap<String,
|
||||
List<JSONObject>> recordMap,
|
||||
AppWebSocketServer webSocke) throws IOException;
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.socket.AppWebSocketServer;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import static com.chaozhanggui.system.cashierservice.socket.AppWebSocketServer.AppSendInfo;
|
||||
|
||||
|
||||
//兜底处理器
|
||||
public class OtherHandler extends Handler{
|
||||
@Override
|
||||
public void handleRequest(ConcurrentHashMap<String, List<AppWebSocketServer>> webSocketMap,
|
||||
JSONObject jsonObject,
|
||||
ConcurrentHashMap<String, List<JSONObject>> recordMap,
|
||||
AppWebSocketServer webSocke) throws IOException {
|
||||
|
||||
//传送给对应tableId用户的websocket
|
||||
if (StringUtils.isNotBlank(webSocke.getTableId()) && webSocketMap.containsKey(webSocke.getTableId())) {
|
||||
AppSendInfo("1", webSocke.getTableId(),false);
|
||||
|
||||
} else {
|
||||
System.out.println("请求的tableId:" + webSocke.getTableId() + "不在该服务器上");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.socket.AppWebSocketServer;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
//处理前端初次扫码同步购物车
|
||||
public class SyncHandler extends Handler {
|
||||
|
||||
@Override
|
||||
public void handleRequest(ConcurrentHashMap<String, List<AppWebSocketServer>> webSocketMap,
|
||||
JSONObject jsonObject, ConcurrentHashMap<String,
|
||||
List<JSONObject>> recordMap,
|
||||
AppWebSocketServer webSocke) throws IOException {
|
||||
if (jsonObject.containsKey("sync")) {
|
||||
//这个是判断是否有这个桌号,也就是 是否有人点过餐
|
||||
|
||||
List<JSONObject> recordList = recordMap.get(webSocke.getTableId());
|
||||
//指定发送对象
|
||||
if (StringUtils.isNotBlank(webSocke.getTableId()) && webSocketMap.containsKey(webSocke.getTableId()) && recordList != null) {
|
||||
List<AppWebSocketServer> serverList = webSocketMap.get(webSocke.getTableId());
|
||||
for (AppWebSocketServer server : serverList) {
|
||||
if (server.getSync().get()) {
|
||||
server.sendMessage(recordList);
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
ArrayList<JSONObject> objects = new ArrayList<>();
|
||||
recordMap.put(webSocke.getTableId(), objects);
|
||||
}
|
||||
webSocke.getSync().set(!webSocke.getSync().get());
|
||||
|
||||
} else {
|
||||
// 无法处理,传递给下一个处理器
|
||||
if (nextHandler != null) {
|
||||
nextHandler.handleRequest(webSocketMap, jsonObject, recordMap, webSocke);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.chaozhanggui.system.cashierservice.config;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
|
||||
import javax.websocket.Encoder;
|
||||
import javax.websocket.EndpointConfig;
|
||||
|
||||
/**
|
||||
* 为了websocket发送对象
|
||||
*/
|
||||
|
||||
public class WebSocketCustomEncoding implements Encoder.Text<Object> {
|
||||
// public String encode(Object vo) 这个就是指定发送的类型
|
||||
@Override
|
||||
public String encode(Object vo) {
|
||||
assert vo!=null;
|
||||
return JSON.toJSONString(vo);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void init(EndpointConfig endpointConfig) {
|
||||
|
||||
}
|
||||
@Override
|
||||
public void destroy() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
//package com.chaozhanggui.system.cashierservice.controller;
|
||||
//
|
||||
//import com.chaozhanggui.system.cashierservice.entity.TbCashierCart;
|
||||
//import com.chaozhanggui.system.cashierservice.entity.dto.ProductCartDto;
|
||||
//import com.chaozhanggui.system.cashierservice.service.CashierCartService;
|
||||
//import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.springframework.web.bind.annotation.*;
|
||||
//
|
||||
//import javax.annotation.Resource;
|
||||
//import java.util.List;
|
||||
//
|
||||
///**
|
||||
// * @author lyf
|
||||
// */
|
||||
//@CrossOrigin(origins = "*")
|
||||
//@RestController
|
||||
//@Slf4j
|
||||
//@RequestMapping("/cart")
|
||||
//public class CashierCartController {
|
||||
//
|
||||
// @Resource
|
||||
// private CashierCartService cashierCartService;
|
||||
// /**
|
||||
// * 添加购物车
|
||||
// * @param productCartDto
|
||||
// * @return
|
||||
// */
|
||||
// @PostMapping("/add")
|
||||
// public Result batchAdd(@RequestBody ProductCartDto productCartDto) {
|
||||
// return cashierCartService.batchAdd(productCartDto);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 购物车
|
||||
// * @param tableId
|
||||
// * @return
|
||||
// */
|
||||
// @GetMapping("/cartList")
|
||||
// public Result cartList(@RequestParam Integer tableId){
|
||||
// return cashierCartService.cartList(tableId);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// *更改数量
|
||||
// * @param
|
||||
// * @return
|
||||
// */
|
||||
// @GetMapping("/updateNumber")
|
||||
// public Result updateNumber(@RequestParam Integer id ,@RequestParam String type){
|
||||
// return cashierCartService.updateNumber(id,type);
|
||||
// }
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// *清空购物车
|
||||
// * @param
|
||||
// * @return
|
||||
// */
|
||||
// @GetMapping("/clear")
|
||||
// public Result clearCart(@RequestParam Integer tableId){
|
||||
// return cashierCartService.clearCart(tableId);
|
||||
// }
|
||||
//}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.service.CloudPrinterService;
|
||||
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.*;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("cloudPrinter")
|
||||
public class CloudPrinterController {
|
||||
|
||||
|
||||
@Autowired
|
||||
CloudPrinterService cloudPrinterService;
|
||||
|
||||
|
||||
/**
|
||||
* 一单一旦
|
||||
* @param type
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("print")
|
||||
public Result print(
|
||||
@RequestParam("type") String type,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("ispre") Boolean ispre
|
||||
){
|
||||
return cloudPrinterService.printReceipt(type,orderId,ispre);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,229 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import cn.binarywang.wx.miniapp.api.WxMaService;
|
||||
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo;
|
||||
import cn.binarywang.wx.miniapp.util.crypt.WxMaCryptUtils;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.dao.TbMerchantAccountMapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbMerchantAccount;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.AuthUserDto;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.OnlineUserDto;
|
||||
import com.chaozhanggui.system.cashierservice.service.LoginService;
|
||||
import com.chaozhanggui.system.cashierservice.service.OnlineUserService;
|
||||
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.MD5Utils;
|
||||
import com.chaozhanggui.system.cashierservice.util.StringUtil;
|
||||
import com.chaozhanggui.system.cashierservice.wxUtil.WechatUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.codec.digest.DigestUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("login")
|
||||
public class LoginContoller {
|
||||
|
||||
|
||||
@Value("${wx.login.business.appId}")
|
||||
private String businessAppId;
|
||||
|
||||
@Value("${wx.login.business.secrete}")
|
||||
private String businessSecrete;
|
||||
|
||||
|
||||
@Value("${wx.login.custom.appId}")
|
||||
private String customAppId;
|
||||
|
||||
@Value("${wx.login.custom.secrete}")
|
||||
private String customSecrete;
|
||||
|
||||
|
||||
@Autowired
|
||||
LoginService loginService;
|
||||
|
||||
@Resource
|
||||
TbMerchantAccountMapper merchantAccountMapper;
|
||||
|
||||
|
||||
@RequestMapping("/wx/business/login")
|
||||
public Result wxBusinessLogin(@RequestParam(value = "code", required = false) String code,
|
||||
@RequestParam(value = "rawData", required = false) String rawData,
|
||||
@RequestParam(value = "signature", required = false) String signature
|
||||
) {
|
||||
|
||||
|
||||
// 用户非敏感信息:rawData
|
||||
// 签名:signature
|
||||
JSONObject rawDataJson = JSON.parseObject(rawData);
|
||||
// 1.接收小程序发送的code
|
||||
// 2.开发者服务器 登录凭证校验接口 appi + appsecret + code
|
||||
JSONObject SessionKeyOpenId = WechatUtil.getSessionKeyOrOpenId(code, businessAppId, businessSecrete);
|
||||
// 3.接收微信接口服务 获取返回的参数
|
||||
String openid = SessionKeyOpenId.getString("openid");
|
||||
String sessionKey = SessionKeyOpenId.getString("session_key");
|
||||
|
||||
// 4.校验签名 小程序发送的签名signature与服务器端生成的签名signature2 = sha1(rawData + sessionKey)
|
||||
String signature2 = DigestUtils.sha1Hex(rawData + sessionKey);
|
||||
if (!signature.equals(signature2)) {
|
||||
return Result.fail("签名校验失败");
|
||||
}
|
||||
|
||||
|
||||
return Result.success(CodeEnum.ENCRYPT);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping("/wx/custom/login")
|
||||
public Result wxCustomLogin(HttpServletRequest request, @RequestBody Map<String, String> map
|
||||
// ,
|
||||
// @RequestParam(value = "rawData", required = false) String rawData,
|
||||
// @RequestParam(value = "signature", required = false) String signature
|
||||
) {
|
||||
|
||||
|
||||
if (ObjectUtil.isNull(map) || ObjectUtil.isEmpty(map)||!map.containsKey("code")||ObjectUtil.isEmpty(map.get("code"))) {
|
||||
Result.fail("code不能为空");
|
||||
}
|
||||
|
||||
String code=map.get("code").toString();
|
||||
|
||||
String qrCode=map.get("qrCode");
|
||||
|
||||
String rawData=map.get("rawData");
|
||||
|
||||
String signature=map.get("signature");
|
||||
|
||||
String encryptedData=map.get("encryptedData");
|
||||
|
||||
String ivStr=map.get("iv");
|
||||
|
||||
String phone=map.get("phone");
|
||||
|
||||
// 用户非敏感信息:rawData
|
||||
// 签名:signature
|
||||
JSONObject rawDataJson = JSON.parseObject(rawData);
|
||||
// 1.接收小程序发送的code
|
||||
// 2.开发者服务器 登录凭证校验接口 appi + appsecret + code
|
||||
JSONObject SessionKeyOpenId = WechatUtil.getSessionKeyOrOpenId(code, customAppId, customSecrete);
|
||||
// 3.接收微信接口服务 获取返回的参数
|
||||
String openid = SessionKeyOpenId.getString("openid");
|
||||
String sessionKey = SessionKeyOpenId.getString("session_key");
|
||||
|
||||
// 4.校验签名 小程序发送的签名signature与服务器端生成的签名signature2 = sha1(rawData + sessionKey)
|
||||
String signature2 = DigestUtils.sha1Hex(rawData + sessionKey);
|
||||
if (!signature.equals(signature2)) {
|
||||
return Result.fail("签名校验失败");
|
||||
}
|
||||
|
||||
String nickName = rawDataJson.getString( "nickName");
|
||||
String avatarUrl = rawDataJson.getString( "avatarUrl");
|
||||
|
||||
try {
|
||||
return loginService.wxCustomLogin(openid, avatarUrl, nickName, phone,qrCode, IpUtil.getIpAddr(request));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return Result.fail("登录失败");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("getPhoneNumber")
|
||||
public Result getPhoneNumber(@RequestBody Map<String,String> map){
|
||||
|
||||
if (ObjectUtil.isNull(map) || ObjectUtil.isEmpty(map)||!map.containsKey("code")||ObjectUtil.isEmpty(map.get("code"))) {
|
||||
Result.fail("code不能为空");
|
||||
}
|
||||
String code=map.get("code").toString();
|
||||
|
||||
String encryptedData=map.get("encryptedData");
|
||||
|
||||
String ivStr=map.get("iv");
|
||||
|
||||
|
||||
JSONObject SessionKeyOpenId = WechatUtil.getSessionKeyOrOpenId(code, customAppId, customSecrete);
|
||||
// 3.接收微信接口服务 获取返回的参数
|
||||
String openid = SessionKeyOpenId.getString("openid");
|
||||
String sessionKey = SessionKeyOpenId.getString("session_key");
|
||||
|
||||
String data= WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr);
|
||||
if(ObjectUtil.isNotEmpty(data)&&JSONObject.parseObject(data).containsKey("phoneNumber")){
|
||||
return Result.success(CodeEnum.SUCCESS, JSONObject.parseObject(data).get("phoneNumber"));
|
||||
}
|
||||
return Result.fail("获取手机号失败");
|
||||
|
||||
}
|
||||
|
||||
@Resource
|
||||
private OnlineUserService onlineUserService;
|
||||
|
||||
@PostMapping("/wx/merchant/login")
|
||||
public Result wxCustomLogin(@RequestBody AuthUserDto authUserDto) {
|
||||
//验证密码
|
||||
String mdPasswordString = MD5Utils.MD5Encode(authUserDto.getPassword(), "utf-8");
|
||||
//
|
||||
TbMerchantAccount merchantAccount = merchantAccountMapper.selectByAccount(authUserDto.getUsername());
|
||||
if (merchantAccount == null) {
|
||||
return Result.fail("无此用户");
|
||||
}
|
||||
|
||||
if (!mdPasswordString.equalsIgnoreCase(merchantAccount.getPassword())) {
|
||||
return Result.fail("密码错误");
|
||||
}
|
||||
|
||||
//生成token
|
||||
String token = StringUtil.genRandomNum(6) + StringUtil.getBillno() + StringUtil.genRandomNum(6);
|
||||
//存入redis
|
||||
OnlineUserDto jwtUserDto = onlineUserService.save(merchantAccount.getName(), merchantAccount.getAccount(), Integer.valueOf(merchantAccount.getShopId()), token,merchantAccount.getStatus());
|
||||
|
||||
//组装登录数据
|
||||
Map<String, Object> authInfo = new HashMap<String, Object>(2) {{
|
||||
put("token", token);
|
||||
put("user", jwtUserDto);
|
||||
}};
|
||||
return Result.success(CodeEnum.ENCRYPT,authInfo);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取会员码
|
||||
* @param openId
|
||||
* @param token
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("createCardNo")
|
||||
public Result createCardNo(@RequestHeader("openId") String openId,@RequestHeader("token") String token,@RequestHeader("id") String id){
|
||||
return loginService.createCardNo(id,openId);
|
||||
}
|
||||
|
||||
@GetMapping("/wx/userInfo")
|
||||
public Result userInfo(@RequestParam("userId") Integer userId,@RequestParam("shopId") String shopId ){
|
||||
return loginService.userInfo(userId,shopId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.chaozhanggui.system.cashierservice.interceptor.RequestWrapper;
|
||||
import com.chaozhanggui.system.cashierservice.service.PayService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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 javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("notify")
|
||||
public class NotifyController {
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
PayService payService;
|
||||
|
||||
|
||||
@RequestMapping("memberInCallBack")
|
||||
public String memberInCallBack(HttpServletRequest request){
|
||||
|
||||
Map<String, Object> map= getParameterMap(request);
|
||||
log.info("回调返回信息:{}",JSONUtil.toJsonStr(map));
|
||||
if(ObjectUtil.isNotEmpty(map)&&map.containsKey("code")&&"200".equals(map.get("code")+"")){
|
||||
JSONObject object=JSONUtil.parseObj(map.get("data"));
|
||||
if(ObjectUtil.isNotEmpty(object)&&object.containsKey("status")&&"1".equals(object.getStr("status"))){
|
||||
String orderNo=object.getStr("orderNumber");
|
||||
String channelTradeNo=object.getStr("channelTradeNo");
|
||||
return payService.minsuccess(orderNo,channelTradeNo);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@RequestMapping("notifyCallBack")
|
||||
public String notifyCallBack(HttpServletRequest request){
|
||||
|
||||
Map<String, Object> map= getParameterMap(request);
|
||||
log.info("回调返回信息:{}",JSONUtil.toJsonStr(map));
|
||||
if(ObjectUtil.isNotEmpty(map)&&map.containsKey("code")&&"200".equals(map.get("code")+"")){
|
||||
JSONObject object=JSONUtil.parseObj(map.get("data"));
|
||||
if(ObjectUtil.isNotEmpty(object)&&object.containsKey("status")&&"1".equals(object.getStr("status"))){
|
||||
String orderNo=object.getStr("orderNumber");
|
||||
return payService.callBackPay(orderNo);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private Map<String, Object> getParameterMap(HttpServletRequest request) {
|
||||
RequestWrapper requestWrapper = new RequestWrapper(request);
|
||||
String body = requestWrapper.getBody();
|
||||
if (ObjectUtil.isNotEmpty(body)) {
|
||||
return JSONUtil.toBean(body, Map.class);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopTable;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.OrderDto;
|
||||
import com.chaozhanggui.system.cashierservice.service.OrderService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("/order")
|
||||
public class OrderController {
|
||||
|
||||
@Resource
|
||||
private OrderService orderService;
|
||||
|
||||
/**
|
||||
* 添加订单
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/creatOrder")
|
||||
public Result createOrder(@RequestBody OrderDto shopTable){
|
||||
if (shopTable.getTableId() == null){
|
||||
return Result.fail("台桌号有误");
|
||||
}
|
||||
return orderService.createOrder(shopTable.getTableId(),shopTable.getShopId(),shopTable.getUserId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单回显
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping ("/orderInfo")
|
||||
private Result orderInfo(@RequestParam Integer orderId){
|
||||
return orderService.orderInfo(orderId);
|
||||
}
|
||||
|
||||
@GetMapping("/orderList")
|
||||
private Result orderList(@RequestParam Integer userId,@RequestParam Integer page,
|
||||
@RequestParam Integer size, @RequestParam String status){
|
||||
return orderService.orderList(userId,page,size,status);
|
||||
}
|
||||
@GetMapping("/testMessage")
|
||||
private void testMessage(@RequestParam("tableId") String tableId, @RequestParam("message") String message) throws IOException {
|
||||
orderService.testMessage(tableId,message);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.chaozhanggui.system.cashierservice.service.PayService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import com.chaozhanggui.system.cashierservice.util.IpUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("pay")
|
||||
public class PayController {
|
||||
|
||||
|
||||
@Autowired
|
||||
PayService payService;
|
||||
|
||||
|
||||
/**
|
||||
* 支付
|
||||
* @param request
|
||||
* @param openId
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("orderPay")
|
||||
public Result pay(HttpServletRequest request, @RequestHeader("openId") String openId, @RequestBody Map<String,String> map) {
|
||||
if(ObjectUtil.isEmpty(map)||map.size()<=0||!map.containsKey("orderId")||ObjectUtil.isEmpty(map.get("orderId"))){
|
||||
return Result.fail("订单号不允许为空");
|
||||
}
|
||||
|
||||
try {
|
||||
return payService.payOrder(openId,map.get("orderId").toString(), IpUtil.getIpAddr(request));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return Result.fail("支付失败");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改订单状态
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("modfiyOrderInfo")
|
||||
public Result modfiyOrderInfo( @RequestBody Map<String,String> map){
|
||||
if(ObjectUtil.isEmpty(map)||map.size()<=0||!map.containsKey("orderId")||ObjectUtil.isEmpty(map.get("orderId"))){
|
||||
return Result.fail("订单号不允许为空");
|
||||
}
|
||||
|
||||
try {
|
||||
return payService.modifyOrderStatus(Integer.valueOf(map.get("orderId")));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return Result.fail("操作失败");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 充值
|
||||
* @param request
|
||||
* @param openId
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("memeberIn")
|
||||
public Result memeberIn(HttpServletRequest request,@RequestHeader("openId") String openId,@RequestHeader("id") String id,
|
||||
@RequestBody Map<String,Object> map
|
||||
){
|
||||
return payService.memberIn(openId,id,map.get("amount").toString(),map.get("shopId").toString(),IpUtil.getIpAddr(request));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.chaozhanggui.system.cashierservice.service.ProductService;
|
||||
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 java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("product")
|
||||
public class ProductController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ProductService productService;
|
||||
|
||||
@RequestMapping("queryProduct")
|
||||
public Result queryProduct(@RequestBody Map<String,String> map){
|
||||
|
||||
if(ObjectUtil.isEmpty(map)||map.size()<=0||!map.containsKey("code")){
|
||||
return Result.fail("参数错误");
|
||||
}
|
||||
return productService.queryProduct(map.get("code").toString(),(map.containsKey("productGroupId")&&ObjectUtil.isNotEmpty(map.get("productGroupId")))?map.get("productGroupId").toString():"");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@GetMapping("queryProductSku")
|
||||
public Result queryProductSku(
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("productId") String productId,
|
||||
@RequestParam("spec_tag") String spec_tag
|
||||
){
|
||||
return productService.queryProductSku(shopId,productId,spec_tag);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopTable;
|
||||
import com.chaozhanggui.system.cashierservice.exception.MsgException;
|
||||
import com.chaozhanggui.system.cashierservice.service.ShopTableService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @author lyf
|
||||
*/
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("/table")
|
||||
public class TableController {
|
||||
@Resource
|
||||
private ShopTableService shopTableService;
|
||||
|
||||
/**
|
||||
* 桌台列表
|
||||
* @return
|
||||
*/
|
||||
@PostMapping ("/list")
|
||||
public Result tableList(@RequestBody TbShopTable shopTable){
|
||||
return shopTableService.tableList(shopTable.getShopId(),shopTable.getAreaId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 绑定桌码
|
||||
* @param shopTable
|
||||
* @return
|
||||
*/
|
||||
@PostMapping ("/binding")
|
||||
public Result bindingQrcode(@RequestBody TbShopTable shopTable){
|
||||
if (shopTable.getQrcode() == null || shopTable.getId() == null){
|
||||
return Result.fail("参数有误");
|
||||
}
|
||||
return shopTableService.bindingQrcode(shopTable);
|
||||
}
|
||||
|
||||
@GetMapping ("/area")
|
||||
public Result areaList(@RequestParam Integer shopId){
|
||||
return shopTableService.areaList(shopId);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysDept;
|
||||
|
||||
public interface SysDeptMapper {
|
||||
int deleteByPrimaryKey(Long deptId);
|
||||
|
||||
int insert(SysDept record);
|
||||
|
||||
int insertSelective(SysDept record);
|
||||
|
||||
SysDept selectByPrimaryKey(Long deptId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysDept record);
|
||||
|
||||
int updateByPrimaryKey(SysDept record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysDictDetail;
|
||||
|
||||
public interface SysDictDetailMapper {
|
||||
int deleteByPrimaryKey(Long detailId);
|
||||
|
||||
int insert(SysDictDetail record);
|
||||
|
||||
int insertSelective(SysDictDetail record);
|
||||
|
||||
SysDictDetail selectByPrimaryKey(Long detailId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysDictDetail record);
|
||||
|
||||
int updateByPrimaryKey(SysDictDetail record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysDict;
|
||||
|
||||
public interface SysDictMapper {
|
||||
int deleteByPrimaryKey(Long dictId);
|
||||
|
||||
int insert(SysDict record);
|
||||
|
||||
int insertSelective(SysDict record);
|
||||
|
||||
SysDict selectByPrimaryKey(Long dictId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysDict record);
|
||||
|
||||
int updateByPrimaryKey(SysDict record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysJob;
|
||||
|
||||
public interface SysJobMapper {
|
||||
int deleteByPrimaryKey(Long jobId);
|
||||
|
||||
int insert(SysJob record);
|
||||
|
||||
int insertSelective(SysJob record);
|
||||
|
||||
SysJob selectByPrimaryKey(Long jobId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysJob record);
|
||||
|
||||
int updateByPrimaryKey(SysJob record);
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysLog;
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysLogWithBLOBs;
|
||||
|
||||
public interface SysLogMapper {
|
||||
int deleteByPrimaryKey(Long logId);
|
||||
|
||||
int insert(SysLogWithBLOBs record);
|
||||
|
||||
int insertSelective(SysLogWithBLOBs record);
|
||||
|
||||
SysLogWithBLOBs selectByPrimaryKey(Long logId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysLogWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(SysLogWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(SysLog record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysMenu;
|
||||
|
||||
public interface SysMenuMapper {
|
||||
int deleteByPrimaryKey(Long menuId);
|
||||
|
||||
int insert(SysMenu record);
|
||||
|
||||
int insertSelective(SysMenu record);
|
||||
|
||||
SysMenu selectByPrimaryKey(Long menuId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysMenu record);
|
||||
|
||||
int updateByPrimaryKey(SysMenu record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysQuartzJob;
|
||||
|
||||
public interface SysQuartzJobMapper {
|
||||
int deleteByPrimaryKey(Long jobId);
|
||||
|
||||
int insert(SysQuartzJob record);
|
||||
|
||||
int insertSelective(SysQuartzJob record);
|
||||
|
||||
SysQuartzJob selectByPrimaryKey(Long jobId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysQuartzJob record);
|
||||
|
||||
int updateByPrimaryKey(SysQuartzJob record);
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysQuartzLog;
|
||||
|
||||
public interface SysQuartzLogMapper {
|
||||
int deleteByPrimaryKey(Long logId);
|
||||
|
||||
int insert(SysQuartzLog record);
|
||||
|
||||
int insertSelective(SysQuartzLog record);
|
||||
|
||||
SysQuartzLog selectByPrimaryKey(Long logId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysQuartzLog record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(SysQuartzLog record);
|
||||
|
||||
int updateByPrimaryKey(SysQuartzLog record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysRole;
|
||||
|
||||
public interface SysRoleMapper {
|
||||
int deleteByPrimaryKey(Long roleId);
|
||||
|
||||
int insert(SysRole record);
|
||||
|
||||
int insertSelective(SysRole record);
|
||||
|
||||
SysRole selectByPrimaryKey(Long roleId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysRole record);
|
||||
|
||||
int updateByPrimaryKey(SysRole record);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysRolesDeptsKey;
|
||||
|
||||
public interface SysRolesDeptsMapper {
|
||||
int deleteByPrimaryKey(SysRolesDeptsKey key);
|
||||
|
||||
int insert(SysRolesDeptsKey record);
|
||||
|
||||
int insertSelective(SysRolesDeptsKey record);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysRolesMenusKey;
|
||||
|
||||
public interface SysRolesMenusMapper {
|
||||
int deleteByPrimaryKey(SysRolesMenusKey key);
|
||||
|
||||
int insert(SysRolesMenusKey record);
|
||||
|
||||
int insertSelective(SysRolesMenusKey record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysUser;
|
||||
|
||||
public interface SysUserMapper {
|
||||
int deleteByPrimaryKey(Long userId);
|
||||
|
||||
int insert(SysUser record);
|
||||
|
||||
int insertSelective(SysUser record);
|
||||
|
||||
SysUser selectByPrimaryKey(Long userId);
|
||||
|
||||
int updateByPrimaryKeySelective(SysUser record);
|
||||
|
||||
int updateByPrimaryKey(SysUser record);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysUsersJobsKey;
|
||||
|
||||
public interface SysUsersJobsMapper {
|
||||
int deleteByPrimaryKey(SysUsersJobsKey key);
|
||||
|
||||
int insert(SysUsersJobsKey record);
|
||||
|
||||
int insertSelective(SysUsersJobsKey record);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.SysUsersRolesKey;
|
||||
|
||||
public interface SysUsersRolesMapper {
|
||||
int deleteByPrimaryKey(SysUsersRolesKey key);
|
||||
|
||||
int insert(SysUsersRolesKey record);
|
||||
|
||||
int insertSelective(SysUsersRolesKey record);
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbCashierCart;
|
||||
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 TbCashierCartMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbCashierCart record);
|
||||
|
||||
int insertSelective(TbCashierCart record);
|
||||
|
||||
TbCashierCart selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbCashierCart record);
|
||||
|
||||
int updateByPrimaryKey(TbCashierCart record);
|
||||
|
||||
|
||||
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);
|
||||
|
||||
List<TbCashierCart> selectByMaskerId(@Param("masterId") String masterId, @Param("shopId") Integer shopId);
|
||||
|
||||
void deleteByCartId(@Param("masterId") String masterId, @Param("cartId") Integer cartId);
|
||||
|
||||
void updateStatus(@Param("masterId") Integer id, @Param("status") String status);
|
||||
|
||||
|
||||
void updateStatusByMaster(@Param("shopId") Integer shopId, @Param("masterId") String masterId,
|
||||
@Param("status") String status, @Param("day") String day);
|
||||
|
||||
List<TbCashierCart> selectAllCreateOrder(@Param("masterId") String masterId, @Param("shopId") Integer shopId,
|
||||
@Param("day") String day, @Param("status") String status, @Param("uuid") String uuid);
|
||||
|
||||
int updateByOrderId(String orderId);
|
||||
|
||||
|
||||
void updateIsGift(@Param("maskerId") String maskerId, @Param("status") String status, @Param("shopId") Integer shopId, @Param("day") String day);
|
||||
|
||||
int selectqgList(String shopId);
|
||||
|
||||
void deleteBymasterId(@Param("masterId") String masterId, @Param("shopId") Integer shopId,
|
||||
@Param("day") String day, @Param("status") String status);
|
||||
|
||||
int updateStatusByOrderId(@Param("orderId") String orderId, @Param("status") String status);
|
||||
|
||||
|
||||
List<TbCashierCart> selectByOrderId(@Param("orderId") String orderId,@Param("status") String status);
|
||||
|
||||
void updateStatusByTableId(@Param("tableId")String tableId,@Param("status") String status);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
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);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbDeviceStock;
|
||||
|
||||
public interface TbDeviceStockMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbDeviceStock record);
|
||||
|
||||
int insertSelective(TbDeviceStock record);
|
||||
|
||||
TbDeviceStock selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbDeviceStock record);
|
||||
|
||||
int updateByPrimaryKey(TbDeviceStock record);
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
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);
|
||||
|
||||
int insert(TbMemberIn record);
|
||||
|
||||
int insertSelective(TbMemberIn record);
|
||||
|
||||
TbMemberIn selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbMemberIn record);
|
||||
|
||||
int updateByPrimaryKey(TbMemberIn record);
|
||||
|
||||
TbMemberIn selectByOrderNo(String ordrNo);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbMerchantAccount;
|
||||
|
||||
public interface TbMerchantAccountMapper {
|
||||
|
||||
TbMerchantAccount selectByAccount(String account);
|
||||
|
||||
TbMerchantAccount selectByShopId(String shopId);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbMerchantRegister;
|
||||
|
||||
public interface TbMerchantRegisterMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbMerchantRegister record);
|
||||
|
||||
int insertSelective(TbMerchantRegister record);
|
||||
|
||||
TbMerchantRegister selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbMerchantRegister record);
|
||||
|
||||
int updateByPrimaryKey(TbMerchantRegister record);
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
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);
|
||||
|
||||
int insert(TbMerchantThirdApply record);
|
||||
|
||||
int insertSelective(TbMerchantThirdApply record);
|
||||
|
||||
TbMerchantThirdApply selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbMerchantThirdApply record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbMerchantThirdApply record);
|
||||
|
||||
int updateByPrimaryKey(TbMerchantThirdApply record);
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderDetail;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Component
|
||||
public interface TbOrderDetailMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbOrderDetail record);
|
||||
|
||||
int insertSelective(TbOrderDetail record);
|
||||
|
||||
TbOrderDetail selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbOrderDetail record);
|
||||
|
||||
int updateByPrimaryKey(TbOrderDetail record);
|
||||
|
||||
void updateStatusByOrderId(@Param("orderId") int orderId, @Param("status") String status);
|
||||
|
||||
void deleteByOUrderId(@Param("orderId") int orderId);
|
||||
|
||||
List<TbOrderDetail> selectAllByOrderId(@Param("id") Integer id);
|
||||
|
||||
|
||||
|
||||
|
||||
List<TbOrderDetail> selectAllByOrderIdAndStatus(@Param("list") List<TbOrderDetail> list, @Param("orderId") String orderId);
|
||||
|
||||
BigDecimal selectByOrderId(String orderId);
|
||||
|
||||
|
||||
void updateStatusByOrderIdAndStatus(@Param("orderId") int orderId,@Param("status") String status);
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderExtend;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderExtendWithBLOBs;
|
||||
|
||||
public interface TbOrderExtendMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbOrderExtendWithBLOBs record);
|
||||
|
||||
int insertSelective(TbOrderExtendWithBLOBs record);
|
||||
|
||||
TbOrderExtendWithBLOBs selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbOrderExtendWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbOrderExtendWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbOrderExtend record);
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderInfo;
|
||||
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 TbOrderInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbOrderInfo record);
|
||||
|
||||
int insertSelective(TbOrderInfo record);
|
||||
|
||||
TbOrderInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbOrderInfo record);
|
||||
|
||||
int updateByPrimaryKey(TbOrderInfo record);
|
||||
|
||||
void updateStatusById(@Param("orderId") int orderId, @Param("status") String status);
|
||||
|
||||
|
||||
List<TbOrderInfo> selectAllByStatus(String status);
|
||||
TbOrderInfo selectByPayOrderNo(String payOrderNo);
|
||||
|
||||
List<TbOrderInfo> selectByUserId(@Param("userId")Integer userId, @Param("page")Integer page,
|
||||
@Param("size")Integer size, @Param("status") String status);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderPayment;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbOrderPaymentMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbOrderPayment record);
|
||||
|
||||
int insertSelective(TbOrderPayment record);
|
||||
|
||||
TbOrderPayment selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbOrderPayment record);
|
||||
|
||||
int updateByPrimaryKey(TbOrderPayment record);
|
||||
|
||||
TbOrderPayment selectByOrderId(String orderId);
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
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);
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbPrintMachine;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbPrintMachineWithBLOBs;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbPrintMachineMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbPrintMachineWithBLOBs record);
|
||||
|
||||
int insertSelective(TbPrintMachineWithBLOBs record);
|
||||
|
||||
TbPrintMachineWithBLOBs selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbPrintMachineWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbPrintMachineWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbPrintMachine record);
|
||||
|
||||
List<TbPrintMachineWithBLOBs> selectByShopId(String shopId);
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductGroup;
|
||||
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 TbProductGroupMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbProductGroup record);
|
||||
|
||||
int insertSelective(TbProductGroup record);
|
||||
|
||||
TbProductGroup selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductGroup record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductGroup record);
|
||||
|
||||
int updateByPrimaryKey(TbProductGroup record);
|
||||
|
||||
List<TbProductGroup> selectByIdAndShopId(@Param("code") String code);
|
||||
|
||||
List<TbProductGroup> selectByQrcode(@Param("qrCode") String qrCode,@Param("groupId") Integer groupId);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProduct;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductWithBLOBs;
|
||||
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 TbProductMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbProductWithBLOBs record);
|
||||
|
||||
int insertSelective(TbProductWithBLOBs record);
|
||||
|
||||
TbProductWithBLOBs selectByPrimaryKey(Integer id);
|
||||
|
||||
TbProduct selectById(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbProduct record);
|
||||
|
||||
List<TbProduct> selectByIdIn(@Param("ids") String ids);
|
||||
|
||||
|
||||
Integer selectByQcode(@Param("code") String code,@Param("productId") Integer productId,@Param("shopId") String shopId);
|
||||
Integer selectByNewQcode(@Param("code") String code,@Param("productId") Integer productId,@Param("shopId") String shopId,@Param("list") List<String> list);
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductSku;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductSkuWithBLOBs;
|
||||
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 TbProductSkuMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbProductSkuWithBLOBs record);
|
||||
|
||||
int insertSelective(TbProductSkuWithBLOBs record);
|
||||
|
||||
TbProductSkuWithBLOBs selectByPrimaryKey(Integer id);
|
||||
Integer selectBySpecSnap(@Param("shopId")String shopId,@Param("tableId") Integer tableId,@Param("specSnap") String specSnap);
|
||||
int updateByPrimaryKeySelective(TbProductSkuWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductSkuWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbProductSku record);
|
||||
|
||||
TbProductSkuWithBLOBs selectByShopIdAndProductIdAndSpec(@Param("shopId") String shopId, @Param("productId") String productId, @Param("spec") String spec);
|
||||
|
||||
void updateStockById(@Param("skuId") String skuId, @Param("num") Integer num);
|
||||
void updateAddStockById(@Param("skuId") String skuId, @Param("num") Integer num);
|
||||
|
||||
List<TbProductSku> selectAll();
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
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);
|
||||
|
||||
int insert(TbProductSkuResult record);
|
||||
|
||||
int insertSelective(TbProductSkuResult record);
|
||||
|
||||
TbProductSkuResult selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductSkuResult record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductSkuResult record);
|
||||
|
||||
int updateByPrimaryKey(TbProductSkuResult record);
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductSpec;
|
||||
|
||||
public interface TbProductSpecMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbProductSpec record);
|
||||
|
||||
int insertSelective(TbProductSpec record);
|
||||
|
||||
TbProductSpec selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductSpec record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductSpec record);
|
||||
|
||||
int updateByPrimaryKey(TbProductSpec record);
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductStockDetail;
|
||||
|
||||
public interface TbProductStockDetailMapper {
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(TbProductStockDetail record);
|
||||
|
||||
int insertSelective(TbProductStockDetail record);
|
||||
|
||||
TbProductStockDetail selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductStockDetail record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductStockDetail record);
|
||||
|
||||
int updateByPrimaryKey(TbProductStockDetail record);
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductStockOperate;
|
||||
|
||||
public interface TbProductStockOperateMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbProductStockOperate record);
|
||||
|
||||
int insertSelective(TbProductStockOperate record);
|
||||
|
||||
TbProductStockOperate selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductStockOperate record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductStockOperate record);
|
||||
|
||||
int updateByPrimaryKey(TbProductStockOperate record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
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);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
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);
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopArea;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbShopAreaMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopArea record);
|
||||
|
||||
int insertSelective(TbShopArea record);
|
||||
|
||||
TbShopArea selectByPrimaryKey(Integer id);
|
||||
|
||||
List<TbShopArea> selectByShopId(Integer shopId);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopArea record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbShopArea record);
|
||||
|
||||
int updateByPrimaryKey(TbShopArea record);
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
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);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCategory;
|
||||
|
||||
public interface TbShopCategoryMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopCategory record);
|
||||
|
||||
int insertSelective(TbShopCategory record);
|
||||
|
||||
TbShopCategory selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopCategory record);
|
||||
|
||||
int updateByPrimaryKey(TbShopCategory record);
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
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);
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@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);
|
||||
|
||||
TbShopInfo selectByQrCode(String qrcode);
|
||||
|
||||
TbShopInfo selectByPhone(String phone);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopPayType;
|
||||
|
||||
public interface TbShopPayTypeMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopPayType record);
|
||||
|
||||
int insertSelective(TbShopPayType record);
|
||||
|
||||
TbShopPayType selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopPayType record);
|
||||
|
||||
int updateByPrimaryKey(TbShopPayType record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopPurveyor;
|
||||
|
||||
public interface TbShopPurveyorMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopPurveyor record);
|
||||
|
||||
int insertSelective(TbShopPurveyor record);
|
||||
|
||||
TbShopPurveyor selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopPurveyor record);
|
||||
|
||||
int updateByPrimaryKey(TbShopPurveyor record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopPurveyorTransact;
|
||||
|
||||
public interface TbShopPurveyorTransactMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopPurveyorTransact record);
|
||||
|
||||
int insertSelective(TbShopPurveyorTransact record);
|
||||
|
||||
TbShopPurveyorTransact selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopPurveyorTransact record);
|
||||
|
||||
int updateByPrimaryKey(TbShopPurveyorTransact record);
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopTable;
|
||||
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);
|
||||
|
||||
int insert(TbShopTable record);
|
||||
|
||||
int insertSelective(TbShopTable record);
|
||||
|
||||
TbShopTable selectByPrimaryKey(Integer id);
|
||||
|
||||
List<TbShopTable> selectShopTableById(@Param("shopId") Integer shopId, @Param("areaId")Integer areaId);
|
||||
|
||||
TbShopTable selectQRcode(String code);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopTable record);
|
||||
|
||||
int updateByPrimaryKey(TbShopTable record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopUnit;
|
||||
|
||||
public interface TbShopUnitMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopUnit record);
|
||||
|
||||
int insertSelective(TbShopUnit record);
|
||||
|
||||
TbShopUnit selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopUnit record);
|
||||
|
||||
int updateByPrimaryKey(TbShopUnit record);
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopUserFlow;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopUserFlowMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopUserFlow record);
|
||||
|
||||
int insertSelective(TbShopUserFlow record);
|
||||
|
||||
TbShopUserFlow selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopUserFlow record);
|
||||
|
||||
int updateByPrimaryKey(TbShopUserFlow record);
|
||||
|
||||
List<Map<String,Object>> selectByMemberAccountFlow(String memberId);
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopUser;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopUserMapper {
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(TbShopUser record);
|
||||
|
||||
int insertSelective(TbShopUser record);
|
||||
|
||||
TbShopUser selectByPrimaryKey(String id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopUser record);
|
||||
|
||||
int updateByPrimaryKey(TbShopUser record);
|
||||
|
||||
|
||||
TbShopUser selectByUserIdAndShopId(@Param("userId") String userId,@Param("shopId") String shopId);
|
||||
|
||||
|
||||
TbShopUser selectByUserId(@Param("userId") String userId);
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
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);
|
||||
|
||||
int insert(TbToken record);
|
||||
|
||||
int insertSelective(TbToken record);
|
||||
|
||||
TbToken selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbToken record);
|
||||
|
||||
int updateByPrimaryKey(TbToken record);
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
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);
|
||||
|
||||
int insert(TbUserInfo record);
|
||||
|
||||
int insertSelective(TbUserInfo record);
|
||||
|
||||
TbUserInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbUserInfo record);
|
||||
|
||||
int updateByPrimaryKey(TbUserInfo record);
|
||||
|
||||
|
||||
TbUserInfo selectByOpenId(String openId);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfig;
|
||||
import com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfigWithBLOBs;
|
||||
|
||||
public interface ToolAlipayConfigMapper {
|
||||
int deleteByPrimaryKey(Long configId);
|
||||
|
||||
int insert(ToolAlipayConfigWithBLOBs record);
|
||||
|
||||
int insertSelective(ToolAlipayConfigWithBLOBs record);
|
||||
|
||||
ToolAlipayConfigWithBLOBs selectByPrimaryKey(Long configId);
|
||||
|
||||
int updateByPrimaryKeySelective(ToolAlipayConfigWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(ToolAlipayConfigWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(ToolAlipayConfig record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ToolEmailConfig;
|
||||
|
||||
public interface ToolEmailConfigMapper {
|
||||
int deleteByPrimaryKey(Long configId);
|
||||
|
||||
int insert(ToolEmailConfig record);
|
||||
|
||||
int insertSelective(ToolEmailConfig record);
|
||||
|
||||
ToolEmailConfig selectByPrimaryKey(Long configId);
|
||||
|
||||
int updateByPrimaryKeySelective(ToolEmailConfig record);
|
||||
|
||||
int updateByPrimaryKey(ToolEmailConfig record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ToolLocalStorage;
|
||||
|
||||
public interface ToolLocalStorageMapper {
|
||||
int deleteByPrimaryKey(Long storageId);
|
||||
|
||||
int insert(ToolLocalStorage record);
|
||||
|
||||
int insertSelective(ToolLocalStorage record);
|
||||
|
||||
ToolLocalStorage selectByPrimaryKey(Long storageId);
|
||||
|
||||
int updateByPrimaryKeySelective(ToolLocalStorage record);
|
||||
|
||||
int updateByPrimaryKey(ToolLocalStorage record);
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ToolQiniuConfig;
|
||||
import com.chaozhanggui.system.cashierservice.entity.ToolQiniuConfigWithBLOBs;
|
||||
|
||||
public interface ToolQiniuConfigMapper {
|
||||
int deleteByPrimaryKey(Long configId);
|
||||
|
||||
int insert(ToolQiniuConfigWithBLOBs record);
|
||||
|
||||
int insertSelective(ToolQiniuConfigWithBLOBs record);
|
||||
|
||||
ToolQiniuConfigWithBLOBs selectByPrimaryKey(Long configId);
|
||||
|
||||
int updateByPrimaryKeySelective(ToolQiniuConfigWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(ToolQiniuConfigWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(ToolQiniuConfig record);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ToolQiniuContent;
|
||||
|
||||
public interface ToolQiniuContentMapper {
|
||||
int deleteByPrimaryKey(Long contentId);
|
||||
|
||||
int insert(ToolQiniuContent record);
|
||||
|
||||
int insertSelective(ToolQiniuContent record);
|
||||
|
||||
ToolQiniuContent selectByPrimaryKey(Long contentId);
|
||||
|
||||
int updateByPrimaryKeySelective(ToolQiniuContent record);
|
||||
|
||||
int updateByPrimaryKey(ToolQiniuContent record);
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ViewOrder;
|
||||
|
||||
public interface ViewOrderMapper {
|
||||
int insert(ViewOrder record);
|
||||
|
||||
int insertSelective(ViewOrder record);
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysDept implements Serializable {
|
||||
private Long deptId;
|
||||
|
||||
private Long pid;
|
||||
|
||||
private Integer subCount;
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer deptSort;
|
||||
|
||||
private Boolean enabled;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(Long pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public Integer getSubCount() {
|
||||
return subCount;
|
||||
}
|
||||
|
||||
public void setSubCount(Integer subCount) {
|
||||
this.subCount = subCount;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public Integer getDeptSort() {
|
||||
return deptSort;
|
||||
}
|
||||
|
||||
public void setDeptSort(Integer deptSort) {
|
||||
this.deptSort = deptSort;
|
||||
}
|
||||
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysDict implements Serializable {
|
||||
private Long dictId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getDictId() {
|
||||
return dictId;
|
||||
}
|
||||
|
||||
public void setDictId(Long dictId) {
|
||||
this.dictId = dictId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysDictDetail implements Serializable {
|
||||
private Long detailId;
|
||||
|
||||
private Long dictId;
|
||||
|
||||
private String label;
|
||||
|
||||
private String value;
|
||||
|
||||
private Integer dictSort;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getDetailId() {
|
||||
return detailId;
|
||||
}
|
||||
|
||||
public void setDetailId(Long detailId) {
|
||||
this.detailId = detailId;
|
||||
}
|
||||
|
||||
public Long getDictId() {
|
||||
return dictId;
|
||||
}
|
||||
|
||||
public void setDictId(Long dictId) {
|
||||
this.dictId = dictId;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label == null ? null : label.trim();
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value == null ? null : value.trim();
|
||||
}
|
||||
|
||||
public Integer getDictSort() {
|
||||
return dictSort;
|
||||
}
|
||||
|
||||
public void setDictSort(Integer dictSort) {
|
||||
this.dictSort = dictSort;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysJob implements Serializable {
|
||||
private Long jobId;
|
||||
|
||||
private String name;
|
||||
|
||||
private Boolean enabled;
|
||||
|
||||
private Integer jobSort;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getJobId() {
|
||||
return jobId;
|
||||
}
|
||||
|
||||
public void setJobId(Long jobId) {
|
||||
this.jobId = jobId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Integer getJobSort() {
|
||||
return jobSort;
|
||||
}
|
||||
|
||||
public void setJobSort(Integer jobSort) {
|
||||
this.jobSort = jobSort;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysLog implements Serializable {
|
||||
private Long logId;
|
||||
|
||||
private String description;
|
||||
|
||||
private String logType;
|
||||
|
||||
private String method;
|
||||
|
||||
private String requestIp;
|
||||
|
||||
private Long time;
|
||||
|
||||
private String username;
|
||||
|
||||
private String address;
|
||||
|
||||
private String browser;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getLogId() {
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogId(Long logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
|
||||
public String getLogType() {
|
||||
return logType;
|
||||
}
|
||||
|
||||
public void setLogType(String logType) {
|
||||
this.logType = logType == null ? null : logType.trim();
|
||||
}
|
||||
|
||||
public String getMethod() {
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method) {
|
||||
this.method = method == null ? null : method.trim();
|
||||
}
|
||||
|
||||
public String getRequestIp() {
|
||||
return requestIp;
|
||||
}
|
||||
|
||||
public void setRequestIp(String requestIp) {
|
||||
this.requestIp = requestIp == null ? null : requestIp.trim();
|
||||
}
|
||||
|
||||
public Long getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(Long time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username == null ? null : username.trim();
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address == null ? null : address.trim();
|
||||
}
|
||||
|
||||
public String getBrowser() {
|
||||
return browser;
|
||||
}
|
||||
|
||||
public void setBrowser(String browser) {
|
||||
this.browser = browser == null ? null : browser.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class SysLogWithBLOBs extends SysLog implements Serializable {
|
||||
private String params;
|
||||
|
||||
private String exceptionDetail;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getParams() {
|
||||
return params;
|
||||
}
|
||||
|
||||
public void setParams(String params) {
|
||||
this.params = params == null ? null : params.trim();
|
||||
}
|
||||
|
||||
public String getExceptionDetail() {
|
||||
return exceptionDetail;
|
||||
}
|
||||
|
||||
public void setExceptionDetail(String exceptionDetail) {
|
||||
this.exceptionDetail = exceptionDetail == null ? null : exceptionDetail.trim();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,198 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysMenu implements Serializable {
|
||||
private Long menuId;
|
||||
|
||||
private Long pid;
|
||||
|
||||
private Integer subCount;
|
||||
|
||||
private Integer type;
|
||||
|
||||
private String title;
|
||||
|
||||
private String name;
|
||||
|
||||
private String component;
|
||||
|
||||
private Integer menuSort;
|
||||
|
||||
private String icon;
|
||||
|
||||
private String path;
|
||||
|
||||
private Boolean iFrame;
|
||||
|
||||
private Boolean cache;
|
||||
|
||||
private Boolean hidden;
|
||||
|
||||
private String permission;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private String activeMenu;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(Long menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public Long getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(Long pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public Integer getSubCount() {
|
||||
return subCount;
|
||||
}
|
||||
|
||||
public void setSubCount(Integer subCount) {
|
||||
this.subCount = subCount;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title == null ? null : title.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getComponent() {
|
||||
return component;
|
||||
}
|
||||
|
||||
public void setComponent(String component) {
|
||||
this.component = component == null ? null : component.trim();
|
||||
}
|
||||
|
||||
public Integer getMenuSort() {
|
||||
return menuSort;
|
||||
}
|
||||
|
||||
public void setMenuSort(Integer menuSort) {
|
||||
this.menuSort = menuSort;
|
||||
}
|
||||
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon == null ? null : icon.trim();
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path == null ? null : path.trim();
|
||||
}
|
||||
|
||||
public Boolean getiFrame() {
|
||||
return iFrame;
|
||||
}
|
||||
|
||||
public void setiFrame(Boolean iFrame) {
|
||||
this.iFrame = iFrame;
|
||||
}
|
||||
|
||||
public Boolean getCache() {
|
||||
return cache;
|
||||
}
|
||||
|
||||
public void setCache(Boolean cache) {
|
||||
this.cache = cache;
|
||||
}
|
||||
|
||||
public Boolean getHidden() {
|
||||
return hidden;
|
||||
}
|
||||
|
||||
public void setHidden(Boolean hidden) {
|
||||
this.hidden = hidden;
|
||||
}
|
||||
|
||||
public String getPermission() {
|
||||
return permission;
|
||||
}
|
||||
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission == null ? null : permission.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;
|
||||
}
|
||||
|
||||
public String getActiveMenu() {
|
||||
return activeMenu;
|
||||
}
|
||||
|
||||
public void setActiveMenu(String activeMenu) {
|
||||
this.activeMenu = activeMenu == null ? null : activeMenu.trim();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysQuartzJob implements Serializable {
|
||||
private Long jobId;
|
||||
|
||||
private String beanName;
|
||||
|
||||
private String cronExpression;
|
||||
|
||||
private Boolean isPause;
|
||||
|
||||
private String jobName;
|
||||
|
||||
private String methodName;
|
||||
|
||||
private String params;
|
||||
|
||||
private String description;
|
||||
|
||||
private String personInCharge;
|
||||
|
||||
private String email;
|
||||
|
||||
private String subTask;
|
||||
|
||||
private Boolean pauseAfterFailure;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getJobId() {
|
||||
return jobId;
|
||||
}
|
||||
|
||||
public void setJobId(Long jobId) {
|
||||
this.jobId = jobId;
|
||||
}
|
||||
|
||||
public String getBeanName() {
|
||||
return beanName;
|
||||
}
|
||||
|
||||
public void setBeanName(String beanName) {
|
||||
this.beanName = beanName == null ? null : beanName.trim();
|
||||
}
|
||||
|
||||
public String getCronExpression() {
|
||||
return cronExpression;
|
||||
}
|
||||
|
||||
public void setCronExpression(String cronExpression) {
|
||||
this.cronExpression = cronExpression == null ? null : cronExpression.trim();
|
||||
}
|
||||
|
||||
public Boolean getIsPause() {
|
||||
return isPause;
|
||||
}
|
||||
|
||||
public void setIsPause(Boolean isPause) {
|
||||
this.isPause = isPause;
|
||||
}
|
||||
|
||||
public String getJobName() {
|
||||
return jobName;
|
||||
}
|
||||
|
||||
public void setJobName(String jobName) {
|
||||
this.jobName = jobName == null ? null : jobName.trim();
|
||||
}
|
||||
|
||||
public String getMethodName() {
|
||||
return methodName;
|
||||
}
|
||||
|
||||
public void setMethodName(String methodName) {
|
||||
this.methodName = methodName == null ? null : methodName.trim();
|
||||
}
|
||||
|
||||
public String getParams() {
|
||||
return params;
|
||||
}
|
||||
|
||||
public void setParams(String params) {
|
||||
this.params = params == null ? null : params.trim();
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
|
||||
public String getPersonInCharge() {
|
||||
return personInCharge;
|
||||
}
|
||||
|
||||
public void setPersonInCharge(String personInCharge) {
|
||||
this.personInCharge = personInCharge == null ? null : personInCharge.trim();
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email == null ? null : email.trim();
|
||||
}
|
||||
|
||||
public String getSubTask() {
|
||||
return subTask;
|
||||
}
|
||||
|
||||
public void setSubTask(String subTask) {
|
||||
this.subTask = subTask == null ? null : subTask.trim();
|
||||
}
|
||||
|
||||
public Boolean getPauseAfterFailure() {
|
||||
return pauseAfterFailure;
|
||||
}
|
||||
|
||||
public void setPauseAfterFailure(Boolean pauseAfterFailure) {
|
||||
this.pauseAfterFailure = pauseAfterFailure;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysQuartzLog implements Serializable {
|
||||
private Long logId;
|
||||
|
||||
private String beanName;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private String cronExpression;
|
||||
|
||||
private Boolean isSuccess;
|
||||
|
||||
private String jobName;
|
||||
|
||||
private String methodName;
|
||||
|
||||
private String params;
|
||||
|
||||
private Long time;
|
||||
|
||||
private String exceptionDetail;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getLogId() {
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogId(Long logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getBeanName() {
|
||||
return beanName;
|
||||
}
|
||||
|
||||
public void setBeanName(String beanName) {
|
||||
this.beanName = beanName == null ? null : beanName.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCronExpression() {
|
||||
return cronExpression;
|
||||
}
|
||||
|
||||
public void setCronExpression(String cronExpression) {
|
||||
this.cronExpression = cronExpression == null ? null : cronExpression.trim();
|
||||
}
|
||||
|
||||
public Boolean getIsSuccess() {
|
||||
return isSuccess;
|
||||
}
|
||||
|
||||
public void setIsSuccess(Boolean isSuccess) {
|
||||
this.isSuccess = isSuccess;
|
||||
}
|
||||
|
||||
public String getJobName() {
|
||||
return jobName;
|
||||
}
|
||||
|
||||
public void setJobName(String jobName) {
|
||||
this.jobName = jobName == null ? null : jobName.trim();
|
||||
}
|
||||
|
||||
public String getMethodName() {
|
||||
return methodName;
|
||||
}
|
||||
|
||||
public void setMethodName(String methodName) {
|
||||
this.methodName = methodName == null ? null : methodName.trim();
|
||||
}
|
||||
|
||||
public String getParams() {
|
||||
return params;
|
||||
}
|
||||
|
||||
public void setParams(String params) {
|
||||
this.params = params == null ? null : params.trim();
|
||||
}
|
||||
|
||||
public Long getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(Long time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public String getExceptionDetail() {
|
||||
return exceptionDetail;
|
||||
}
|
||||
|
||||
public void setExceptionDetail(String exceptionDetail) {
|
||||
this.exceptionDetail = exceptionDetail == null ? null : exceptionDetail.trim();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysRole implements Serializable {
|
||||
private Long roleId;
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer level;
|
||||
|
||||
private String description;
|
||||
|
||||
private String dataScope;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public Integer getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
|
||||
public String getDataScope() {
|
||||
return dataScope;
|
||||
}
|
||||
|
||||
public void setDataScope(String dataScope) {
|
||||
this.dataScope = dataScope == null ? null : dataScope.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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class SysRolesDeptsKey implements Serializable {
|
||||
private Long roleId;
|
||||
|
||||
private Long deptId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class SysRolesMenusKey implements Serializable {
|
||||
private Long menuId;
|
||||
|
||||
private Long roleId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(Long menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public Long getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,178 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class SysUser implements Serializable {
|
||||
private Long userId;
|
||||
|
||||
private Long deptId;
|
||||
|
||||
private String username;
|
||||
|
||||
private String nickName;
|
||||
|
||||
private String gender;
|
||||
|
||||
private String phone;
|
||||
|
||||
private String email;
|
||||
|
||||
private String avatarName;
|
||||
|
||||
private String avatarPath;
|
||||
|
||||
private String password;
|
||||
|
||||
private Boolean isAdmin;
|
||||
|
||||
private Long enabled;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date pwdResetTime;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Long deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username == null ? null : username.trim();
|
||||
}
|
||||
|
||||
public String getNickName() {
|
||||
return nickName;
|
||||
}
|
||||
|
||||
public void setNickName(String nickName) {
|
||||
this.nickName = nickName == null ? null : nickName.trim();
|
||||
}
|
||||
|
||||
public String getGender() {
|
||||
return gender;
|
||||
}
|
||||
|
||||
public void setGender(String gender) {
|
||||
this.gender = gender == null ? null : gender.trim();
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone == null ? null : phone.trim();
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email == null ? null : email.trim();
|
||||
}
|
||||
|
||||
public String getAvatarName() {
|
||||
return avatarName;
|
||||
}
|
||||
|
||||
public void setAvatarName(String avatarName) {
|
||||
this.avatarName = avatarName == null ? null : avatarName.trim();
|
||||
}
|
||||
|
||||
public String getAvatarPath() {
|
||||
return avatarPath;
|
||||
}
|
||||
|
||||
public void setAvatarPath(String avatarPath) {
|
||||
this.avatarPath = avatarPath == null ? null : avatarPath.trim();
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password == null ? null : password.trim();
|
||||
}
|
||||
|
||||
public Boolean getIsAdmin() {
|
||||
return isAdmin;
|
||||
}
|
||||
|
||||
public void setIsAdmin(Boolean isAdmin) {
|
||||
this.isAdmin = isAdmin;
|
||||
}
|
||||
|
||||
public Long getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Long enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
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 getPwdResetTime() {
|
||||
return pwdResetTime;
|
||||
}
|
||||
|
||||
public void setPwdResetTime(Date pwdResetTime) {
|
||||
this.pwdResetTime = pwdResetTime;
|
||||
}
|
||||
|
||||
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,27 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class SysUsersJobsKey implements Serializable {
|
||||
private Long userId;
|
||||
|
||||
private Long jobId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getJobId() {
|
||||
return jobId;
|
||||
}
|
||||
|
||||
public void setJobId(Long jobId) {
|
||||
this.jobId = jobId;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class SysUsersRolesKey implements Serializable {
|
||||
private Long userId;
|
||||
|
||||
private Long roleId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Long roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class TbCashierCart implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String masterId;
|
||||
|
||||
private String orderId;
|
||||
|
||||
private String refOrderId;
|
||||
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
private String productId;
|
||||
|
||||
private String coverImg;
|
||||
|
||||
private String isSku;
|
||||
|
||||
private String skuId;
|
||||
|
||||
private String name;
|
||||
private String skuName;
|
||||
|
||||
private BigDecimal salePrice;
|
||||
private BigDecimal packFee;
|
||||
|
||||
private Integer number;
|
||||
|
||||
private Integer totalNumber;
|
||||
|
||||
private Integer refundNumber;
|
||||
|
||||
private String categoryId;
|
||||
private String tradeDay;
|
||||
|
||||
private String status;
|
||||
|
||||
private Byte type;
|
||||
|
||||
private String merchantId;
|
||||
|
||||
private String shopId;
|
||||
private String isPack;
|
||||
private String isGift;
|
||||
private String uuid;
|
||||
|
||||
private Long createdAt;
|
||||
private Long pendingAt;
|
||||
|
||||
private Long updatedAt;
|
||||
private Integer userId;
|
||||
private String tableId;
|
||||
private TbProductSpec tbProductSpec;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,249 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
public class TbDeviceStock implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String code;
|
||||
|
||||
private String snno;
|
||||
|
||||
private String orderno;
|
||||
|
||||
private BigDecimal price;
|
||||
|
||||
private String type;
|
||||
|
||||
private String groupno;
|
||||
|
||||
private String buymercname;
|
||||
|
||||
private String buymercid;
|
||||
|
||||
private String actmercname;
|
||||
|
||||
private String actmercid;
|
||||
|
||||
private String status;
|
||||
|
||||
private Date createtime;
|
||||
|
||||
private String createby;
|
||||
|
||||
private String delflag;
|
||||
|
||||
private String remarks;
|
||||
|
||||
private Date updatetime;
|
||||
|
||||
private String deviceno;
|
||||
|
||||
private Integer belonguserid;
|
||||
|
||||
private Integer extractuserid;
|
||||
|
||||
private String rolecode;
|
||||
|
||||
private Date instocktime;
|
||||
|
||||
private String transferstatus;
|
||||
|
||||
private Date bindtime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code == null ? null : code.trim();
|
||||
}
|
||||
|
||||
public String getSnno() {
|
||||
return snno;
|
||||
}
|
||||
|
||||
public void setSnno(String snno) {
|
||||
this.snno = snno == null ? null : snno.trim();
|
||||
}
|
||||
|
||||
public String getOrderno() {
|
||||
return orderno;
|
||||
}
|
||||
|
||||
public void setOrderno(String orderno) {
|
||||
this.orderno = orderno == null ? null : orderno.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(BigDecimal price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
public String getGroupno() {
|
||||
return groupno;
|
||||
}
|
||||
|
||||
public void setGroupno(String groupno) {
|
||||
this.groupno = groupno == null ? null : groupno.trim();
|
||||
}
|
||||
|
||||
public String getBuymercname() {
|
||||
return buymercname;
|
||||
}
|
||||
|
||||
public void setBuymercname(String buymercname) {
|
||||
this.buymercname = buymercname == null ? null : buymercname.trim();
|
||||
}
|
||||
|
||||
public String getBuymercid() {
|
||||
return buymercid;
|
||||
}
|
||||
|
||||
public void setBuymercid(String buymercid) {
|
||||
this.buymercid = buymercid == null ? null : buymercid.trim();
|
||||
}
|
||||
|
||||
public String getActmercname() {
|
||||
return actmercname;
|
||||
}
|
||||
|
||||
public void setActmercname(String actmercname) {
|
||||
this.actmercname = actmercname == null ? null : actmercname.trim();
|
||||
}
|
||||
|
||||
public String getActmercid() {
|
||||
return actmercid;
|
||||
}
|
||||
|
||||
public void setActmercid(String actmercid) {
|
||||
this.actmercid = actmercid == null ? null : actmercid.trim();
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status == null ? null : status.trim();
|
||||
}
|
||||
|
||||
public Date getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
public void setCreatetime(Date createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public String getCreateby() {
|
||||
return createby;
|
||||
}
|
||||
|
||||
public void setCreateby(String createby) {
|
||||
this.createby = createby == null ? null : createby.trim();
|
||||
}
|
||||
|
||||
public String getDelflag() {
|
||||
return delflag;
|
||||
}
|
||||
|
||||
public void setDelflag(String delflag) {
|
||||
this.delflag = delflag == null ? null : delflag.trim();
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks == null ? null : remarks.trim();
|
||||
}
|
||||
|
||||
public Date getUpdatetime() {
|
||||
return updatetime;
|
||||
}
|
||||
|
||||
public void setUpdatetime(Date updatetime) {
|
||||
this.updatetime = updatetime;
|
||||
}
|
||||
|
||||
public String getDeviceno() {
|
||||
return deviceno;
|
||||
}
|
||||
|
||||
public void setDeviceno(String deviceno) {
|
||||
this.deviceno = deviceno == null ? null : deviceno.trim();
|
||||
}
|
||||
|
||||
public Integer getBelonguserid() {
|
||||
return belonguserid;
|
||||
}
|
||||
|
||||
public void setBelonguserid(Integer belonguserid) {
|
||||
this.belonguserid = belonguserid;
|
||||
}
|
||||
|
||||
public Integer getExtractuserid() {
|
||||
return extractuserid;
|
||||
}
|
||||
|
||||
public void setExtractuserid(Integer extractuserid) {
|
||||
this.extractuserid = extractuserid;
|
||||
}
|
||||
|
||||
public String getRolecode() {
|
||||
return rolecode;
|
||||
}
|
||||
|
||||
public void setRolecode(String rolecode) {
|
||||
this.rolecode = rolecode == null ? null : rolecode.trim();
|
||||
}
|
||||
|
||||
public Date getInstocktime() {
|
||||
return instocktime;
|
||||
}
|
||||
|
||||
public void setInstocktime(Date instocktime) {
|
||||
this.instocktime = instocktime;
|
||||
}
|
||||
|
||||
public String getTransferstatus() {
|
||||
return transferstatus;
|
||||
}
|
||||
|
||||
public void setTransferstatus(String transferstatus) {
|
||||
this.transferstatus = transferstatus == null ? null : transferstatus.trim();
|
||||
}
|
||||
|
||||
public Date getBindtime() {
|
||||
return bindtime;
|
||||
}
|
||||
|
||||
public void setBindtime(Date bindtime) {
|
||||
this.bindtime = bindtime;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
public class TbMemberIn implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer merchantId;
|
||||
|
||||
private String code;
|
||||
|
||||
private BigDecimal amount;
|
||||
|
||||
private String status;
|
||||
|
||||
private String orderNo;
|
||||
|
||||
private String tradeNo;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getMerchantId() {
|
||||
return merchantId;
|
||||
}
|
||||
|
||||
public void setMerchantId(Integer merchantId) {
|
||||
this.merchantId = merchantId;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code == null ? null : code.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(BigDecimal amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status == null ? null : status.trim();
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo == null ? null : orderNo.trim();
|
||||
}
|
||||
|
||||
public String getTradeNo() {
|
||||
return tradeNo;
|
||||
}
|
||||
|
||||
public void setTradeNo(String tradeNo) {
|
||||
this.tradeNo = tradeNo == null ? null : tradeNo.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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,260 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 商家登陆帐号(TbMerchantAccount)实体类
|
||||
*
|
||||
* @author lyf
|
||||
* @since 2024-02-05 09:23:23
|
||||
*/
|
||||
public class TbMerchantAccount implements Serializable {
|
||||
private static final long serialVersionUID = -10920550123596123L;
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* 登陆帐号
|
||||
*/
|
||||
private String account;
|
||||
/**
|
||||
* 登陆密码
|
||||
*/
|
||||
private String password;
|
||||
/**
|
||||
* 商家Id
|
||||
*/
|
||||
private String merchantId;
|
||||
/**
|
||||
* 门店Id
|
||||
*/
|
||||
private String shopId;
|
||||
|
||||
private String shopSnap;
|
||||
/**
|
||||
* 是否管理员
|
||||
*/
|
||||
private Integer isAdmin;
|
||||
/**
|
||||
* 是否商户:1商户帐号0-店铺帐号
|
||||
*/
|
||||
private Integer isMercantile;
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 性别:0女 1 男
|
||||
*/
|
||||
private Integer sex;
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
private String headImg;
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
private String telephone;
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private Integer status;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
private Integer roleId;
|
||||
/**
|
||||
* 最后登陆时间
|
||||
*/
|
||||
private Integer lastLoginAt;
|
||||
/**
|
||||
* 公众号openId
|
||||
*/
|
||||
private String mpOpenId;
|
||||
/**
|
||||
* 是否接收消息通知
|
||||
*/
|
||||
private Integer msgAble;
|
||||
|
||||
private Long createdAt;
|
||||
|
||||
private Long updatedAt;
|
||||
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getMerchantId() {
|
||||
return merchantId;
|
||||
}
|
||||
|
||||
public void setMerchantId(String merchantId) {
|
||||
this.merchantId = merchantId;
|
||||
}
|
||||
|
||||
public String getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(String shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
public String getShopSnap() {
|
||||
return shopSnap;
|
||||
}
|
||||
|
||||
public void setShopSnap(String shopSnap) {
|
||||
this.shopSnap = shopSnap;
|
||||
}
|
||||
|
||||
public Integer getIsAdmin() {
|
||||
return isAdmin;
|
||||
}
|
||||
|
||||
public void setIsAdmin(Integer isAdmin) {
|
||||
this.isAdmin = isAdmin;
|
||||
}
|
||||
|
||||
public Integer getIsMercantile() {
|
||||
return isMercantile;
|
||||
}
|
||||
|
||||
public void setIsMercantile(Integer isMercantile) {
|
||||
this.isMercantile = isMercantile;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getHeadImg() {
|
||||
return headImg;
|
||||
}
|
||||
|
||||
public void setHeadImg(String headImg) {
|
||||
this.headImg = headImg;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
public void setSort(Integer sort) {
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Integer getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(Integer roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Integer getLastLoginAt() {
|
||||
return lastLoginAt;
|
||||
}
|
||||
|
||||
public void setLastLoginAt(Integer lastLoginAt) {
|
||||
this.lastLoginAt = lastLoginAt;
|
||||
}
|
||||
|
||||
public String getMpOpenId() {
|
||||
return mpOpenId;
|
||||
}
|
||||
|
||||
public void setMpOpenId(String mpOpenId) {
|
||||
this.mpOpenId = mpOpenId;
|
||||
}
|
||||
|
||||
public Integer getMsgAble() {
|
||||
return msgAble;
|
||||
}
|
||||
|
||||
public void setMsgAble(Integer msgAble) {
|
||||
this.msgAble = msgAble;
|
||||
}
|
||||
|
||||
public Long getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Long createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Long getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Long updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,198 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class TbMerchantRegister implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String registerCode;
|
||||
|
||||
private String appCode;
|
||||
|
||||
private String telephone;
|
||||
|
||||
private String merchantId;
|
||||
|
||||
private String shopId;
|
||||
|
||||
private String type;
|
||||
|
||||
private BigDecimal amount;
|
||||
|
||||
private Integer periodYear;
|
||||
|
||||
private String name;
|
||||
|
||||
private String address;
|
||||
|
||||
private String logo;
|
||||
|
||||
private String industry;
|
||||
|
||||
private String industryName;
|
||||
|
||||
private Integer status;
|
||||
|
||||
private Integer limitShopNumber;
|
||||
|
||||
private String sourcePath;
|
||||
|
||||
private Long createdAt;
|
||||
|
||||
private Long updatedAt;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getRegisterCode() {
|
||||
return registerCode;
|
||||
}
|
||||
|
||||
public void setRegisterCode(String registerCode) {
|
||||
this.registerCode = registerCode == null ? null : registerCode.trim();
|
||||
}
|
||||
|
||||
public String getAppCode() {
|
||||
return appCode;
|
||||
}
|
||||
|
||||
public void setAppCode(String appCode) {
|
||||
this.appCode = appCode == null ? null : appCode.trim();
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone == null ? null : telephone.trim();
|
||||
}
|
||||
|
||||
public String getMerchantId() {
|
||||
return merchantId;
|
||||
}
|
||||
|
||||
public void setMerchantId(String merchantId) {
|
||||
this.merchantId = merchantId == null ? null : merchantId.trim();
|
||||
}
|
||||
|
||||
public String getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(String shopId) {
|
||||
this.shopId = shopId == null ? null : shopId.trim();
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(BigDecimal amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public Integer getPeriodYear() {
|
||||
return periodYear;
|
||||
}
|
||||
|
||||
public void setPeriodYear(Integer periodYear) {
|
||||
this.periodYear = periodYear;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address == null ? null : address.trim();
|
||||
}
|
||||
|
||||
public String getLogo() {
|
||||
return logo;
|
||||
}
|
||||
|
||||
public void setLogo(String logo) {
|
||||
this.logo = logo == null ? null : logo.trim();
|
||||
}
|
||||
|
||||
public String getIndustry() {
|
||||
return industry;
|
||||
}
|
||||
|
||||
public void setIndustry(String industry) {
|
||||
this.industry = industry == null ? null : industry.trim();
|
||||
}
|
||||
|
||||
public String getIndustryName() {
|
||||
return industryName;
|
||||
}
|
||||
|
||||
public void setIndustryName(String industryName) {
|
||||
this.industryName = industryName == null ? null : industryName.trim();
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getLimitShopNumber() {
|
||||
return limitShopNumber;
|
||||
}
|
||||
|
||||
public void setLimitShopNumber(Integer limitShopNumber) {
|
||||
this.limitShopNumber = limitShopNumber;
|
||||
}
|
||||
|
||||
public String getSourcePath() {
|
||||
return sourcePath;
|
||||
}
|
||||
|
||||
public void setSourcePath(String sourcePath) {
|
||||
this.sourcePath = sourcePath == null ? null : sourcePath.trim();
|
||||
}
|
||||
|
||||
public Long getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Long createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Long getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Long updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class TbMerchantThirdApply implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String type;
|
||||
|
||||
private String appId;
|
||||
|
||||
private Byte status;
|
||||
|
||||
private String payPassword;
|
||||
|
||||
private String applymentState;
|
||||
|
||||
private Long createdAt;
|
||||
|
||||
private Long updatedAt;
|
||||
|
||||
private String appToken;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
public String getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId == null ? null : appId.trim();
|
||||
}
|
||||
|
||||
public Byte getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Byte status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getPayPassword() {
|
||||
return payPassword;
|
||||
}
|
||||
|
||||
public void setPayPassword(String payPassword) {
|
||||
this.payPassword = payPassword == null ? null : payPassword.trim();
|
||||
}
|
||||
|
||||
public String getApplymentState() {
|
||||
return applymentState;
|
||||
}
|
||||
|
||||
public void setApplymentState(String applymentState) {
|
||||
this.applymentState = applymentState == null ? null : applymentState.trim();
|
||||
}
|
||||
|
||||
public Long getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Long createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Long getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Long updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public String getAppToken() {
|
||||
return appToken;
|
||||
}
|
||||
|
||||
public void setAppToken(String appToken) {
|
||||
this.appToken = appToken == null ? null : appToken.trim();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class TbOrderDetail implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer orderId;
|
||||
|
||||
private Integer shopId;
|
||||
|
||||
private Integer productId;
|
||||
|
||||
private Integer productSkuId;
|
||||
|
||||
private Integer num;
|
||||
|
||||
private String productName;
|
||||
private String status;
|
||||
|
||||
private String productSkuName;
|
||||
|
||||
private String productImg;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private BigDecimal price;
|
||||
|
||||
private BigDecimal priceAmount;
|
||||
private BigDecimal packAmount;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class TbOrderExtend implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String creatorSnap;
|
||||
|
||||
private String cashierSnap;
|
||||
|
||||
private String terminalSnap;
|
||||
|
||||
private String tableParty;
|
||||
|
||||
private String shopId;
|
||||
|
||||
private Long createdAt;
|
||||
|
||||
private Long updatedAt;
|
||||
|
||||
private String shopSnap;
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCreatorSnap() {
|
||||
return creatorSnap;
|
||||
}
|
||||
|
||||
public void setCreatorSnap(String creatorSnap) {
|
||||
this.creatorSnap = creatorSnap == null ? null : creatorSnap.trim();
|
||||
}
|
||||
|
||||
public String getCashierSnap() {
|
||||
return cashierSnap;
|
||||
}
|
||||
|
||||
public void setCashierSnap(String cashierSnap) {
|
||||
this.cashierSnap = cashierSnap == null ? null : cashierSnap.trim();
|
||||
}
|
||||
|
||||
public String getTerminalSnap() {
|
||||
return terminalSnap;
|
||||
}
|
||||
|
||||
public void setTerminalSnap(String terminalSnap) {
|
||||
this.terminalSnap = terminalSnap == null ? null : terminalSnap.trim();
|
||||
}
|
||||
|
||||
public String getTableParty() {
|
||||
return tableParty;
|
||||
}
|
||||
|
||||
public void setTableParty(String tableParty) {
|
||||
this.tableParty = tableParty == null ? null : tableParty.trim();
|
||||
}
|
||||
|
||||
public String getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(String shopId) {
|
||||
this.shopId = shopId == null ? null : shopId.trim();
|
||||
}
|
||||
|
||||
public Long getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Long createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Long getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Long updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public String getShopSnap() {
|
||||
return shopSnap;
|
||||
}
|
||||
|
||||
public void setShopSnap(String shopSnap) {
|
||||
this.shopSnap = shopSnap == null ? null : shopSnap.trim();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class TbOrderExtendWithBLOBs extends TbOrderExtend implements Serializable {
|
||||
private String cartList;
|
||||
|
||||
private String paymentList;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getCartList() {
|
||||
return cartList;
|
||||
}
|
||||
|
||||
public void setCartList(String cartList) {
|
||||
this.cartList = cartList == null ? null : cartList.trim();
|
||||
}
|
||||
|
||||
public String getPaymentList() {
|
||||
return paymentList;
|
||||
}
|
||||
|
||||
public void setPaymentList(String paymentList) {
|
||||
this.paymentList = paymentList == null ? null : paymentList.trim();
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue