feat():完善内部新增功能接口
parent
9a1a0be010
commit
f4254900ae
|
@ -0,0 +1,23 @@
|
|||
#执行一些必备的条件
|
||||
# |-home
|
||||
# |- app.jar -启动jar包
|
||||
# |- logs -日志文件
|
||||
# |- uploadPath -上传路径
|
||||
|
||||
#指定构建镜像的起始镜像
|
||||
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
|
||||
|
||||
#定义时区参数
|
||||
# 设置环境变量TZ
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
#挂载工作目录
|
||||
VOLUME ["/home/logs/cloud-market"]
|
||||
|
||||
#拷贝执行jar包文件
|
||||
COPY ./cloud-market-server/target/cloud-market.jar /home/app.jar
|
||||
|
||||
#构建启动命令
|
||||
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"]
|
||||
CMD ["/home/app.jar"]
|
|
@ -37,7 +37,7 @@ public class InsideUseInterfaceServiceImpl extends ServiceImpl<InsideUseInterfac
|
|||
Customer customer = new Customer();
|
||||
//从身份证中截取出出生日期
|
||||
if (customerAddReq.getIdCard().length()!=18){
|
||||
|
||||
throw new RuntimeException();
|
||||
}
|
||||
String birthday = customerAddReq.getIdCard().substring(6, 14);
|
||||
String birthday1=birthday.substring(0, 4) + '-' + birthday.substring(4, 6) + '-' + birthday.substring(6);
|
||||
|
|
Loading…
Reference in New Issue