提交
This commit is contained in:
262
pom.xml
Normal file
262
pom.xml
Normal file
@@ -0,0 +1,262 @@
|
||||
<?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-client</artifactId>
|
||||
<version>1.0.0</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>4.5.18</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>
|
||||
<!-- 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>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt</artifactId>
|
||||
<version>0.9.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-redis</artifactId>
|
||||
<version>1.4.7.RELEASE</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-redis</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>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||||
<version>1.2.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
<version>1.5.2.RELEASE</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
<!-- <profiles>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>dev</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>dev</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- <activation>-->
|
||||
<!-- <activeByDefault>true</activeByDefault>-->
|
||||
<!-- </activation>-->
|
||||
<!-- </profile>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>test</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>test</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
<!-- <profile>-->
|
||||
<!-- <id>pro</id>-->
|
||||
<!-- <properties>-->
|
||||
<!-- <env>pro</env>-->
|
||||
<!-- </properties>-->
|
||||
<!-- </profile>-->
|
||||
<!-- </profiles>-->
|
||||
|
||||
<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,55 @@
|
||||
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.web.client.RestTemplate;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableScheduling
|
||||
@EntityScan(basePackageClasses = {Shell.class})
|
||||
@MapperScan(basePackageClasses ={Shell.class} )
|
||||
@ComponentScan(basePackageClasses ={Shell.class})
|
||||
@EnableAspectJAutoProxy(proxyTargetClass = true)
|
||||
@Slf4j
|
||||
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;
|
||||
}
|
||||
}
|
||||
176
src/main/java/com/chaozhanggui/system/cashierservice/cache/DataCache.java
vendored
Normal file
176
src/main/java/com/chaozhanggui/system/cashierservice/cache/DataCache.java
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
package com.chaozhanggui.system.cashierservice.cache;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.chaozhanggui.system.cashierservice.dao.TbShopInfoMapper;
|
||||
import com.chaozhanggui.system.cashierservice.dao.TbShopOnlineMapper;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopOnline;
|
||||
import com.chaozhanggui.system.cashierservice.util.DateUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class DataCache {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private TbShopInfoMapper tbShopInfoMapper;
|
||||
|
||||
@Autowired
|
||||
TbShopOnlineMapper tbShopOnlineMapper;
|
||||
|
||||
|
||||
|
||||
public static ConcurrentHashMap<String,TbShopInfo> concurrentHashMap=new ConcurrentHashMap<>();
|
||||
|
||||
|
||||
|
||||
@Bean
|
||||
public void init(){
|
||||
log.info("加载店铺信息");
|
||||
shopInfo();
|
||||
}
|
||||
|
||||
|
||||
public void shopInfo(){
|
||||
List<TbShopInfo> tbShopInfos= tbShopInfoMapper.selectAll();
|
||||
if(ObjectUtil.isNotEmpty(tbShopInfos)&&tbShopInfos.size()>0){
|
||||
tbShopInfos.parallelStream().forEach(it->{
|
||||
TbShopOnline online= tbShopOnlineMapper.selectByPrimaryKey(it.getId());
|
||||
if(ObjectUtil.isEmpty(online)){
|
||||
online=new TbShopOnline();
|
||||
|
||||
online.setShopId(it.getId());
|
||||
if(it.getBusinessTime()!=null&&ObjectUtil.isNotEmpty(it.getBusinessTime())&&it.getBusinessTime().contains("-")){
|
||||
String[] times=it.getBusinessTime().split("-");
|
||||
String startTimestr=times[0];
|
||||
String entTimestr=times[1];
|
||||
|
||||
Date startTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(startTimestr).concat(":00"));
|
||||
Date entTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(entTimestr).concat(":00"));
|
||||
|
||||
if(entTime.getTime()<startTime.getTime()){
|
||||
try {
|
||||
entTime=DateUtils.getNewDate(entTime,3,1);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
online.setStartTime(startTime);
|
||||
online.setEndTime(entTime);
|
||||
online.setStatus(it.getStatus().toString());
|
||||
online.setCreateTime(new Date());
|
||||
}
|
||||
tbShopOnlineMapper.insert(online);
|
||||
|
||||
}else {
|
||||
if(it.getBusinessTime()!=null&&ObjectUtil.isNotEmpty(it.getBusinessTime())&&it.getBusinessTime().contains("-")){
|
||||
String[] times=it.getBusinessTime().split("-");
|
||||
String startTimestr=times[0];
|
||||
String entTimestr=times[1];
|
||||
|
||||
Date startTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(startTimestr).concat(":00"));
|
||||
Date entTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(entTimestr).concat(":00"));
|
||||
if(entTime.getTime()<startTime.getTime()){
|
||||
try {
|
||||
entTime=DateUtils.getNewDate(entTime,3,1);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
online.setStartTime(startTime);
|
||||
online.setEndTime(entTime);
|
||||
online.setStatus(it.getStatus().toString());
|
||||
|
||||
}
|
||||
online.setUpdateTime(new Date());
|
||||
tbShopOnlineMapper.updateByPrimaryKey(online);
|
||||
}
|
||||
concurrentHashMap.put(it.getId().toString(),it);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Scheduled(initialDelay = 1000,fixedDelay = 600000)
|
||||
public void shopTask(){
|
||||
List<TbShopInfo> tbShopInfos=tbShopInfoMapper.selectAllByCreateTime();
|
||||
if(ObjectUtil.isNotEmpty(tbShopInfos)&&tbShopInfos.size()>0){
|
||||
tbShopInfos.parallelStream().forEach(it->{
|
||||
TbShopOnline online= tbShopOnlineMapper.selectByPrimaryKey(it.getId());
|
||||
if(ObjectUtil.isEmpty(online)){
|
||||
online=new TbShopOnline();
|
||||
|
||||
online.setShopId(it.getId());
|
||||
if(it.getBusinessTime()!=null&&ObjectUtil.isNotEmpty(it.getBusinessTime())&&it.getBusinessTime().contains("-")){
|
||||
String[] times=it.getBusinessTime().split("-");
|
||||
String startTimestr=times[0];
|
||||
String entTimestr=times[1];
|
||||
|
||||
Date startTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(startTimestr).concat(":00"));
|
||||
Date entTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(entTimestr).concat(":00"));
|
||||
|
||||
if(entTime.getTime()<startTime.getTime()){
|
||||
try {
|
||||
entTime=DateUtils.getNewDate(entTime,3,1);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
online.setStartTime(startTime);
|
||||
online.setEndTime(entTime);
|
||||
online.setStatus(it.getStatus().toString());
|
||||
online.setCreateTime(new Date());
|
||||
}
|
||||
tbShopOnlineMapper.insert(online);
|
||||
|
||||
}else {
|
||||
if(it.getBusinessTime()!=null&&ObjectUtil.isNotEmpty(it.getBusinessTime())&&it.getBusinessTime().contains("-")){
|
||||
String[] times=it.getBusinessTime().split("-");
|
||||
String startTimestr=times[0];
|
||||
String entTimestr=times[1];
|
||||
|
||||
Date startTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(startTimestr).concat(":00"));
|
||||
Date entTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(entTimestr).concat(":00"));
|
||||
if(entTime.getTime()<startTime.getTime()){
|
||||
try {
|
||||
entTime=DateUtils.getNewDate(entTime,3,1);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
online.setStartTime(startTime);
|
||||
online.setEndTime(entTime);
|
||||
online.setStatus(it.getStatus().toString());
|
||||
|
||||
}
|
||||
online.setUpdateTime(new Date());
|
||||
tbShopOnlineMapper.updateByPrimaryKey(online);
|
||||
}
|
||||
concurrentHashMap.put(it.getId().toString(),it);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
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 token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param type
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("print")
|
||||
public Result print( @RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("type") String type,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("ispre") Boolean ispre
|
||||
){
|
||||
return cloudPrinterService.printReceipt(type,orderId,ispre);
|
||||
}
|
||||
|
||||
// public Result handoverPrint( @RequestHeader("token") String token,
|
||||
// @RequestHeader("loginName") String loginName,
|
||||
// @RequestHeader("clientType") String clientType,
|
||||
// @RequestParam("tradeDay") String tradeDay
|
||||
// ){
|
||||
//
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.model.LoginReq;
|
||||
import com.chaozhanggui.system.cashierservice.service.LoginService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
|
||||
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.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("login")
|
||||
public class LoginContoller {
|
||||
|
||||
|
||||
@Autowired
|
||||
LoginService loginService;
|
||||
@RequestMapping(value = "login",method = RequestMethod.POST)
|
||||
public Result login(@RequestBody LoginReq loginReq, HttpServletRequest request){
|
||||
try {
|
||||
return loginService.login(loginReq, IpUtil.getIpAddr(request));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return Result.fail(CodeEnum.FAIL);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("logout")
|
||||
public Result logout( @RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("status") String status
|
||||
){
|
||||
return loginService.logout(loginName,clientType,token,status);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.service.MemberService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("member")
|
||||
public class MemberController {
|
||||
|
||||
|
||||
@Autowired
|
||||
MemberService memberService;
|
||||
|
||||
|
||||
@GetMapping("queryMember")
|
||||
public Result queryMember(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("phone") String phone,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
){
|
||||
return memberService.queryMember(shopId,phone,page,pageSize);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("createMember")
|
||||
public Result createMember(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String,Object> map
|
||||
){
|
||||
return memberService.createMember(map);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("memberScanPay")
|
||||
public Result memberScanPay(
|
||||
@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String,Object> map
|
||||
|
||||
){
|
||||
return memberService.memberScanPay(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@GetMapping("queryScanPay")
|
||||
public Result queryScanPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("flowId") String flowId
|
||||
){
|
||||
return memberService.queryScanPay(flowId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@RequestMapping("accountPay")
|
||||
public Result accountPay( @RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody Map<String,Object> map
|
||||
){
|
||||
return memberService.memberAccountPay(map);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("queryMemberAccount")
|
||||
public Result queryMemberAccount(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("memberId") String memberId,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
|
||||
){
|
||||
return memberService.queryMemberAccount(memberId,page,pageSize);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("notify")
|
||||
public class NotifyController {
|
||||
|
||||
|
||||
|
||||
@RequestMapping("notifyPay")
|
||||
public String notifyPay(@RequestBody Map<String,Object> map){
|
||||
log.info("notifyPay:{}", JSON.toJSONString(map));
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.entity.OrderVo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.vo.CartVo;
|
||||
import com.chaozhanggui.system.cashierservice.service.OrderService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import com.chaozhanggui.system.cashierservice.util.TokenUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("order")
|
||||
public class OrderController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private OrderService orderService;
|
||||
|
||||
@PostMapping("/createCart")
|
||||
public Result createCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody CartVo cartVo
|
||||
){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.createCart(cartVo.getMasterId(),cartVo.getProductId(),cartVo.getShopId(),
|
||||
cartVo.getSkuId(),cartVo.getNumber(),userId,clientType,cartVo.getCartId(),cartVo.getIsGift(),
|
||||
cartVo.getIsPack(),cartVo.getUuid(),cartVo.getType());
|
||||
}
|
||||
@GetMapping("/queryCart")
|
||||
public Result queryCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("masterId") String masterId,
|
||||
@RequestParam("shopId") String shopId
|
||||
){
|
||||
return orderService.queryCart(masterId,shopId);
|
||||
}
|
||||
@GetMapping("/delCart")
|
||||
public Result delCart(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("masterId") String masterId,
|
||||
@RequestParam("cartId") Integer cartId
|
||||
){
|
||||
return orderService.delCart(masterId,cartId);
|
||||
}
|
||||
@GetMapping("/createCode")
|
||||
public Result createCode(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
String type
|
||||
){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.createCode(shopId,clientType,userId,type);
|
||||
}
|
||||
@GetMapping("/getCartList")
|
||||
public Result getCart(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId){
|
||||
return orderService.getCartList(shopId);
|
||||
}
|
||||
@GetMapping("/getCartPrductSpec")
|
||||
public Result getCartPrductSpec(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("cartId") Integer cartId){
|
||||
return orderService.getCartPrductSpec(cartId);
|
||||
}
|
||||
@PostMapping("/cartStatus")
|
||||
public Result cartStatus(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
String code = jsonObject.getString("code");
|
||||
return orderService.cartStatus(Integer.valueOf(cartVo.getShopId()),cartVo.getMasterId(),cartVo.getStatus(),userId,cartVo.getUuid(),clientType);
|
||||
}
|
||||
@PostMapping("/createOrder")
|
||||
public Result createOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody OrderVo orderVo){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
orderVo.setMerchantId(Integer.valueOf(userId));
|
||||
orderVo.setUserId(jsonObject.getString("staffId"));
|
||||
return orderService.createOrder(orderVo,clientType,token);
|
||||
}
|
||||
@PostMapping("/packall")
|
||||
public Result packall(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
|
||||
JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
|
||||
String userId = jsonObject.getString("accountId");
|
||||
return orderService.packall(cartVo);
|
||||
}
|
||||
@PostMapping("/clearCart")
|
||||
public Result clearCart(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
|
||||
return orderService.clearCart(cartVo);
|
||||
}
|
||||
|
||||
@GetMapping("/findOrder")
|
||||
public Result findOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId,
|
||||
@RequestParam("status") String status,@RequestParam("orderNo") String orderNo,@RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
|
||||
@RequestParam(value = "size", required = false, defaultValue = "1") Integer size){
|
||||
return orderService.findOrder(shopId,status,page,size,orderNo);
|
||||
}
|
||||
@GetMapping("/orderDetail")
|
||||
public Result orderDetail(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId,
|
||||
@RequestParam("id") Integer id){
|
||||
return orderService.orderDetail(shopId,id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderDetail;
|
||||
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.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("pay")
|
||||
public class PayController {
|
||||
|
||||
|
||||
@Autowired
|
||||
PayService payService;
|
||||
|
||||
|
||||
|
||||
@RequestMapping("queryPayType")
|
||||
public Result queryPayType( @RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId
|
||||
|
||||
){
|
||||
return payService.queryPayType(shopId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 扫码支付
|
||||
* @param request
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @param authCode
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("scanpay")
|
||||
public Result scanpay(HttpServletRequest request,
|
||||
@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("authCode") String authCode
|
||||
|
||||
) {
|
||||
return payService.scanPay(orderId,authCode, IpUtil.getIpAddr(request),token);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 储值卡支付
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("accountPay")
|
||||
public Result accountPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId,
|
||||
@RequestParam("memberId") String memberId
|
||||
){
|
||||
return payService.accountPay(orderId,memberId,token);
|
||||
}
|
||||
|
||||
/**
|
||||
* 现金支付
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("cashPay")
|
||||
public Result cashPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
return payService.cashPay(orderId,token);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 银行卡支付
|
||||
* @param token
|
||||
* @param loginName
|
||||
* @param clientType
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("bankPay")
|
||||
public Result bankPay(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
return payService.bankPay(orderId,token);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@RequestMapping("returnOrder")
|
||||
public Result returnOrder(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestBody List<TbOrderDetail> list
|
||||
){
|
||||
return payService.returnOrder(list,token);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("queryOrder")
|
||||
public Result queryOrder(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("orderId") String orderId){
|
||||
return payService.queryOrder(orderId,token);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.service.ProductService;
|
||||
import com.chaozhanggui.system.cashierservice.sign.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@CrossOrigin(origins = "*")
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("product")
|
||||
public class ProductController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ProductService productService;
|
||||
|
||||
|
||||
@GetMapping(value = "queryCommodityInfo")
|
||||
public Result queryCommodityInfo(
|
||||
@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("categoryId") String categoryId,
|
||||
@RequestParam("commdityName") String commdityName,
|
||||
@RequestParam("masterId") String masterId,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
){
|
||||
|
||||
return productService.queryCommodityInfo(shopId,categoryId,commdityName,page,pageSize,masterId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@GetMapping(value = "queryCategory")
|
||||
public Result queryCategory( @RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
){
|
||||
|
||||
return productService.queryCategory(shopId,page,pageSize);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("queryProductSku")
|
||||
public Result queryProductSku(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("productId") String productId,
|
||||
@RequestParam("spec_tag") String spec_tag
|
||||
){
|
||||
return productService.queryProductSku(shopId,productId,spec_tag);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.chaozhanggui.system.cashierservice.controller;
|
||||
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.service.ShopInfoService;
|
||||
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("shopInfo")
|
||||
public class ShopInfoController {
|
||||
|
||||
|
||||
@Autowired
|
||||
ShopInfoService shopInfoService;
|
||||
|
||||
@GetMapping("queryShopArea")
|
||||
public Result queryShopArea(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId
|
||||
) {
|
||||
|
||||
return shopInfoService.queryShopArea(shopId);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("queryShopTable")
|
||||
public Result queryShopTable(@RequestHeader("token") String token,
|
||||
@RequestHeader("loginName") String loginName,
|
||||
@RequestHeader("clientType") String clientType,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("areaId") String areaId,
|
||||
@RequestParam("status") String status,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
|
||||
) {
|
||||
return shopInfoService.queryShopTable(shopId, areaId, status, page, pageSize);
|
||||
}
|
||||
|
||||
@GetMapping("queryDuty")
|
||||
public Result queryDuty(@RequestHeader("token") String token,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
|
||||
) {
|
||||
return shopInfoService.queryDuty(token, page, pageSize);
|
||||
}
|
||||
@GetMapping("queryDutyFlow")
|
||||
public Result queryDutyFlow(@RequestHeader("token") String token,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("page") int page,
|
||||
@RequestParam("pageSize") int pageSize
|
||||
|
||||
) {
|
||||
return shopInfoService.queryDutyFlow(token, shopId, page,pageSize);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig;
|
||||
|
||||
public interface CodeColumnConfigMapper {
|
||||
int deleteByPrimaryKey(Long columnId);
|
||||
|
||||
int insert(CodeColumnConfig record);
|
||||
|
||||
int insertSelective(CodeColumnConfig record);
|
||||
|
||||
CodeColumnConfig selectByPrimaryKey(Long columnId);
|
||||
|
||||
int updateByPrimaryKeySelective(CodeColumnConfig record);
|
||||
|
||||
int updateByPrimaryKey(CodeColumnConfig record);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.CodeGenConfig;
|
||||
|
||||
public interface CodeGenConfigMapper {
|
||||
int deleteByPrimaryKey(Long configId);
|
||||
|
||||
int insert(CodeGenConfig record);
|
||||
|
||||
int insertSelective(CodeGenConfig record);
|
||||
|
||||
CodeGenConfig selectByPrimaryKey(Long configId);
|
||||
|
||||
int updateByPrimaryKeySelective(CodeGenConfig record);
|
||||
|
||||
int updateByPrimaryKey(CodeGenConfig record);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.GUserSet;
|
||||
|
||||
public interface GUserSetMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(GUserSet record);
|
||||
|
||||
int insertSelective(GUserSet record);
|
||||
|
||||
GUserSet selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(GUserSet record);
|
||||
|
||||
int updateByPrimaryKey(GUserSet record);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntApp;
|
||||
|
||||
public interface MntAppMapper {
|
||||
int deleteByPrimaryKey(Long appId);
|
||||
|
||||
int insert(MntApp record);
|
||||
|
||||
int insertSelective(MntApp record);
|
||||
|
||||
MntApp selectByPrimaryKey(Long appId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntApp record);
|
||||
|
||||
int updateByPrimaryKey(MntApp record);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDatabase;
|
||||
|
||||
public interface MntDatabaseMapper {
|
||||
int deleteByPrimaryKey(String dbId);
|
||||
|
||||
int insert(MntDatabase record);
|
||||
|
||||
int insertSelective(MntDatabase record);
|
||||
|
||||
MntDatabase selectByPrimaryKey(String dbId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntDatabase record);
|
||||
|
||||
int updateByPrimaryKey(MntDatabase record);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDeployHistory;
|
||||
|
||||
public interface MntDeployHistoryMapper {
|
||||
int deleteByPrimaryKey(String historyId);
|
||||
|
||||
int insert(MntDeployHistory record);
|
||||
|
||||
int insertSelective(MntDeployHistory record);
|
||||
|
||||
MntDeployHistory selectByPrimaryKey(String historyId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntDeployHistory record);
|
||||
|
||||
int updateByPrimaryKey(MntDeployHistory record);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDeploy;
|
||||
|
||||
public interface MntDeployMapper {
|
||||
int deleteByPrimaryKey(Long deployId);
|
||||
|
||||
int insert(MntDeploy record);
|
||||
|
||||
int insertSelective(MntDeploy record);
|
||||
|
||||
MntDeploy selectByPrimaryKey(Long deployId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntDeploy record);
|
||||
|
||||
int updateByPrimaryKey(MntDeploy record);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntDeployServerKey;
|
||||
|
||||
public interface MntDeployServerMapper {
|
||||
int deleteByPrimaryKey(MntDeployServerKey key);
|
||||
|
||||
int insert(MntDeployServerKey record);
|
||||
|
||||
int insertSelective(MntDeployServerKey record);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.MntServer;
|
||||
|
||||
public interface MntServerMapper {
|
||||
int deleteByPrimaryKey(Long serverId);
|
||||
|
||||
int insert(MntServer record);
|
||||
|
||||
int insertSelective(MntServer record);
|
||||
|
||||
MntServer selectByPrimaryKey(Long serverId);
|
||||
|
||||
int updateByPrimaryKeySelective(MntServer record);
|
||||
|
||||
int updateByPrimaryKey(MntServer record);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ShopUserDutyDetail;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Component
|
||||
public interface ShopUserDutyDetailMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(ShopUserDutyDetail record);
|
||||
|
||||
int insertSelective(ShopUserDutyDetail record);
|
||||
|
||||
ShopUserDutyDetail selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(ShopUserDutyDetail record);
|
||||
|
||||
int updateByPrimaryKey(ShopUserDutyDetail record);
|
||||
int batchInsert(@Param("list") List<ShopUserDutyDetail> list);
|
||||
|
||||
List<ShopUserDutyDetail> selectByDuctId(@Param("id") Integer id, @Param("list") List<Integer> list);
|
||||
|
||||
List<ShopUserDutyDetail> selectAllByDuctId(@Param("id") Integer id);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ShopUserDuty;
|
||||
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;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface ShopUserDutyMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(ShopUserDuty record);
|
||||
|
||||
int insertSelective(ShopUserDuty record);
|
||||
|
||||
ShopUserDuty selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(ShopUserDuty record);
|
||||
|
||||
int updateByPrimaryKey(ShopUserDuty record);
|
||||
|
||||
ShopUserDuty selectByTokenId(@Param("tokenId") Integer tokenId);
|
||||
|
||||
void updateStatusByTokenId(@Param("tokenId") Integer tokenId);
|
||||
|
||||
List<ShopUserDuty> selectByShopId(@Param("shopId") String shopId);
|
||||
|
||||
BigDecimal selectSumAmount(@Param("shopId") String shopId);
|
||||
|
||||
ShopUserDuty selectByTokenIdAndTradeDay(@Param("tokenId") int tokenId, @Param("day") String day,@Param("shopId") String shopId);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.ShopUserDutyPay;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface ShopUserDutyPayMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(ShopUserDutyPay record);
|
||||
|
||||
int insertSelective(ShopUserDutyPay record);
|
||||
|
||||
ShopUserDutyPay selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(ShopUserDutyPay record);
|
||||
|
||||
int updateByPrimaryKey(ShopUserDutyPay record);
|
||||
|
||||
ShopUserDutyPay selectByDuctIdAndType(@Param("dutyId") Integer dutyId,@Param("payType") String payType);
|
||||
}
|
||||
@@ -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,62 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbCashierCart;
|
||||
import com.chaozhanggui.system.cashierservice.entity.po.CartPo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.po.QueryCartPo;
|
||||
import org.apache.ibatis.annotations.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,@Param("status") String status);
|
||||
|
||||
void deleteByCartId(@Param("masterId") String masterId, @Param("cartId")Integer cartId);
|
||||
|
||||
void updateStatus(@Param("masterId") Integer id,@Param("status") String status);
|
||||
|
||||
List<CartPo> selectCartList( @Param("shopId") Integer shopId);
|
||||
|
||||
void updateStatusByMaster(@Param("shopId") Integer shopId, @Param("masterId") String masterId,
|
||||
@Param("status") String status, @Param("day") String day, @Param("uuid") String uuid);
|
||||
|
||||
List<TbCashierCart> selectAllCreateOrder(@Param("masterId") String masterId, @Param("shopId") Integer shopId,
|
||||
@Param("day") String day, @Param("status") String status,@Param("uuid") String uuid);
|
||||
List<CartPo> selectCartList( @Param("cartId") String shopId);
|
||||
|
||||
int updateByOrderId(@Param("orderId") String orderId,@Param("status") String status);
|
||||
|
||||
QueryCartPo selectProductNumByMarketId(@Param("day") String day, @Param("shopId") String shopId, @Param("masterId") String masterId);
|
||||
|
||||
void updateIsGift(@Param("maskerId")String maskerId,@Param("status")String status,@Param("shopId") Integer shopId,@Param("day") String day);
|
||||
|
||||
int selectqgList(@Param("shopId") String shopId);
|
||||
|
||||
void deleteBymasterId(@Param("masterId") String masterId, @Param("shopId") Integer shopId,
|
||||
@Param("day") String day,@Param("status") String status,@Param("uuid") String uuid);
|
||||
|
||||
|
||||
|
||||
List<TbCashierCart> selectByOrderId(@Param("orderId") String orderId,@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,21 @@
|
||||
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);
|
||||
}
|
||||
@@ -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,44 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderDetail;
|
||||
import com.chaozhanggui.system.cashierservice.entity.po.OrderDetailPo;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
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 updateStatusByOrderIdAndStatus(@Param("orderId") int orderId,@Param("status") String status);
|
||||
void deleteByOUrderId(@Param("orderId") int orderId);
|
||||
|
||||
List<TbOrderDetail> selectAllByOrderId(@Param("id") Integer id);
|
||||
|
||||
int updateBatchOrderDetail(@Param("list")List<OrderDetailPo> list);
|
||||
|
||||
|
||||
|
||||
List<TbOrderDetail> selectAllByOrderIdAndStatus(@Param("list") List<TbOrderDetail> list, @Param("orderId") String orderId);
|
||||
|
||||
BigDecimal selectByOrderId(String orderId);
|
||||
|
||||
int batchInsert(@Param("list") List<TbOrderDetail> list,@Param("orderId") String orderId);
|
||||
}
|
||||
@@ -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,33 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbOrderInfo;
|
||||
import com.chaozhanggui.system.cashierservice.entity.po.OrderPo;
|
||||
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);
|
||||
|
||||
List<OrderPo> selectAllByShop(@Param("shopId") Integer shopId, @Param("orderType") String orderType,
|
||||
@Param("day") String day, @Param("orderNo") String orderNo);
|
||||
}
|
||||
@@ -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,23 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbPlussShopStaff;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbPlussShopStaffMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbPlussShopStaff record);
|
||||
|
||||
int insertSelective(TbPlussShopStaff record);
|
||||
|
||||
TbPlussShopStaff selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbPlussShopStaff record);
|
||||
|
||||
int updateByPrimaryKey(TbPlussShopStaff record);
|
||||
|
||||
TbPlussShopStaff selectByAccount(String account);
|
||||
}
|
||||
@@ -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,19 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductGroup;
|
||||
|
||||
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);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
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);
|
||||
|
||||
int updateByPrimaryKeySelective(TbProductWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbProductWithBLOBs record);
|
||||
|
||||
int updateByPrimaryKey(TbProduct record);
|
||||
|
||||
|
||||
List<TbProductWithBLOBs> selectByShopId(@Param("shopId") String shopId,@Param("commdityName") String commdityName);
|
||||
|
||||
|
||||
|
||||
List<TbProductWithBLOBs> selectByShopIdAndShopType(@Param("shopId") String shopId, @Param("categoryId") String categoryId,@Param("commdityName") String commdityName);
|
||||
|
||||
|
||||
|
||||
Integer countOrderByshopIdAndProductId(@Param("shopId") String shopId, @Param("productId") String productId, @Param("masterId") String masterId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbProductSkuMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbProductSkuWithBLOBs record);
|
||||
|
||||
int insertSelective(TbProductSkuWithBLOBs record);
|
||||
|
||||
TbProductSkuWithBLOBs selectByPrimaryKey(Integer id);
|
||||
|
||||
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);
|
||||
|
||||
TbProductSkuWithBLOBs selectByProduct(@Param("productId") Integer productId);
|
||||
}
|
||||
@@ -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,25 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbProductSpec;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbProductSpecMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
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,27 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopArea;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopAreaMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopArea record);
|
||||
|
||||
int insertSelective(TbShopArea record);
|
||||
|
||||
TbShopArea selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopArea record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbShopArea record);
|
||||
|
||||
int updateByPrimaryKey(TbShopArea record);
|
||||
|
||||
List<TbShopArea> selectByShopId(String shopId);
|
||||
}
|
||||
@@ -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,25 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopCategory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
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);
|
||||
|
||||
List<TbShopCategory> selectByAll(String shopId);
|
||||
}
|
||||
@@ -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,29 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopInfo record);
|
||||
|
||||
int insertSelective(TbShopInfo record);
|
||||
|
||||
TbShopInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopInfo record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbShopInfo record);
|
||||
|
||||
int updateByPrimaryKey(TbShopInfo record);
|
||||
|
||||
List<TbShopInfo> selectAll();
|
||||
|
||||
List<TbShopInfo> selectAllByCreateTime();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopOnline;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopOnlineMapper {
|
||||
int deleteByPrimaryKey(Integer shopId);
|
||||
|
||||
int insert(TbShopOnline record);
|
||||
|
||||
int insertSelective(TbShopOnline record);
|
||||
|
||||
TbShopOnline selectByPrimaryKey(Integer shopId);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopOnline record);
|
||||
|
||||
int updateByPrimaryKey(TbShopOnline record);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopPayType;
|
||||
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 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);
|
||||
|
||||
List<TbShopPayType> selectByShopId(String shopId);
|
||||
|
||||
int countSelectByShopIdAndPayType(@Param("shopId") String shopId, @Param("payType") String payType );
|
||||
|
||||
|
||||
}
|
||||
@@ -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,26 @@
|
||||
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);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopTable record);
|
||||
|
||||
int updateByPrimaryKey(TbShopTable record);
|
||||
|
||||
List<TbShopTable> selectByShopIdAndStatus(@Param("shopId") String shopId,@Param("areaId") String areaId,@Param("status") String status);
|
||||
}
|
||||
@@ -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,26 @@
|
||||
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;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopUserMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbShopUser record);
|
||||
|
||||
int insertSelective(TbShopUser record);
|
||||
|
||||
TbShopUser selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbShopUser record);
|
||||
|
||||
int updateByPrimaryKey(TbShopUser record);
|
||||
|
||||
List<TbShopUser> selectByShopId(@Param("shopId") String shopId,@Param("phone") String phone);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
|
||||
TbToken selectByToken(String token);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbUserInfo;
|
||||
|
||||
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);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbmerchantAccount;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbmerchantAccountMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(TbmerchantAccount record);
|
||||
|
||||
int insertSelective(TbmerchantAccount record);
|
||||
|
||||
TbmerchantAccount selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(TbmerchantAccount record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(TbmerchantAccount record);
|
||||
|
||||
int updateByPrimaryKey(TbmerchantAccount record);
|
||||
|
||||
|
||||
TbmerchantAccount selectByAccount(String account);
|
||||
}
|
||||
@@ -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,147 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CodeColumnConfig implements Serializable {
|
||||
private Long columnId;
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String columnName;
|
||||
|
||||
private String columnType;
|
||||
|
||||
private String dictName;
|
||||
|
||||
private String extra;
|
||||
|
||||
private Boolean formShow;
|
||||
|
||||
private String formType;
|
||||
|
||||
private String keyType;
|
||||
|
||||
private Boolean listShow;
|
||||
|
||||
private Boolean notNull;
|
||||
|
||||
private String queryType;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String dateAnnotation;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getColumnId() {
|
||||
return columnId;
|
||||
}
|
||||
|
||||
public void setColumnId(Long columnId) {
|
||||
this.columnId = columnId;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName == null ? null : tableName.trim();
|
||||
}
|
||||
|
||||
public String getColumnName() {
|
||||
return columnName;
|
||||
}
|
||||
|
||||
public void setColumnName(String columnName) {
|
||||
this.columnName = columnName == null ? null : columnName.trim();
|
||||
}
|
||||
|
||||
public String getColumnType() {
|
||||
return columnType;
|
||||
}
|
||||
|
||||
public void setColumnType(String columnType) {
|
||||
this.columnType = columnType == null ? null : columnType.trim();
|
||||
}
|
||||
|
||||
public String getDictName() {
|
||||
return dictName;
|
||||
}
|
||||
|
||||
public void setDictName(String dictName) {
|
||||
this.dictName = dictName == null ? null : dictName.trim();
|
||||
}
|
||||
|
||||
public String getExtra() {
|
||||
return extra;
|
||||
}
|
||||
|
||||
public void setExtra(String extra) {
|
||||
this.extra = extra == null ? null : extra.trim();
|
||||
}
|
||||
|
||||
public Boolean getFormShow() {
|
||||
return formShow;
|
||||
}
|
||||
|
||||
public void setFormShow(Boolean formShow) {
|
||||
this.formShow = formShow;
|
||||
}
|
||||
|
||||
public String getFormType() {
|
||||
return formType;
|
||||
}
|
||||
|
||||
public void setFormType(String formType) {
|
||||
this.formType = formType == null ? null : formType.trim();
|
||||
}
|
||||
|
||||
public String getKeyType() {
|
||||
return keyType;
|
||||
}
|
||||
|
||||
public void setKeyType(String keyType) {
|
||||
this.keyType = keyType == null ? null : keyType.trim();
|
||||
}
|
||||
|
||||
public Boolean getListShow() {
|
||||
return listShow;
|
||||
}
|
||||
|
||||
public void setListShow(Boolean listShow) {
|
||||
this.listShow = listShow;
|
||||
}
|
||||
|
||||
public Boolean getNotNull() {
|
||||
return notNull;
|
||||
}
|
||||
|
||||
public void setNotNull(Boolean notNull) {
|
||||
this.notNull = notNull;
|
||||
}
|
||||
|
||||
public String getQueryType() {
|
||||
return queryType;
|
||||
}
|
||||
|
||||
public void setQueryType(String queryType) {
|
||||
this.queryType = queryType == null ? null : queryType.trim();
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
public String getDateAnnotation() {
|
||||
return dateAnnotation;
|
||||
}
|
||||
|
||||
public void setDateAnnotation(String dateAnnotation) {
|
||||
this.dateAnnotation = dateAnnotation == null ? null : dateAnnotation.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CodeGenConfig implements Serializable {
|
||||
private Long configId;
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String author;
|
||||
|
||||
private Boolean cover;
|
||||
|
||||
private String moduleName;
|
||||
|
||||
private String pack;
|
||||
|
||||
private String path;
|
||||
|
||||
private String apiPath;
|
||||
|
||||
private String prefix;
|
||||
|
||||
private String apiAlias;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getConfigId() {
|
||||
return configId;
|
||||
}
|
||||
|
||||
public void setConfigId(Long configId) {
|
||||
this.configId = configId;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName == null ? null : tableName.trim();
|
||||
}
|
||||
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author == null ? null : author.trim();
|
||||
}
|
||||
|
||||
public Boolean getCover() {
|
||||
return cover;
|
||||
}
|
||||
|
||||
public void setCover(Boolean cover) {
|
||||
this.cover = cover;
|
||||
}
|
||||
|
||||
public String getModuleName() {
|
||||
return moduleName;
|
||||
}
|
||||
|
||||
public void setModuleName(String moduleName) {
|
||||
this.moduleName = moduleName == null ? null : moduleName.trim();
|
||||
}
|
||||
|
||||
public String getPack() {
|
||||
return pack;
|
||||
}
|
||||
|
||||
public void setPack(String pack) {
|
||||
this.pack = pack == null ? null : pack.trim();
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path == null ? null : path.trim();
|
||||
}
|
||||
|
||||
public String getApiPath() {
|
||||
return apiPath;
|
||||
}
|
||||
|
||||
public void setApiPath(String apiPath) {
|
||||
this.apiPath = apiPath == null ? null : apiPath.trim();
|
||||
}
|
||||
|
||||
public String getPrefix() {
|
||||
return prefix;
|
||||
}
|
||||
|
||||
public void setPrefix(String prefix) {
|
||||
this.prefix = prefix == null ? null : prefix.trim();
|
||||
}
|
||||
|
||||
public String getApiAlias() {
|
||||
return apiAlias;
|
||||
}
|
||||
|
||||
public void setApiAlias(String apiAlias) {
|
||||
this.apiAlias = apiAlias == null ? null : apiAlias.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class GUserSet implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private String appId;
|
||||
|
||||
private String storeId;
|
||||
|
||||
private String storeName;
|
||||
|
||||
private String merchantName;
|
||||
|
||||
private String token;
|
||||
|
||||
private String ip;
|
||||
|
||||
private String nofiyUrl;
|
||||
|
||||
private String publicKey;
|
||||
|
||||
private String privateKey;
|
||||
|
||||
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 String getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId == null ? null : appId.trim();
|
||||
}
|
||||
|
||||
public String getStoreId() {
|
||||
return storeId;
|
||||
}
|
||||
|
||||
public void setStoreId(String storeId) {
|
||||
this.storeId = storeId == null ? null : storeId.trim();
|
||||
}
|
||||
|
||||
public String getStoreName() {
|
||||
return storeName;
|
||||
}
|
||||
|
||||
public void setStoreName(String storeName) {
|
||||
this.storeName = storeName == null ? null : storeName.trim();
|
||||
}
|
||||
|
||||
public String getMerchantName() {
|
||||
return merchantName;
|
||||
}
|
||||
|
||||
public void setMerchantName(String merchantName) {
|
||||
this.merchantName = merchantName == null ? null : merchantName.trim();
|
||||
}
|
||||
|
||||
public String getToken() {
|
||||
return token;
|
||||
}
|
||||
|
||||
public void setToken(String token) {
|
||||
this.token = token == null ? null : token.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip == null ? null : ip.trim();
|
||||
}
|
||||
|
||||
public String getNofiyUrl() {
|
||||
return nofiyUrl;
|
||||
}
|
||||
|
||||
public void setNofiyUrl(String nofiyUrl) {
|
||||
this.nofiyUrl = nofiyUrl == null ? null : nofiyUrl.trim();
|
||||
}
|
||||
|
||||
public String getPublicKey() {
|
||||
return publicKey;
|
||||
}
|
||||
|
||||
public void setPublicKey(String publicKey) {
|
||||
this.publicKey = publicKey == null ? null : publicKey.trim();
|
||||
}
|
||||
|
||||
public String getPrivateKey() {
|
||||
return privateKey;
|
||||
}
|
||||
|
||||
public void setPrivateKey(String privateKey) {
|
||||
this.privateKey = privateKey == null ? null : privateKey.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,128 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntApp implements Serializable {
|
||||
private Long appId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String uploadPath;
|
||||
|
||||
private String deployPath;
|
||||
|
||||
private String backupPath;
|
||||
|
||||
private Integer port;
|
||||
|
||||
private String startScript;
|
||||
|
||||
private String deployScript;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(Long appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getUploadPath() {
|
||||
return uploadPath;
|
||||
}
|
||||
|
||||
public void setUploadPath(String uploadPath) {
|
||||
this.uploadPath = uploadPath == null ? null : uploadPath.trim();
|
||||
}
|
||||
|
||||
public String getDeployPath() {
|
||||
return deployPath;
|
||||
}
|
||||
|
||||
public void setDeployPath(String deployPath) {
|
||||
this.deployPath = deployPath == null ? null : deployPath.trim();
|
||||
}
|
||||
|
||||
public String getBackupPath() {
|
||||
return backupPath;
|
||||
}
|
||||
|
||||
public void setBackupPath(String backupPath) {
|
||||
this.backupPath = backupPath == null ? null : backupPath.trim();
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getStartScript() {
|
||||
return startScript;
|
||||
}
|
||||
|
||||
public void setStartScript(String startScript) {
|
||||
this.startScript = startScript == null ? null : startScript.trim();
|
||||
}
|
||||
|
||||
public String getDeployScript() {
|
||||
return deployScript;
|
||||
}
|
||||
|
||||
public void setDeployScript(String deployScript) {
|
||||
this.deployScript = deployScript == null ? null : deployScript.trim();
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntDatabase implements Serializable {
|
||||
private String dbId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String jdbcUrl;
|
||||
|
||||
private String userName;
|
||||
|
||||
private String pwd;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getDbId() {
|
||||
return dbId;
|
||||
}
|
||||
|
||||
public void setDbId(String dbId) {
|
||||
this.dbId = dbId == null ? null : dbId.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getJdbcUrl() {
|
||||
return jdbcUrl;
|
||||
}
|
||||
|
||||
public void setJdbcUrl(String jdbcUrl) {
|
||||
this.jdbcUrl = jdbcUrl == null ? null : jdbcUrl.trim();
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName == null ? null : userName.trim();
|
||||
}
|
||||
|
||||
public String getPwd() {
|
||||
return pwd;
|
||||
}
|
||||
|
||||
public void setPwd(String pwd) {
|
||||
this.pwd = pwd == null ? null : pwd.trim();
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntDeploy implements Serializable {
|
||||
private Long deployId;
|
||||
|
||||
private Long appId;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getDeployId() {
|
||||
return deployId;
|
||||
}
|
||||
|
||||
public void setDeployId(Long deployId) {
|
||||
this.deployId = deployId;
|
||||
}
|
||||
|
||||
public Long getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(Long appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntDeployHistory implements Serializable {
|
||||
private String historyId;
|
||||
|
||||
private String appName;
|
||||
|
||||
private Date deployDate;
|
||||
|
||||
private String deployUser;
|
||||
|
||||
private String ip;
|
||||
|
||||
private Long deployId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getHistoryId() {
|
||||
return historyId;
|
||||
}
|
||||
|
||||
public void setHistoryId(String historyId) {
|
||||
this.historyId = historyId == null ? null : historyId.trim();
|
||||
}
|
||||
|
||||
public String getAppName() {
|
||||
return appName;
|
||||
}
|
||||
|
||||
public void setAppName(String appName) {
|
||||
this.appName = appName == null ? null : appName.trim();
|
||||
}
|
||||
|
||||
public Date getDeployDate() {
|
||||
return deployDate;
|
||||
}
|
||||
|
||||
public void setDeployDate(Date deployDate) {
|
||||
this.deployDate = deployDate;
|
||||
}
|
||||
|
||||
public String getDeployUser() {
|
||||
return deployUser;
|
||||
}
|
||||
|
||||
public void setDeployUser(String deployUser) {
|
||||
this.deployUser = deployUser == null ? null : deployUser.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip == null ? null : ip.trim();
|
||||
}
|
||||
|
||||
public Long getDeployId() {
|
||||
return deployId;
|
||||
}
|
||||
|
||||
public void setDeployId(Long deployId) {
|
||||
this.deployId = deployId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class MntDeployServerKey implements Serializable {
|
||||
private Long deployId;
|
||||
|
||||
private Long serverId;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getDeployId() {
|
||||
return deployId;
|
||||
}
|
||||
|
||||
public void setDeployId(Long deployId) {
|
||||
this.deployId = deployId;
|
||||
}
|
||||
|
||||
public Long getServerId() {
|
||||
return serverId;
|
||||
}
|
||||
|
||||
public void setServerId(Long serverId) {
|
||||
this.serverId = serverId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class MntServer implements Serializable {
|
||||
private Long serverId;
|
||||
|
||||
private String account;
|
||||
|
||||
private String ip;
|
||||
|
||||
private String name;
|
||||
|
||||
private String password;
|
||||
|
||||
private Integer port;
|
||||
|
||||
private String createBy;
|
||||
|
||||
private String updateBy;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getServerId() {
|
||||
return serverId;
|
||||
}
|
||||
|
||||
public void setServerId(Long serverId) {
|
||||
this.serverId = serverId;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account == null ? null : account.trim();
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip == null ? null : ip.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password == null ? null : password.trim();
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy == null ? null : createBy.trim();
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy == null ? null : updateBy.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class OrderVo {
|
||||
private String masterId;
|
||||
private String remark;
|
||||
private String uuid;
|
||||
private Integer shopId;
|
||||
private String userId;
|
||||
private Integer merchantId;
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ShopUserDuty implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Date loginTime;
|
||||
|
||||
private Integer orderNum;
|
||||
|
||||
private BigDecimal amount;
|
||||
|
||||
private Date loginOutTime;
|
||||
|
||||
private String userName;
|
||||
|
||||
private String status;
|
||||
|
||||
private BigDecimal incomeAmount;
|
||||
|
||||
private Integer shopId;
|
||||
private Integer tokenId;
|
||||
|
||||
private BigDecimal pettyCash;
|
||||
|
||||
private BigDecimal cashAmount;
|
||||
|
||||
private BigDecimal handAmount;
|
||||
private BigDecimal returnAmount;
|
||||
|
||||
private String equipment;
|
||||
private String tradeDay;
|
||||
private String type;
|
||||
private List<ShopUserDutyDetail> detailList;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ShopUserDuty() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ShopUserDuty( Integer userId, Date loginTime, Integer orderNum,
|
||||
BigDecimal amount, String userName, String status, BigDecimal incomeAmount, Integer shopId, BigDecimal pettyCash, BigDecimal cashAmount, BigDecimal handAmount, String equipment) {
|
||||
this.userId = userId;
|
||||
this.loginTime = loginTime;
|
||||
this.orderNum = orderNum;
|
||||
this.amount = amount;
|
||||
this.userName = userName;
|
||||
this.status = status;
|
||||
this.incomeAmount = incomeAmount;
|
||||
this.shopId = shopId;
|
||||
this.pettyCash = pettyCash;
|
||||
this.cashAmount = cashAmount;
|
||||
this.handAmount = handAmount;
|
||||
this.equipment = equipment;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class ShopUserDutyDetail implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer dutyId;
|
||||
|
||||
private Integer productId;
|
||||
|
||||
private String productName;
|
||||
|
||||
private Integer skuId;
|
||||
|
||||
private String skuName;
|
||||
|
||||
private Integer num;
|
||||
|
||||
private BigDecimal amount;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getDutyId() {
|
||||
return dutyId;
|
||||
}
|
||||
|
||||
public void setDutyId(Integer dutyId) {
|
||||
this.dutyId = dutyId;
|
||||
}
|
||||
|
||||
public Integer getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Integer productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName == null ? null : productName.trim();
|
||||
}
|
||||
|
||||
public Integer getSkuId() {
|
||||
return skuId;
|
||||
}
|
||||
|
||||
public void setSkuId(Integer skuId) {
|
||||
this.skuId = skuId;
|
||||
}
|
||||
|
||||
public String getSkuName() {
|
||||
return skuName;
|
||||
}
|
||||
|
||||
public void setSkuName(String skuName) {
|
||||
this.skuName = skuName == null ? null : skuName.trim();
|
||||
}
|
||||
|
||||
public Integer getNum() {
|
||||
return num;
|
||||
}
|
||||
|
||||
public void setNum(Integer num) {
|
||||
this.num = num;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(BigDecimal amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.chaozhanggui.system.cashierservice.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class ShopUserDutyPay implements Serializable {
|
||||
private Integer id;
|
||||
|
||||
private Integer dutyId;
|
||||
|
||||
private String type;
|
||||
|
||||
private BigDecimal amount;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getDutyId() {
|
||||
return dutyId;
|
||||
}
|
||||
|
||||
public void setDutyId(Integer dutyId) {
|
||||
this.dutyId = dutyId;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user