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

Commit 789624c1 authored by jiangxiulong's avatar jiangxiulong

Merge remote-tracking branch 'origin/dev' into dev

parents ece269e4 42698d14
...@@ -17,7 +17,7 @@ public class AdamRealInfoVo implements Serializable, Cloneable { ...@@ -17,7 +17,7 @@ public class AdamRealInfoVo implements Serializable, Cloneable {
@ApiModelProperty(position = 12, value = "证件号[50]") @ApiModelProperty(position = 12, value = "证件号[50]")
private String idCard; private String idCard;
@ApiModelProperty(position = 13, value = "类型[1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证]") @ApiModelProperty(position = 13, value = "类型[1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证]")
private String type; private Integer type;
@ApiModelProperty(position = 14, value = "状态:1-正常") @ApiModelProperty(position = 14, value = "状态:1-正常")
private Integer state; private Integer state;
......
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
# end-dev-这里是配置信息基本值 # end-dev-这里是配置信息基本值
spring: spring:
......
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
# end-dev-这里是配置信息基本值 # end-dev-这里是配置信息基本值
spring: spring:
......
...@@ -59,4 +59,9 @@ liquidnet: ...@@ -59,4 +59,9 @@ liquidnet:
phpMallUrl: https://devmall.zhengzai.tv phpMallUrl: https://devmall.zhengzai.tv
phpMerchantApiUrl: https://devmerchantapi.zhengzai.tv phpMerchantApiUrl: https://devmerchantapi.zhengzai.tv
phpPassportUrl: https://devpassport.zhengzai.tv phpPassportUrl: https://devpassport.zhengzai.tv
shunfeng:
url: "https://butler-dev-ms.sf-express.com"
sk: 21e9a70f677a2bf29dfa2b3bead4f018
appid: 557104628450889728
custid: 7551234567
#application-dev-end #application-dev-end
\ No newline at end of file
...@@ -63,3 +63,8 @@ liquidnet: ...@@ -63,3 +63,8 @@ liquidnet:
phpMallUrl: https://testmall.zhengzai.tv phpMallUrl: https://testmall.zhengzai.tv
phpMerchantApiUrl: https://testmerchantapi.zhengzai.tv phpMerchantApiUrl: https://testmerchantapi.zhengzai.tv
phpPassportUrl: https://testpassport.zhengzai.tv phpPassportUrl: https://testpassport.zhengzai.tv
shunfeng:
url: "https://butler-dev-ms.sf-express.com"
sk: 21e9a70f677a2bf29dfa2b3bead4f018
appid: 557104628450889728
custid: 7551234567
\ No newline at end of file
...@@ -40,10 +40,10 @@ liquidnet: ...@@ -40,10 +40,10 @@ liquidnet:
accessKeyId: LTAI4FxrURzMvvu9reFgwY5o accessKeyId: LTAI4FxrURzMvvu9reFgwY5o
accessKeySecret: Ym5tfAxOf2zX20MgjikLI3Wz3tlwVV accessKeySecret: Ym5tfAxOf2zX20MgjikLI3Wz3tlwVV
shunfeng: shunfeng:
url: "https://butler-dev-ms.sf-express.com" url: ${liquidnet.client.admin.shunfeng.url}
sk: 21e9a70f677a2bf29dfa2b3bead4f018 sk: ${liquidnet.client.admin.shunfeng.sk}
appid: 557104628450889728 appid: ${liquidnet.client.admin.shunfeng.appid}
custid: 7551234567 custid: ${liquidnet.client.admin.shunfeng.custid}
jCompany: 北京正在映画互联网有限公司 jCompany: 北京正在映画互联网有限公司
jContact: 姜秀龙 jContact: 姜秀龙
jMobile: 15811009011 jMobile: 15811009011
......
...@@ -32,7 +32,7 @@ public class AdamRealName implements Serializable { ...@@ -32,7 +32,7 @@ public class AdamRealName implements Serializable {
/** /**
* 1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证 * 1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证
*/ */
private String type; private Integer type;
/** /**
* 真实姓名 * 真实姓名
......
...@@ -34,17 +34,18 @@ ...@@ -34,17 +34,18 @@
<!-- 第三方 验票员未配置 演出 --> <!-- 第三方 验票员未配置 演出 -->
<select id="unChildPerformanceList" parameterType="java.util.Map" resultMap="childPerformanceDaoResult"> <select id="unChildPerformanceList" parameterType="java.util.Map" resultMap="childPerformanceDaoResult">
SELECT p.performances_id, SELECT p.performances_id,
p.title, p.title,
p.time_start, p.time_start,
p.time_end p.time_end
DATE_SUB(p.time_start,INTERVAL -3 DAY) as 'can_dwon_time'
FROM kylin_performances AS p FROM kylin_performances AS p
LEFT JOIN kylin_performance_relations AS pr ON pr.performance_id = p.performances_id LEFT JOIN kylin_performance_relations AS pr ON pr.performance_id = p.performances_id
WHERE p.performances_id NOT IN ( WHERE p.performances_id NOT IN (
SELECT performance_id SELECT performance_id
FROM kylin_check_user_performances FROM kylin_check_user_performances
WHERE check_user_id = #{checkUserId} WHERE check_user_id = #{checkUserId}
) )
AND pr.merchant_id = #{merchantId} AND pr.merchant_id = #{merchantId}
<if test="name!=''"> <if test="name!=''">
AND title LIKE concat('%', #{name}, '%') AND title LIKE concat('%', #{name}, '%')
</if> </if>
......
...@@ -83,13 +83,13 @@ drop table if exists adam_real_name; ...@@ -83,13 +83,13 @@ drop table if exists adam_real_name;
create table adam_real_name create table adam_real_name
( (
mid bigint unsigned auto_increment primary key, mid bigint unsigned auto_increment primary key,
real_name_id varchar(64) not null, real_name_id varchar(64) not null,
uid varchar(64) not null, uid varchar(64) not null,
type enum ('1','2','3','4','5') not null default '1' comment '1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证', type tinyint not null comment '1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证',
name varchar(60) not null comment '真实姓名', name varchar(60) not null comment '真实姓名',
id_card varchar(30) not null comment '证件号码', id_card varchar(30) not null comment '证件号码',
state tinyint not null comment '0-INIT,1-NORMAL,2-INVALID', state tinyint not null comment '0-INIT,1-NORMAL,2-INVALID',
created_at datetime(3) not null, created_at datetime(3) not null,
updated_at datetime(3), updated_at datetime(3),
comment text comment text
) engine = InnoDB comment '实名信息'; ) engine = InnoDB comment '实名信息';
......
...@@ -395,7 +395,7 @@ public class AdamUserServiceImpl extends ServiceImpl<AdamUserMapper, AdamUser> i ...@@ -395,7 +395,7 @@ public class AdamUserServiceImpl extends ServiceImpl<AdamUserMapper, AdamUser> i
AdamRealName realName = new AdamRealName(); AdamRealName realName = new AdamRealName();
realName.setRealNameId(IDGenerator.nextSnowId() + ""); realName.setRealNameId(IDGenerator.nextSnowId() + "");
realName.setUid(uid); realName.setUid(uid);
realName.setType("1"); realName.setType(1);
realName.setName(name); realName.setName(name);
realName.setIdCard(idCard); realName.setIdCard(idCard);
realName.setState(1); realName.setState(1);
......
...@@ -90,6 +90,10 @@ public class DMEntersProcessor extends DataMigrationProcessorService { ...@@ -90,6 +90,10 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
entersList.add(enters); entersList.add(enters);
vos.add(vo); vos.add(vo);
if (enters.getType() == 1) {
adamRdmService.setCertification(1, enters.getIdCard(), enters.getName());
}
} }
if (entersList.size() == 500) { if (entersList.size() == 500) {
tl += entersList.size(); tl += entersList.size();
......
...@@ -244,7 +244,12 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService { ...@@ -244,7 +244,12 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
memberCode.setUseAt(row.getLocalDateTime(12)); memberCode.setUseAt(row.getLocalDateTime(12));
memberCodeList.add(memberCode); memberCodeList.add(memberCode);
vos.add(AdamMemberCodeVo.getNew().copy(memberCode)); AdamMemberCodeVo vo = AdamMemberCodeVo.getNew().copy(memberCode);
vos.add(vo);
if (memberCode.getState() == 0) {
adamRdmService.setMemberCodeVoByCode(memberCode.getCode(), vo);
}
// } // }
if (memberCodeList.size() == 500) { if (memberCodeList.size() == 500) {
tl += memberCodeList.size(); tl += memberCodeList.size();
......
...@@ -78,7 +78,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService { ...@@ -78,7 +78,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
AdamRealName realName = new AdamRealName(); AdamRealName realName = new AdamRealName();
realName.setRealNameId(row.getString(1)); realName.setRealNameId(row.getString(1));
realName.setUid(uid); realName.setUid(uid);
realName.setType("1"); realName.setType(1);
realName.setName(row.getString(3)); realName.setName(row.getString(3));
realName.setIdCard(row.getString(4)); realName.setIdCard(row.getString(4));
realName.setState(1); realName.setState(1);
...@@ -87,13 +87,15 @@ public class DMRealNameProcessor extends DataMigrationProcessorService { ...@@ -87,13 +87,15 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
AdamRealInfoVo vo = AdamRealInfoVo.getNew(); AdamRealInfoVo vo = AdamRealInfoVo.getNew();
vo.setUid(uid); vo.setUid(uid);
vo.setType(realName.getType()); vo.setType(1);
vo.setName(realName.getName()); vo.setName(realName.getName());
vo.setIdCard(realName.getIdCard()); vo.setIdCard(realName.getIdCard());
vo.setState(1); vo.setState(1);
realNameList.add(realName); realNameList.add(realName);
vos.add(vo); vos.add(vo);
adamRdmService.setCertification(1, realName.getIdCard(), realName.getName());
} }
if (realNameList.size() == 500) { if (realNameList.size() == 500) {
tl += realNameList.size(); tl += realNameList.size();
......
...@@ -22,6 +22,7 @@ import java.sql.Connection; ...@@ -22,6 +22,7 @@ import java.sql.Connection;
import java.sql.DriverManager; import java.sql.DriverManager;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Collections;
@Slf4j @Slf4j
@Service @Service
...@@ -84,6 +85,8 @@ public class DMTracesInfoProcessor extends DataMigrationProcessorService { ...@@ -84,6 +85,8 @@ public class DMTracesInfoProcessor extends DataMigrationProcessorService {
AdamMemberVo vo = AdamMemberVo.getNew().copy(o); AdamMemberVo vo = AdamMemberVo.getNew().copy(o);
adamRdmService.setMemberVoByMemberId(vo.getMemberId(), vo);
memberMapper.insert(o); memberMapper.insert(o);
mongoTemplate.insert(vo, AdamMemberVo.class.getSimpleName()); mongoTemplate.insert(vo, AdamMemberVo.class.getSimpleName());
...@@ -124,6 +127,8 @@ public class DMTracesInfoProcessor extends DataMigrationProcessorService { ...@@ -124,6 +127,8 @@ public class DMTracesInfoProcessor extends DataMigrationProcessorService {
AdamMemberPriceVo vo = AdamMemberPriceVo.getNew().copy(o); AdamMemberPriceVo vo = AdamMemberPriceVo.getNew().copy(o);
adamRdmService.setMemberPriceVoByMemberId(vo.getMemberId(), Collections.singletonList(vo));
memberPriceMapper.insert(o); memberPriceMapper.insert(o);
mongoTemplate.insert(vo, AdamMemberPriceVo.class.getSimpleName()); mongoTemplate.insert(vo, AdamMemberPriceVo.class.getSimpleName());
......
...@@ -95,6 +95,8 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService { ...@@ -95,6 +95,8 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
userMemberList.add(userMember); userMemberList.add(userMember);
vos.add(vo); vos.add(vo);
adamRdmService.setUserMemberVoByUid(uid, vo);
} }
if (userMemberList.size() == 500) { if (userMemberList.size() == 500) {
tl += userMemberList.size(); tl += userMemberList.size();
......
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
# end-prod-这里是配置信息基本值 # end-prod-这里是配置信息基本值
spring: spring:
......
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
# end-prod-这里是配置信息基本值 # end-prod-这里是配置信息基本值
spring: spring:
......
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
# end-dev-这里是配置信息基本值 # end-dev-这里是配置信息基本值
spring: spring:
......
...@@ -117,6 +117,10 @@ public class MongoVoUtils { ...@@ -117,6 +117,10 @@ public class MongoVoUtils {
if (kylinTicketVo.getIsExclusive() == 1) { if (kylinTicketVo.getIsExclusive() == 1) {
isExclusive = 1; isExclusive = 1;
} }
if (isAdvance == 0 && isDiscount == 0 && isExclusive == 0) {
isMember = 0;
}
} }
if (kylinTicketVo.getIsLackRegister() == 1) { if (kylinTicketVo.getIsLackRegister() == 1) {
isLackRegister = 1; isLackRegister = 1;
...@@ -141,12 +145,12 @@ public class MongoVoUtils { ...@@ -141,12 +145,12 @@ public class MongoVoUtils {
} }
// if(ticketList.size()>0) { // if(ticketList.size()>0) {
KylinTicketTimesVo kylinTicketTimesVo = new KylinTicketTimesVo(); KylinTicketTimesVo kylinTicketTimesVo = new KylinTicketTimesVo();
kylinTicketTimesVo.setTicketTimes(tt1); kylinTicketTimesVo.setTicketTimes(tt1);
kylinTicketTimesVo.setPerformanceId(times.getPerformanceId()); kylinTicketTimesVo.setPerformanceId(times.getPerformanceId());
kylinTicketTimesVo.setTimeId(times.getTimesId()); kylinTicketTimesVo.setTimeId(times.getTimesId());
kylinTicketTimesVo.setTicketList(ticketList); kylinTicketTimesVo.setTicketList(ticketList);
timeList.add(kylinTicketTimesVo); timeList.add(kylinTicketTimesVo);
// } // }
} }
...@@ -154,7 +158,7 @@ public class MongoVoUtils { ...@@ -154,7 +158,7 @@ public class MongoVoUtils {
voData.setPerformanceStatus(p2); voData.setPerformanceStatus(p2);
voData.setPerformanceRelations(p3); voData.setPerformanceRelations(p3);
voData.setFieldsData(fields, cityName); voData.setFieldsData(fields, cityName);
voData.setTimePriceVipAndLack(isLackRegister, isMember, isExclusive, price, stopSellTime, sellMemberTime,sellTime, isAdvance, isDiscount, payCountdownMinute); voData.setTimePriceVipAndLack(isLackRegister, isMember, isExclusive, price, stopSellTime, sellMemberTime, sellTime, isAdvance, isDiscount, payCountdownMinute);
voData.setTicketTimeList(timeList); voData.setTicketTimeList(timeList);
voData.setAppStatus(p2.getStatus()); voData.setAppStatus(p2.getStatus());
return voData; return voData;
...@@ -181,7 +185,7 @@ public class MongoVoUtils { ...@@ -181,7 +185,7 @@ public class MongoVoUtils {
} }
BeanUtils.copyProperties(data, voItem); BeanUtils.copyProperties(data, voItem);
List<KylinOrderListVo> redisData = dataUtils.getOrderList(userId); List<KylinOrderListVo> redisData = dataUtils.getOrderList(userId);
if(type == 1) { if (type == 1) {
redisVo.add(voItem); redisVo.add(voItem);
if (redisData.size() > 0) { if (redisData.size() > 0) {
if (redisData.get(0).getOrderTicketsId().equals(orderId)) { if (redisData.get(0).getOrderTicketsId().equals(orderId)) {
......
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
# end-dev-这里是配置信息基本值 # end-dev-这里是配置信息基本值
spring: spring:
......
...@@ -11,7 +11,7 @@ liquidnet: ...@@ -11,7 +11,7 @@ liquidnet:
path: /data/logs path: /data/logs
name: support-config name: support-config
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
rabbitmq: rabbitmq:
host: 127.0.0.1 host: 127.0.0.1
port: 5672 port: 5672
......
...@@ -23,7 +23,7 @@ spring: ...@@ -23,7 +23,7 @@ spring:
eureka: eureka:
instance: instance:
hostname: 172.17.192.65 hostname: 172.17.207.189
preferIpAddress: true preferIpAddress: true
health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info
...@@ -38,7 +38,7 @@ eureka: ...@@ -38,7 +38,7 @@ eureka:
register-with-eureka: true #禁止自己当做服务注册 register-with-eureka: true #禁止自己当做服务注册
fetch-registry: true #屏蔽注册信息 fetch-registry: true #屏蔽注册信息
serviceUrl: serviceUrl:
defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@172.17.196.19:7001${server.servlet.context-path}/eureka defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@172.17.207.189:7001${server.servlet.context-path}/eureka
# instance: # instance:
# prefer-ip-address: true # prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port} # instance-id: ${spring.application.name}:${server.port}
......
liquidnet:
logfile:
path: /data/logs
name: support-eureka
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
server:
port: 7001
servlet:
context-path: /eureka-server
spring:
application:
name: liquidnet-support-eureka
security:
user:
name: user
password: user123
eureka:
instance:
hostname: 172.17.196.19
preferIpAddress: true
health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info
home-page-url: http://localhost:${server.port}${server.servlet.context-path}
metadata-map:
configPath: ${server.servlet.context-path}
management.context-path: ${server.servlet.context-path}
server:
enable-self-preservation: false # 设为false,关闭自我保护 #自我保护设置 解决Eureka Server不踢出已关停的节点的问题,同时客户端也需要配置
eviction-interval-timer-in-ms: 4000 # 清理间隔(单位毫秒,默认是60*1000)
client:
register-with-eureka: true #禁止自己当做服务注册
fetch-registry: true #屏蔽注册信息
serviceUrl:
defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@172.17.192.65:7001${server.servlet.context-path}/eureka
# instance:
# prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port}
# hostname: localhost
logging:
file:
name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log
max-size: 200MB
pattern:
file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%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}
\ No newline at end of file
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.192.65:7001 host: 172.17.207.189:7001
# end-prod-这里是配置信息基本值 # end-prod-这里是配置信息基本值
spring: spring:
......
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