记得上下班打卡 | git大法好,push需谨慎

Commit fce12271 authored by 胡佳晨's avatar 胡佳晨

添加 stone项目

parent e13ab1b6
......@@ -26,8 +26,8 @@ create table stone_score_items
details longtext default NULL comment '商品详情',
notice longtext default NULL comment '注意事项',
status int default 0 comment '状态[-1-删除|0-未上架|1-已上架|2-定时上架]',
start_time datetime NULLABLE COMMENT '定时上架-时间',
end_time datetime NULLABLE COMMENT '定时下架-时间',
start_time datetime NULL COMMENT '定时上架-时间',
end_time datetime NULL COMMENT '定时下架-时间',
created_at datetime ,
updated_at datetime ,
comment text
......@@ -48,7 +48,7 @@ drop table if exists stone_score_order;
create table stone_score_order
(
mid bigint unsigned auto_increment primary key,
uid varchar(64) default '' comment '用户id',
uid varchar(64) default '' comment '用户id',
user_name varchar(255) NOT NULL DEFAULT '' COMMENT '用户昵称',
user_mobile varchar(255) NOT NULL DEFAULT '' COMMENT '用户手机号',
target_title varchar(255) NOT NULL DEFAULT '' COMMENT '物品名称',
......@@ -63,8 +63,8 @@ create table stone_score_order
payment_id varchar(255) NULL DEFAULT '' COMMENT '支付的订单号',
time_pay varchar(255) NULL DEFAULT '' COMMENT '支付时间',
pay_countdown_minute int(32) NOT NULL DEFAULT 15 COMMENT '订单过期时间(分钟)',
status tinyint NOT NULL DEFAULT 0 COMMENT '订单状态[0-待付款|1-已付款|2-已关闭|3-正在退款|4-已退款|5-待关闭|6-部分退款]',
pay_status tinyint NOT NULL DEFAULT 0 COMMENT '支付状态[0-未支付|1-已支付|2-支付失败]',
status tinyint NOT NULL DEFAULT 0 COMMENT '订单状态[0-待付款|1-已付款|2-已关闭|3-正在退款|4-已退款|5-待关闭|6-部分退款]',
pay_status tinyint NOT NULL DEFAULT 0 COMMENT '支付状态[0-未支付|1-已支付|2-支付失败]',
created_at datetime ,
updated_at datetime ,
comment text
......
<?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">
<parent>
<artifactId>liquidnet-bus-api</artifactId>
<groupId>com.liquidnet</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>liquidnet-service-stone-api</artifactId>
<dependencies>
<dependency>
<groupId>com.liquidnet</groupId>
<artifactId>liquidnet-service-stone-do</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.liquidnet.service.stone.service;
/**
* <p>
* 积分物品表 服务类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface IStoneScoreItemsService {
}
package com.liquidnet.service.stone.service;
/**
* <p>
* 积分日志表 服务类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface IStoneScoreLogsService {
}
package com.liquidnet.service.stone.service;
/**
* <p>
* 积分订单表 服务类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface IStoneScoreOrderService {
}
package com.liquidnet.service.stone.service;
/**
* <p>
* 积分用户表 服务类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface IStoneScoreUserService {
}
......@@ -20,6 +20,7 @@
<module>liquidnet-service-sweet-api</module>
<module>liquidnet-service-chime-api</module>
<module>liquidnet-service-candy-api</module>
<module>liquidnet-service-stone-api</module>
</modules>
<dependencies>
<dependency>
......
liquidnet:
system:
updating:
switch: false
info:
port: 9010
context: /stone
name: liquidnet-service-stone
logfile:
path: /data/logs
name: service-stone
config: classpath:logback-spring.xml
file-max-size: 200MB
pattern-file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level: debug
mysql:
database-name: dev_ln_scene
mongodb:
sslEnabled: false
database: dev_ln_scene
adam:
url: ${liquidnet.service.adam.url}
candy:
url: ${liquidnet.service.candy.url}
liquidnet:
system:
updating:
switch: false
info:
port: 9010
context: /stone
name: liquidnet-service-stone
logfile:
path: /data/logs
name: service-stone
config: classpath:logback-spring.xml
file-max-size: 200MB
pattern-file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level: debug
mysql:
database-name: test_ln_scene
mongodb:
sslEnabled: false
database: test_ln_scene
adam:
url: ${liquidnet.service.adam.url}
candy:
url: ${liquidnet.service.candy.url}
liquidnet:
system:
updating:
switch: false
info:
port: 9010
context: /stone
name: liquidnet-service-stone
logfile:
path: /data/logs
name: service-stone
config: classpath:logback-spring.xml
file-max-size: 200MB
pattern-file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level: debug
mysql:
database-name: test_ln_scene
mongodb:
sslEnabled: false
database: test_ln_scene
adam:
url: ${liquidnet.service.adam.url}
candy:
url: ${liquidnet.service.candy.url}
\ No newline at end of file
server:
port: ${liquidnet.info.port}
tomcat:
uri-encoding: UTF-8
maxThreads: 200 #默认200
minSpareThreads: 30 #默认10
maxConnections: 12000 #默认10000
acceptCount: 5000 #默认100
processorCache: 200 #默认200
servlet:
context-path: ${liquidnet.info.context}
# -----------------------------------------------------------
knife4j:
enable: true
production: ${liquidnet.knife4j.disable}
basic:
enable: true
username: ${liquidnet.security.username}
password: ${liquidnet.security.password}
# -----------------------------------------------------------
logging:
# config: ${liquidnet.logfile.config}
file:
name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log
max-size: ${liquidnet.logfile.file-max-size}
pattern:
file: '%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %X{lnsTranceId} [%logger{96}:%line] - %msg%n'
console: '%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %X{lnsTranceId} [%logger{96}:%line] - %msg%n'
rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level:
root: info
#以下是为指定包设置日志级别
com:
liquidnet: ${liquidnet.logfile.level}
# -----------------------------------------------------------
eureka:
# client:
# register-with-eureka: true
# fetch-registry: true
# serviceUrl:
# defaultZone: http://${liquidnet.security.username}:${liquidnet.security.password}@${liquidnet.eureka.host}/eureka-server/eureka
instance:
hostname: ${spring.cloud.client.ip-address}
lease-expiration-duration-in-seconds: 15 #服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除
lease-renewal-interval-in-seconds: 5 #服务刷新时间配置,每隔这个时间会主动心跳一次
prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${spring.application.instance_id:${server.port}}
# -----------------------------------------------------------
#actuator/info
info:
app:
name: ${liquidnet.info.name}
company:
name: lightnet.io
build:
groupId: '@project.groupId@'
artifactId: '@project.artifactId@'
version: '@project.version@'
# -----------------------------------------------------------
mybatis-plus:
mapper-locations: classpath:com.liquidnet.service.order.mapper/*Mapper.xml
# -----------------------------------------------------------
spring:
application:
name: ${liquidnet.info.name}
servlet:
multipart:
max-file-size: 5MB
max-request-size: 10MB
profiles:
include: common-service #这里加载management相关公共配置
autoconfigure:
exclude:
- org.springframework.cloud.bus.BusAutoConfiguration
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
redis:
database: 15
dbs: ${liquidnet.redis.dbs}
port: ${liquidnet.redis.port}
host: ${liquidnet.redis.host}
password: ${liquidnet.redis.password}
lettuce:
pool:
max-active: 8
max-wait: -1
max-idle: 8
min-idle: 0
redisson:
singleServerConfig:
address: redis://${liquidnet.redis.host}:${liquidnet.redis.port}
password: ${liquidnet.redis.password}
clientName: null
database: 7 #选择使用哪个数据库0~15
idleConnectionTimeout: 10000
connectTimeout: 10000
timeout: 3000
retryAttempts: 3
retryInterval: 1500
subscriptionsPerConnection: 5
subscriptionConnectionMinimumIdleSize: 1
subscriptionConnectionPoolSize: 50
connectionMinimumIdleSize: 32
connectionPoolSize: 64
dnsMonitoringInterval: 5000
threads: 16
nettyThreads: 32
codec:
class: "org.redisson.codec.JsonJacksonCodec"
transportMode: "NIO"
data:
mongodb:
uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}/?authSource=admin&maxPoolSize=2000&waitQueueMultiple=100
sslEnabled: ${liquidnet.mongodb.sslEnabled}
database: ${liquidnet.mongodb.database}
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth:
exclude-url-pattern:
- ${liquidnet.info.context}/doc.html
- ${liquidnet.info.context}/webjars/**
- ${liquidnet.info.context}/swagger-resources/**
- ${liquidnet.info.context}/v2/api-docs*
- ${liquidnet.info.context}/station/login
- ${liquidnet.info.context}/station/login/sms
# -
- ${liquidnet.info.context}/partner/buyNotice/**
- ${liquidnet.info.context}/partner/checkUser/**
- ${liquidnet.info.context}/partner/checkUser/performance/**
- ${liquidnet.info.context}/partner/ticket/**
- ${liquidnet.info.context}/partner/times/**
- ${liquidnet.info.context}/partner/performance/**
# banner
- ${liquidnet.info.context}/banners/**
- ${liquidnet.info.context}/order/checkOrderTime
- ${liquidnet.info.context}/order/syncOrder
# 退款回掉
- ${liquidnet.info.context}/refund/callback
# 演出
- ${liquidnet.info.context}/performance/localList
- ${liquidnet.info.context}/performance/noticeList
- ${liquidnet.info.context}/performance/roadList/**
- ${liquidnet.info.context}/performance/recommendList
- ${liquidnet.info.context}/performance/exclusiveList
- ${liquidnet.info.context}/performance/search
- ${liquidnet.info.context}/performance/list
- ${liquidnet.info.context}/performance/calendar
- ${liquidnet.info.context}/performance/calendarPerformances
- ${liquidnet.info.context}/performance/*
# -----------------------------------------------------------
# -----------------------------------------------------------
# -----------------------------------------------------------
\ No newline at end of file
<?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">
<parent>
<artifactId>liquidnet-bus-do</artifactId>
<groupId>com.liquidnet</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>liquidnet-service-stone-do</artifactId>
</project>
\ No newline at end of file
package com.liquidnet.service.stone.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 积分物品表
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class StoneScoreItems implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 目标id
*/
private String targetId;
/**
* 目标类型[1-券|1x-商品维度|2x-演出维度]
*/
private Integer type;
/**
* 展示图
*/
private String img;
/**
* 所需积分
*/
private BigDecimal score;
/**
* 所需金额
*/
private BigDecimal price;
/**
* 总库存[-999-不限]
*/
private Integer generalTotal;
/**
* 剩余库存
*/
private Integer generalSurplus;
/**
* 限购数量[0-不限]
*/
private Integer limitCount;
/**
* 商品详情
*/
private String details;
/**
* 注意事项
*/
private String notice;
/**
* 状态[-1-删除|0-未上架|1-已上架|2-定时上架]
*/
private Integer status;
/**
* 定时上架-时间
*/
private LocalDateTime startTime;
/**
* 定时下架-时间
*/
private LocalDateTime endTime;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
private String comment;
}
package com.liquidnet.service.stone.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 积分日志表
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class StoneScoreLogs implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 用户id
*/
private String uid;
/**
* 积分
*/
private BigDecimal score;
/**
* 积分动态明细
*/
private String content;
/**
* 变更原因
*/
private String reason;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
private String comment;
}
package com.liquidnet.service.stone.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 积分订单表
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class StoneScoreOrder implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 用户id
*/
private String uid;
/**
* 用户昵称
*/
private String userName;
/**
* 用户手机号
*/
private String userMobile;
/**
* 物品名称
*/
private String targetTitle;
/**
* 订单号
*/
private String orderCode;
/**
* 数量
*/
private Integer number;
/**
* 单价
*/
private BigDecimal price;
/**
* 积分
*/
private BigDecimal score;
/**
* 快递价格
*/
private BigDecimal priceExpress;
/**
* 实付价格
*/
private BigDecimal priceActual;
/**
* 选择支付方式[SCORE-积分]
*/
private String payType;
/**
* 实际支付方式[SCORE-积分]
*/
private String paymentType;
/**
* 支付的订单号
*/
private String paymentId;
/**
* 支付时间
*/
private String timePay;
/**
* 订单过期时间(分钟)
*/
private Integer payCountdownMinute;
/**
* 订单状态[0-待付款|1-已付款|2-已关闭|3-正在退款|4-已退款|5-待关闭|6-部分退款]
*/
private Integer status;
/**
* 支付状态[0-未支付|1-已支付|2-支付失败]
*/
private Integer payStatus;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
private String comment;
}
package com.liquidnet.service.stone.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 积分用户表
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class StoneScoreUser implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 用户id
*/
private String uid;
/**
* 状态[0-冻结|1-正常]
*/
private Integer status;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
private String comment;
}
package com.liquidnet.service.stone.mapper;
import com.liquidnet.service.stone.entity.StoneScoreItems;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 积分物品表 Mapper 接口
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface StoneScoreItemsMapper extends BaseMapper<StoneScoreItems> {
}
package com.liquidnet.service.stone.mapper;
import com.liquidnet.service.stone.entity.StoneScoreLogs;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 积分日志表 Mapper 接口
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface StoneScoreLogsMapper extends BaseMapper<StoneScoreLogs> {
}
package com.liquidnet.service.stone.mapper;
import com.liquidnet.service.stone.entity.StoneScoreOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 积分订单表 Mapper 接口
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface StoneScoreOrderMapper extends BaseMapper<StoneScoreOrder> {
}
package com.liquidnet.service.stone.mapper;
import com.liquidnet.service.stone.entity.StoneScoreUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 积分用户表 Mapper 接口
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
public interface StoneScoreUserMapper extends BaseMapper<StoneScoreUser> {
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.service.stone.mapper.StoneScoreItemsMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.service.stone.mapper.StoneScoreLogsMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.service.stone.mapper.StoneScoreOrderMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.service.stone.mapper.StoneScoreUserMapper">
</mapper>
<?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">
<parent>
<artifactId>liquidnet-service-stone</artifactId>
<groupId>com.liquidnet</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>liquidnet-service-stone-impl</artifactId>
<dependencies>
<dependency>
<groupId>com.liquidnet</groupId>
<artifactId>liquidnet-common-cache-redis</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.liquidnet</groupId>
<artifactId>liquidnet-common-cache-redisson</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>com.liquidnet</groupId>
<artifactId>liquidnet-service-stone-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package com.liquidnet.service.stone;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;
import java.net.InetAddress;
import java.util.Arrays;
@Slf4j
@SpringBootApplication(scanBasePackages = {"com.liquidnet"})
public class ServiceStoneApplication implements CommandLineRunner {
@Autowired
private Environment environment;
public static void main(String[] args) {
SpringApplication.run(ServiceStoneApplication.class, args);
}
@Override
public void run(String... strings) {
try {
log.info("\n----------------------------------------------------------\n\t" +
"Application '{}' is running! Access URLs:\n\t" +
"Local: \t\thttp://127.0.0.1:{}\n\t" +
"External: \thttp://{}:{}{}/doc.html\n\t" +
"Profile(s): \t{}\n----------------------------------------------------------",
environment.getProperty("spring.application.name"),
environment.getProperty("server.port"),
InetAddress.getLocalHost().getHostAddress(),
environment.getProperty("server.port"),
environment.getProperty("server.servlet.context-path"),
Arrays.toString(environment.getActiveProfiles()));
} catch (Exception e) {
e.printStackTrace();
}
}
}
package com.liquidnet.service.stone.service.impl;
import com.liquidnet.service.stone.service.IStoneScoreItemsService;
import org.springframework.stereotype.Service;
/**
* <p>
* 积分物品表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Service
public class StoneScoreItemsServiceImpl implements IStoneScoreItemsService {
}
package com.liquidnet.service.stone.service.impl;
import com.liquidnet.service.stone.service.IStoneScoreLogsService;
import org.springframework.stereotype.Service;
/**
* <p>
* 积分日志表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Service
public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService {
}
package com.liquidnet.service.stone.service.impl;
import com.liquidnet.service.stone.service.IStoneScoreOrderService;
import org.springframework.stereotype.Service;
/**
* <p>
* 积分订单表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Service
public class StoneScoreOrderServiceImpl implements IStoneScoreOrderService {
}
package com.liquidnet.service.stone.service.impl;
import com.liquidnet.service.stone.service.IStoneScoreUserService;
import org.springframework.stereotype.Service;
/**
* <p>
* 积分用户表 服务实现类
* </p>
*
* @author liquidnet
* @since 2021-10-19
*/
@Service
public class StoneScoreUserServiceImpl implements IStoneScoreUserService {
}
# begin-dev-这里是配置信息基本值
liquidnet:
cloudConfig:
profile: dev
security:
username: user
password: user123
eureka:
host: 127.0.0.1:7001
# end-dev-这里是配置信息基本值
spring:
profiles:
include: service-stone
\ No newline at end of file
# begin-dev-这里是配置信息基本值
liquidnet:
cloudConfig:
profile: k8s-test
security:
username: user
password: user123
eureka:
#host: 192.168.216.81:7001
instance:
prefer-ip-address: true
host: eureka-test-0.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka,eureka-test-1.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka,eureka-test-2.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka
# end-dev-这里是配置信息基本值
spring:
profiles:
include: service-stone
# begin-dev-这里是配置信息基本值
liquidnet:
cloudConfig:
profile: prod
security:
username: user
password: user123
eureka:
host: 172.17.207.189:7001
# end-dev-这里是配置信息基本值
spring:
profiles:
include: service-stone
\ No newline at end of file
#eurekaServer配置
eureka:
client:
register-with-eureka: true
fetch-registry: true
serviceUrl:
defaultZone: http://${liquidnet.security.username}:${liquidnet.security.password}@${liquidnet.eureka.host}/eureka-server/eureka
#configServer配置
spring:
cloud:
config:
# uri: http://39.105.38.151:7002/support-config
# uri: http://39.106.122.201:7002/support-config
# uri: http://127.0.0.1:7002/support-config
profile: ${liquidnet.cloudConfig.profile}
name: ${spring.application.name} #默认为spring.application.name
discovery:
enabled: true
service-id: liquidnet-support-config
# begin-dev-这里是配置信息基本值
liquidnet:
cloudConfig:
profile: test
security:
username: user
password: user123
eureka:
#host: 172.17.207.177:7001
instance:
prefer-ip-address: true
host: eureka-test-0.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka,eureka-test-1.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka,eureka-test-2.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka
# end-dev-这里是配置信息基本值
spring:
profiles:
include: service-stone
spring:
application:
name: liquidnet-service-stone
profiles:
active: dev
server:
tomcat:
max-threads: 2000
min-spare-threads: 2000
max-connections: 20000
connection-timeout: 5000
<?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">
<parent>
<artifactId>liquidnet-bus-service</artifactId>
<groupId>com.liquidnet</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>liquidnet-service-stone</artifactId>
<packaging>pom</packaging>
<modules>
<module>liquidnet-service-stone-impl</module>
</modules>
<dependencies>
<dependency>
<groupId>com.liquidnet</groupId>
<artifactId>liquidnet-common-swagger</artifactId>
</dependency>
<dependency>
<groupId>com.liquidnet</groupId>
<artifactId>liquidnet-common-web</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -94,15 +94,9 @@ public class MybatisPlusCodeGenerator {
dsc.setPassword("zhengzai!mYT");
String resourcePath = "/Users/hujiachen/Downloads/tmp";
String directory = "com.liquidnet.service.sweet";
String[] dbTableArray = new String[]{
"sweet_manual_mdsk",
"sweet_manual_sort_mdsk",
"sweet_richtext_mdsk",
"sweet_manual_artists_mdsk",
"sweet_manual_notify_mdsk",
"sweet_manual_shop_mdsk",
"sweet_user_relation_mdsk"};
String directory = "com.liquidnet.service.stone";
String[] dbTableArray = new String[]{"stone_score_logs", "stone_score_items", "stone_score_user","stone_score_order"};
doGenerator(resourcePath, dsc, directory, dbTableArray);
}
......
......@@ -40,6 +40,8 @@
<module>liquidnet-service-sweet</module>
<module>liquidnet-service-chime</module>
<module>liquidnet-service-candy</module>
<module>liquidnet-service-stone</module>
<module>liquidnet-service-stone</module>
<!-- <module>liquidnet-service-example</module>-->
<!-- <module>liquidnet-service-sequence</module>-->
<!-- <module>liquidnet-service-account</module>-->
......
......@@ -16,6 +16,7 @@
<module>liquidnet-bus-feign</module>
<module>liquidnet-bus-service</module>
<module>liquidnet-bus-support</module>
<module>liquidnet-bus-do/liquident-service-stone-do</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment