Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
4918f6fb
Commit
4918f6fb
authored
Dec 29, 2020
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一人一码订单调整(部分)
parent
a81ae18b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
1362 additions
and
32 deletions
+1362
-32
apply-net/src/main/resources/application-prod.yml
+2
-2
apply-net/src/main/resources/application.yml
+2
-2
common/src/main/java/com/winsun/bean/Page.java
+266
-0
common/src/main/java/com/winsun/mapper/Basemapper.java
+0
-0
common/src/main/java/com/winsun/mapper/OrderMapper.java
+17
-0
common/src/main/java/com/winsun/utils/Is.java
+427
-0
core-service/src/main/resources/application-prod.yml
+2
-2
core-service/src/main/resources/application.yml
+2
-2
gateway/src/main/resources/application-prod.yml
+4
-2
gateway/src/main/resources/application.yml
+4
-2
new-user/src/main/resources/application-prod.yml
+2
-2
new-user/src/main/resources/application.yml
+2
-2
old-user/src/main/resources/application-prod.yml
+2
-2
old-user/src/main/resources/application.yml
+2
-2
renewal-user/src/main/resources/application-prod.yml
+2
-2
renewal-user/src/main/resources/application.yml
+2
-2
service-manager/src/main/java/com/winsun/controller/OrderController.java
+0
-0
service-manager/src/main/java/com/winsun/utils/Constant.java
+104
-0
service-manager/src/main/java/com/winsun/utils/Is.java
+427
-0
service-manager/src/main/java/com/winsun/utils/Md5.java
+70
-0
service-manager/src/main/resources/application-prod.yml
+2
-2
service-manager/src/main/resources/application.yml
+2
-2
service-manager/src/main/resources/txtfiledetail.properties
+15
-0
task/src/main/resources/application-prod.yml
+2
-2
task/src/main/resources/application.yml
+2
-2
No files found.
apply-net/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -129,8 +129,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
apply-net/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -129,8 +129,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
common/src/main/java/com/winsun/bean/Page.java
0 → 100644
View file @
4918f6fb
package
com
.
winsun
.
bean
;
import
com.google.common.collect.Lists
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.List
;
/**
*
*
* 注意所有序号从1开始.
*
* @param <T> Page中记录的类型.
*
* @author
*/
public
class
Page
<
T
>
{
//-- 公共变量 --//
public
static
final
String
ASC
=
"asc"
;
public
static
final
String
DESC
=
"desc"
;
public
static
final
int
NON_PAGE
=
0
;
//-- 分页参数 --//
protected
int
pageNo
=
1
;
protected
int
pageSize
=
-
1
;
protected
String
orderBy
=
null
;
protected
String
order
=
null
;
protected
boolean
autoCount
=
true
;
//-- 返回结果 --//
protected
List
<
T
>
result
=
Lists
.
newArrayList
();
protected
long
totalCount
=
-
1
;
//-- 构造函数 --//
public
Page
()
{
this
.
pageSize
=
10
;
}
public
Page
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
//-- 分页参数访问函数 --//
/**
* 获得当前页的页号,序号从1开始,默认为1.
*/
public
int
getPageNo
()
{
return
pageNo
;
}
/**
* 设置当前页的页号,序号从1开始,低于1时自动调整为1.
*/
public
void
setPageNo
(
final
int
pageNo
)
{
this
.
pageNo
=
pageNo
;
if
(
pageNo
<
1
)
{
this
.
pageNo
=
1
;
}
}
/**
* 返回Page对象自身的setPageNo函数,可用于连续设置。
*/
public
Page
<
T
>
pageNo
(
final
int
thePageNo
)
{
setPageNo
(
thePageNo
);
return
this
;
}
/**
* 获得每页的记录数量, 默认为-1.
*/
public
int
getPageSize
()
{
return
pageSize
;
}
/**
* 设置每页的记录数量.
*/
public
void
setPageSize
(
final
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
/**
* 返回Page对象自身的setPageSize函数,可用于连续设置。
*/
public
Page
<
T
>
pageSize
(
final
int
thePageSize
)
{
setPageSize
(
thePageSize
);
return
this
;
}
/**
* 根据pageNo和pageSize计算当前页第一条记录在总结果集中的位置,序号从1开始.
*/
public
int
getFirst
()
{
return
((
pageNo
-
1
)
*
pageSize
)
+
1
;
}
/**
* 获得排序字段,无默认值. 多个排序字段时用','分隔.
*/
public
String
getOrderBy
()
{
return
orderBy
;
}
/**
* 设置排序字段,多个排序字段时用','分隔.
*/
public
void
setOrderBy
(
final
String
orderBy
)
{
this
.
orderBy
=
orderBy
;
}
/**
* 返回Page对象自身的setOrderBy函数,可用于连续设置。
*/
public
Page
<
T
>
orderBy
(
final
String
theOrderBy
)
{
setOrderBy
(
theOrderBy
);
return
this
;
}
/**
* 获得排序方向, 无默认值.
*/
public
String
getOrder
()
{
return
order
;
}
/**
* 设置排序方式向.
*
* @param order 可选值为desc或asc,多个排序字段时用','分隔.
*/
public
void
setOrder
(
final
String
order
)
{
String
lowcaseOrder
=
StringUtils
.
lowerCase
(
order
);
//检查order字符串的合法值
String
[]
orders
=
StringUtils
.
split
(
lowcaseOrder
,
','
);
for
(
String
orderStr
:
orders
)
{
if
(!
StringUtils
.
equals
(
DESC
,
orderStr
)
&&
!
StringUtils
.
equals
(
ASC
,
orderStr
))
{
throw
new
IllegalArgumentException
(
"排序方向"
+
orderStr
+
"不是合法值"
);
}
}
this
.
order
=
lowcaseOrder
;
}
/**
* 返回Page对象自身的setOrder函数,可用于连续设置。
*/
public
Page
<
T
>
order
(
final
String
theOrder
)
{
setOrder
(
theOrder
);
return
this
;
}
/**
* 是否已设置排序字段,无默认值.
*/
public
boolean
isOrderBySetted
()
{
return
(
StringUtils
.
isNotBlank
(
orderBy
)
&&
StringUtils
.
isNotBlank
(
order
));
}
/**
* 获得查询对象时是否先自动执行count查询获取总记录数, 默认为false.
*/
public
boolean
isAutoCount
()
{
return
autoCount
;
}
/**
* 设置查询对象时是否自动先执行count查询获取总记录数.
*/
public
void
setAutoCount
(
final
boolean
autoCount
)
{
this
.
autoCount
=
autoCount
;
}
/**
* 返回Page对象自身的setAutoCount函数,可用于连续设置。
*/
public
Page
<
T
>
autoCount
(
final
boolean
theAutoCount
)
{
setAutoCount
(
theAutoCount
);
return
this
;
}
//-- 访问查询结果函数 --//
/**
* 获得页内的记录列表.
*/
public
List
<
T
>
getResult
()
{
return
result
;
}
/**
* 设置页内的记录列表.
*/
public
void
setResult
(
final
List
<
T
>
result
)
{
this
.
result
=
result
;
}
/**
* 获得总记录数, 默认值为-1.
*/
public
long
getTotalCount
()
{
return
totalCount
;
}
/**
* 设置总记录数.
*/
public
void
setTotalCount
(
final
long
totalCount
)
{
this
.
totalCount
=
totalCount
;
}
/**
* 根据pageSize与totalCount计算总页数, 默认值为-1.
*/
public
long
getTotalPages
()
{
if
(
totalCount
<
0
)
{
return
-
1
;
}
long
count
=
totalCount
/
pageSize
;
if
(
totalCount
%
pageSize
>
0
)
{
count
++;
}
return
count
;
}
/**
* 是否还有下一页.
*/
public
boolean
isHasNext
()
{
return
(
pageNo
+
1
<=
getTotalPages
());
}
/**
* 取得下页的页号, 序号从1开始.
* 当前页为尾页时仍返回尾页序号.
*/
public
int
getNextPage
()
{
if
(
isHasNext
())
{
return
pageNo
+
1
;
}
else
{
return
pageNo
;
}
}
/**
* 是否还有上一页.
*/
public
boolean
isHasPre
()
{
return
(
pageNo
-
1
>=
1
);
}
/**
* 取得上页的页号, 序号从1开始.
* 当前页为首页时返回首页序号.
*/
public
int
getPrePage
()
{
if
(
isHasPre
())
{
return
pageNo
-
1
;
}
else
{
return
pageNo
;
}
}
}
common/src/main/java/com/winsun/mapper/Basemapper.java
0 → 100644
View file @
4918f6fb
This diff is collapsed.
Click to expand it.
common/src/main/java/com/winsun/mapper/OrderMapper.java
View file @
4918f6fb
...
...
@@ -16,6 +16,7 @@ import com.winsun.bean.OrderView;
@Component
public
interface
OrderMapper
extends
BaseMapper
<
Order
>
{
@Insert
(
"insert into `hhr_order_history` values(#{id},#{status},#{date},#{operator}) "
)
Integer
inserOrderHis
(
@Param
(
"id"
)
String
id
,
@Param
(
"status"
)
String
status
,
@Param
(
"date"
)
Date
date
,
@Param
(
"operator"
)
String
operator
);
...
...
@@ -59,6 +60,22 @@ public interface OrderMapper extends BaseMapper<Order> {
@Select
(
"select xb_order_id xbOrderId from `hhr_order` where order_number = #{orderNumber}"
)
String
selectxbOrderIdByOrderNumber
(
String
orderNumber
);
@Select
(
"select * from `hhr_order` where order_number = #{orderNumber}"
)
List
<
Map
<
String
,
Object
>>
selectOrderIdByOrderNumber
(
String
orderNumber
);
@Select
(
" SELECT id,order_status,hehuoren_id,package_id,customer_name,business_number, "
+
" contact_number,site,address,id_card,parent_name,business_iccid,kapin,id_cardz,id_cardf,id_cardzs,studen_card, "
+
" create_time FROM hhr_order where id= #{id} "
)
Map
<
String
,
Object
>
selectOrderById
(
String
id
);
@Select
(
"SELECT u.*,s.service_qrcode,s.kdsl,s.net_type,s.is_xb,s.jilt_kd,s.jilt_kdy,s.net_phone "
+
"FROM hhr_user u LEFT JOIN hhr_user_school us ON u.id=us.user_id "
+
"LEFT JOIN hhr_school s ON us.school_id=s.id WHERE u.id= #{hehuoren_id} "
)
Map
<
String
,
Object
>
findPartnerById
(
String
hehuoren_id
);
@Select
(
"SELECT * FROM hhr_ysm_user WHERE id = #{id}"
)
Map
<
String
,
Object
>
findYsmById
(
int
id
);
@Select
(
"select ysm from `hhr_user` where id = #{id}"
)
String
selectYsmById
(
String
id
);
}
common/src/main/java/com/winsun/utils/Is.java
0 → 100644
View file @
4918f6fb
package
com
.
winsun
.
utils
;
import
java.lang.reflect.Array
;
import
java.util.Collection
;
import
java.util.Map
;
/**
* 判断非空工具类
*
* @author hjh
*
* @version v1.4 2016-12-19
* @since 2016-2-12
*/
public
class
Is
{
/**
* 私有化构造对象,不能创建对象
*/
private
Is
()
{
super
();
throw
new
UnsupportedOperationException
(
"cannot be instantiated"
);
}
/**
* 判断是否大于0
*
* @param num
* 整形
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
byte
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
byte
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
byte
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 整形
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
short
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
short
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
short
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 整数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
int
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
int
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
int
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 浮点数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
float
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
float
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
float
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 双精度浮点数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
double
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
double
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
double
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 长整数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
long
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
long
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
long
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 数字
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
Number
num
)
{
boolean
flag
=
false
;
if
(
null
!=
num
)
{
if
(
num
.
doubleValue
()
>
0
)
{
flag
=
true
;
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
Number
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
Number
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param str
* 字符串
* @return 如果str不为空返回true
*/
public
static
boolean
isNoEmpty
(
String
str
)
{
boolean
flag
=
false
;
if
(
str
!=
null
&&
str
.
replaceAll
(
"//s*"
,
""
).
length
()
>
0
)
{
flag
=
true
;
}
return
flag
;
}
/**
* 判断是否为空
*
* @param strs
* 字符串数组
* @return 如果strs不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
String
[]
strs
)
{
boolean
flag
=
false
;
if
(
strs
!=
null
&&
strs
.
length
>
0
)
{
for
(
String
s
:
strs
)
{
if
(
Is
.
isNoEmpty
(
s
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param list
* list集合或set集合
* @return 如果list不为空(list存在至少有一个值不为空)返回true
*/
public
static
<
T
>
boolean
isNoEmpty
(
Collection
<
T
>
list
)
{
boolean
flag
=
false
;
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
for
(
T
l
:
list
)
{
if
(
Is
.
isNoEmpty
(
l
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param map
* map集合
* @return 如果map不为空(map存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
Map
<?,
?>
map
)
{
boolean
flag
=
false
;
if
(
map
!=
null
&&
map
.
size
()
>
0
)
{
for
(
Map
.
Entry
<?,
?>
entry
:
map
.
entrySet
())
{
if
(
Is
.
isNoEmpty
(
entry
.
getValue
()))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param objs
* 数据集
* @return 如果都不为空且有值且不为负数返回true
*/
public
static
boolean
isNoEmpty
(
Object
...
objs
)
{
boolean
flag
=
true
;
if
(
objs
!=
null
){
for
(
Object
obj
:
objs
)
{
// 任意一项都不能为空
if
(
obj
==
null
)
{
flag
=
false
;
break
;
}
// 判断不同数据是否符合规则
if
(
obj
instanceof
Number
)
{
// 数字
if
(((
Number
)
obj
).
doubleValue
()
<=
0
)
{
flag
=
false
;
break
;
}
}
else
if
(
obj
instanceof
String
)
{
// 字符
if
(((
String
)
obj
).
replaceAll
(
"//s*"
,
""
).
length
()
<=
0
)
{
flag
=
false
;
break
;
}
}
else
if
(
obj
instanceof
Collection
)
{
// 集合
if
(!
Is
.
isNoEmpty
((
Collection
<?>)
obj
))
{
flag
=
false
;
break
;
}
}
else
if
(
obj
instanceof
Map
)
{
// 集合
if
(!
Is
.
isNoEmpty
((
Map
<?,
?>)
obj
))
{
flag
=
false
;
break
;
}
}
else
if
(
obj
.
getClass
().
isArray
())
{
// 数组
if
(
Array
.
getLength
(
obj
)
<=
0
)
{
flag
=
false
;
break
;
}
}
}
}
else
{
flag
=
false
;
}
return
flag
;
}
/**
* 为空或为零时返回默认值
*
* @param t
* 参数
* @param def
* 默认值
* @return t为空时返回def
*/
public
static
<
T
>
T
ifNull
(
T
t
,
T
def
)
{
if
(!
Is
.
isNoEmpty
(
t
))
{
// 为空
t
=
def
;
}
return
t
;
}
/**
* 去除所有空格,换行符,换页符
*
* @param str
* 字符串
* @return 去除后的字符串
*/
public
static
String
trim
(
String
str
)
{
return
str
!=
null
?
str
.
replaceAll
(
"\\s*|\t|\r|\n"
,
""
)
:
str
;
}
public
static
Object
ifValue
(
Object
obj
){
if
(
obj
==
""
||
null
==
obj
||
obj
==
" "
){
return
null
;
}
return
obj
;
}
public
static
boolean
isEmpty
(
Object
str
){
if
(
Is
.
isNoEmpty
(
str
))
{
return
false
;
}
return
true
;
}
/**
* obj转str
* @param obj
* @return
*/
public
static
String
parseStr
(
Object
obj
){
return
Is
.
ifNull
(
obj
,
""
).
toString
();
}
}
core-service/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -96,8 +96,8 @@ spring:
prohibition
:
600
datasource
:
url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
#用来搜集数据库的所有表
db-name
:
guns
filters
:
wall,mergeStat
...
...
core-service/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -96,8 +96,8 @@ spring:
datasource
:
# 由于父框架的问题,这里本来不应该这样写的
url
:
jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
db-name
:
guns
#用来搜集数据库的所有表
filters
:
wall,mergeStat
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
gateway/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -30,8 +30,10 @@ spring:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://localhost:3306/school_center?useSSL=false
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
# username: root
# password: AMrGBg6ZSsRrDLs6
zuul
:
ribbon
:
eager-load
:
...
...
gateway/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -30,8 +30,10 @@ spring:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://172.18.101.171:3306/school_center?useSSL=false
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
# username: root
# password: AMrGBg6ZSsRrDLs6
zuul
:
ribbon
:
eager-load
:
...
...
new-user/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -131,8 +131,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
new-user/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -131,8 +131,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
old-user/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -129,8 +129,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
old-user/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -129,8 +129,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
renewal-user/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -129,8 +129,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
renewal-user/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -129,8 +129,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
service-manager/src/main/java/com/winsun/controller/OrderController.java
View file @
4918f6fb
This diff is collapsed.
Click to expand it.
service-manager/src/main/java/com/winsun/utils/Constant.java
0 → 100644
View file @
4918f6fb
package
com
.
winsun
.
utils
;
import
javax.net.ssl.*
;
import
java.security.SecureRandom
;
import
java.security.cert.CertificateException
;
import
java.security.cert.X509Certificate
;
/**
* @author ljh
* @Description:常量类
* @Title: Constant
* @date 2018年5月16日下午6:55:54
* @version 1.0
*/
public
class
Constant
{
/* 默认一页显示10条数据 */
public
final
static
Integer
PAGENUM
=
2
;
/* 默认第一页 */
public
final
static
Integer
FROMPAGE
=
0
;
/*用户状态*/
public
final
static
String
USERQIDONG
=
"1"
;
//启用
public
final
static
String
USERJINYONG
=
"0"
;
//禁用
/*支付参数*/
public
final
static
String
CLIENTNUMBER
=
"xyzxyql"
;
//商户标识,由穗易付平台统一分配
public
final
static
String
KEY
=
"E805F0305C455BA7C5BAE3796C6500BD"
;
//商户标识,由穗易付平台统一分配
public
final
static
String
USERNAME
=
"apitest"
;
//智能平台提供测试的账号
public
final
static
String
USERNAMEKEY
=
"46b97294d4dac3f62ee42f3ab2804f68"
;
//智能平台提供的测试key
public
final
static
String
ZHENGSHIAUCCON
=
"ruany"
;
//智能平台提供的正式账号
public
final
static
String
ZHANGSHIKEY
=
"3df143292455bfea88bc613c53004d36"
;
//智能平台提供的正式key
// public final static String ZHENGSHIAUCCON = "xiaoykd"; //智能平台提供的正式账号
// public final static String ZHANGSHIKEY = "d345040accff0421d03f760a03e5cbd9"; //智能平台提供的正式key
public
final
static
String
ZHANGSHIURL
=
"https://ismart.mini189.cn/api/"
;
//智能平台提供的正式key
public
final
static
String
PRODUCTCATEGORY
=
"单宽带"
;
//只能平台提供的key
// public final static String TOMCATURL = "http://183.57.78.132:8080"; //Linux外网服务器地址
// public final static String INTRANETURL = "http://10.3.1.21:8080"; //Linux内网服务器地址
public
final
static
String
TOMCATURL
=
"http://yrym.winsun-aly.com"
;
//省windows外网服务器地址
public
final
static
String
INTRANETURL
=
"http://172.51.229.10:8081"
;
//省windows内网服务器地址
// public final static String TOMCATURL = "http://ue189.com:8529"; //服务器地址
// public final static String INTRANETURL = "http://ue189.com:8529"; //服务器地址
// public final static String TOMCATURL = "http://127.0.0.1:8080"; //服务器地址
// public final static String INTRANETURL = "http://127.0.0.1:8080"; //服务器地址
public
final
static
String
PRODUCTSKU481
=
"481"
;
//产品sku:校园宽带300元/年
public
final
static
String
PRODUCTSKU479
=
"479"
;
//产品sku:校园宽带30元/月
public
final
static
String
PRODUCTSKU479Str
=
"30元"
;
//产品sku:校园宽带30元/月
public
final
static
String
PRODUCTSKU481Str
=
"300元"
;
//产品sku:校园宽带30元/月
public
final
static
String
Payment0
=
"0"
;
//支付方式:为翼支付网厅
public
final
static
String
Payment1
=
"1"
;
//支付方式:为支付宝
public
final
static
String
Payment3
=
"3"
;
//支付方式:为微信支付
public
static
final
String
VALIDATECODE_SESSION_KEY
=
"validatecode"
;
// 验证码 session key
/*宽带图片*/
public
final
static
String
KUANDAIIMAGE
=
"kuandai"
;
//封面图
public
final
static
String
IMGBDURL
=
"/static/images/temp/"
;
//图片存放位置
public
final
static
String
KDIMGBDURL
=
"/static/images/kuandai/"
;
//图片存放位置
public
final
static
String
ORDERSTATUS1
=
"1"
;
// 待提交
public
final
static
String
ORDERSTATUS2
=
"2"
;
// 待受理
public
final
static
String
ORDERSTATUS3
=
"3"
;
// 受理成功【待收费】
public
final
static
String
ORDERSTATUS4
=
"4"
;
// 归档
public
final
static
String
ORDERSTATUS5
=
"5"
;
// 作废
public
final
static
String
ORDERSTATUS9
=
"9"
;
// 已收费【待竣工】
public
final
static
String
ORDERSTATUS10
=
"10"
;
// 受理异常
public
final
static
String
ORDERSTATUS100
=
"100"
;
// 未支付
public
final
static
String
ROLE1
=
"1"
;
// 用户权限:1管理员 2测试人员 3工作人员 4学校人员
public
final
static
String
ROLE2
=
"2"
;
// 用户权限:1管理员 2测试人员 3工作人员 4学校人员
public
final
static
String
ROLE3
=
"3"
;
// 用户权限:1管理员 2测试人员 3工作人员 4学校人员
public
final
static
String
ROLE4
=
"4"
;
// 用户权限:1管理员 2测试人员 3工作人员 4学校人员
/** 信任任何站点 */
public
static
void
trustEveryone
()
{
try
{
HttpsURLConnection
.
setDefaultHostnameVerifier
(
new
HostnameVerifier
()
{
@Override
public
boolean
verify
(
String
hostname
,
SSLSession
session
)
{
return
true
;
}
});
SSLContext
context
=
SSLContext
.
getInstance
(
"TLS"
);
context
.
init
(
null
,
new
X509TrustManager
[]
{
new
X509TrustManager
()
{
@Override
public
void
checkClientTrusted
(
X509Certificate
[]
chain
,
String
authType
)
throws
CertificateException
{
}
@Override
public
void
checkServerTrusted
(
X509Certificate
[]
chain
,
String
authType
)
throws
CertificateException
{
}
@Override
public
X509Certificate
[]
getAcceptedIssuers
()
{
return
new
X509Certificate
[
0
];
}
}
},
new
SecureRandom
());
HttpsURLConnection
.
setDefaultSSLSocketFactory
(
context
.
getSocketFactory
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
service-manager/src/main/java/com/winsun/utils/Is.java
0 → 100644
View file @
4918f6fb
package
com
.
winsun
.
utils
;
import
java.lang.reflect.Array
;
import
java.util.Collection
;
import
java.util.Map
;
/**
* 判断非空工具类
*
* @author hjh
*
* @version v1.4 2016-12-19
* @since 2016-2-12
*/
public
class
Is
{
/**
* 私有化构造对象,不能创建对象
*/
private
Is
()
{
super
();
throw
new
UnsupportedOperationException
(
"cannot be instantiated"
);
}
/**
* 判断是否大于0
*
* @param num
* 整形
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
byte
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
byte
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
byte
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 整形
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
short
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
short
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
short
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 整数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
int
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
int
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
int
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 浮点数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
float
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
float
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
float
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 双精度浮点数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
double
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
double
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
double
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 长整数
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
long
num
)
{
return
num
>
0
?
true
:
false
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
long
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
long
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否大于0
*
* @param num
* 数字
* @return true为大于0,false为小于0
*/
public
static
boolean
isNoEmpty
(
Number
num
)
{
boolean
flag
=
false
;
if
(
null
!=
num
)
{
if
(
num
.
doubleValue
()
>
0
)
{
flag
=
true
;
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param nums
* 数组
* @return 如果array不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
Number
[]
nums
)
{
boolean
flag
=
false
;
if
(
nums
!=
null
&&
nums
.
length
>
0
)
{
for
(
Number
i
:
nums
)
{
if
(
Is
.
isNoEmpty
(
i
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param str
* 字符串
* @return 如果str不为空返回true
*/
public
static
boolean
isNoEmpty
(
String
str
)
{
boolean
flag
=
false
;
if
(
str
!=
null
&&
str
.
replaceAll
(
"//s*"
,
""
).
length
()
>
0
)
{
flag
=
true
;
}
return
flag
;
}
/**
* 判断是否为空
*
* @param strs
* 字符串数组
* @return 如果strs不为空(存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
String
[]
strs
)
{
boolean
flag
=
false
;
if
(
strs
!=
null
&&
strs
.
length
>
0
)
{
for
(
String
s
:
strs
)
{
if
(
Is
.
isNoEmpty
(
s
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param list
* list集合或set集合
* @return 如果list不为空(list存在至少有一个值不为空)返回true
*/
public
static
<
T
>
boolean
isNoEmpty
(
Collection
<
T
>
list
)
{
boolean
flag
=
false
;
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
for
(
T
l
:
list
)
{
if
(
Is
.
isNoEmpty
(
l
))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param map
* map集合
* @return 如果map不为空(map存在至少有一个值不为空)返回true
*/
public
static
boolean
isNoEmpty
(
Map
<?,
?>
map
)
{
boolean
flag
=
false
;
if
(
map
!=
null
&&
map
.
size
()
>
0
)
{
for
(
Map
.
Entry
<?,
?>
entry
:
map
.
entrySet
())
{
if
(
Is
.
isNoEmpty
(
entry
.
getValue
()))
{
flag
=
true
;
break
;
}
}
}
return
flag
;
}
/**
* 判断是否为空
*
* @param objs
* 数据集
* @return 如果都不为空且有值且不为负数返回true
*/
public
static
boolean
isNoEmpty
(
Object
...
objs
)
{
boolean
flag
=
true
;
if
(
objs
!=
null
){
for
(
Object
obj
:
objs
)
{
// 任意一项都不能为空
if
(
obj
==
null
)
{
flag
=
false
;
break
;
}
// 判断不同数据是否符合规则
if
(
obj
instanceof
Number
)
{
// 数字
if
(((
Number
)
obj
).
doubleValue
()
<=
0
)
{
flag
=
false
;
break
;
}
}
else
if
(
obj
instanceof
String
)
{
// 字符
if
(((
String
)
obj
).
replaceAll
(
"//s*"
,
""
).
length
()
<=
0
)
{
flag
=
false
;
break
;
}
}
else
if
(
obj
instanceof
Collection
)
{
// 集合
if
(!
Is
.
isNoEmpty
((
Collection
<?>)
obj
))
{
flag
=
false
;
break
;
}
}
else
if
(
obj
instanceof
Map
)
{
// 集合
if
(!
Is
.
isNoEmpty
((
Map
<?,
?>)
obj
))
{
flag
=
false
;
break
;
}
}
else
if
(
obj
.
getClass
().
isArray
())
{
// 数组
if
(
Array
.
getLength
(
obj
)
<=
0
)
{
flag
=
false
;
break
;
}
}
}
}
else
{
flag
=
false
;
}
return
flag
;
}
/**
* 为空或为零时返回默认值
*
* @param t
* 参数
* @param def
* 默认值
* @return t为空时返回def
*/
public
static
<
T
>
T
ifNull
(
T
t
,
T
def
)
{
if
(!
Is
.
isNoEmpty
(
t
))
{
// 为空
t
=
def
;
}
return
t
;
}
/**
* 去除所有空格,换行符,换页符
*
* @param str
* 字符串
* @return 去除后的字符串
*/
public
static
String
trim
(
String
str
)
{
return
str
!=
null
?
str
.
replaceAll
(
"\\s*|\t|\r|\n"
,
""
)
:
str
;
}
public
static
Object
ifValue
(
Object
obj
){
if
(
obj
==
""
||
null
==
obj
||
obj
==
" "
){
return
null
;
}
return
obj
;
}
public
static
boolean
isEmpty
(
Object
str
){
if
(
Is
.
isNoEmpty
(
str
))
{
return
false
;
}
return
true
;
}
/**
* obj转str
* @param obj
* @return
*/
public
static
String
parseStr
(
Object
obj
){
return
Is
.
ifNull
(
obj
,
""
).
toString
();
}
}
service-manager/src/main/java/com/winsun/utils/Md5.java
0 → 100644
View file @
4918f6fb
package
com
.
winsun
.
utils
;
import
java.io.UnsupportedEncodingException
;
import
java.security.MessageDigest
;
import
java.security.NoSuchAlgorithmException
;
/**
* md5类
*
* @author 董有沛
*
*/
public
class
Md5
{
// 32位大写明文加密
public
static
String
encryption
(
String
str
)
throws
NoSuchAlgorithmException
,
UnsupportedEncodingException
{
String
result
=
""
;
MessageDigest
md5
=
MessageDigest
.
getInstance
(
"MD5"
);
md5
.
update
((
str
).
getBytes
(
"UTF-8"
));
byte
b
[]
=
md5
.
digest
();
int
i
;
StringBuffer
buf
=
new
StringBuffer
(
""
);
for
(
int
offset
=
0
;
offset
<
b
.
length
;
offset
++)
{
i
=
b
[
offset
];
if
(
i
<
0
)
{
i
+=
256
;
}
if
(
i
<
16
)
{
buf
.
append
(
"0"
);
}
buf
.
append
(
Integer
.
toHexString
(
i
));
}
result
=
buf
.
toString
().
toUpperCase
();
return
result
;
}
/*public final static String encode(String s) {
char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F' };
try {
byte[] btInput = s.getBytes("UTF-8");
// 获得MD5摘要算法的 MessageDigest 对象
MessageDigest mdInst = MessageDigest.getInstance("MD5");
// 使用指定的字节更新摘要
mdInst.update(btInput);
// 获得密文
byte[] md = mdInst.digest();
// 把密文转换成十六进制的字符串形式
int j = md.length;
char str[] = new char[j * 2];
int k = 0;
for (int i = 0; i < j; i++) {
byte byte0 = md[i];
str[k++] = hexDigits[byte0 >>> 4 & 0xf];
str[k++] = hexDigits[byte0 & 0xf];
}
return new String(str);
} catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {
e.printStackTrace();
return null;
}
}*/
}
service-manager/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -129,8 +129,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
service-manager/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -131,8 +131,8 @@ spring:
datasource
:
master
:
url
:
jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
driver-class-name
:
com.mysql.cj.jdbc.Driver
devtools
:
restart
:
...
...
service-manager/src/main/resources/txtfiledetail.properties
0 → 100644
View file @
4918f6fb
#############################################################################
#ػFTP
#
ftp_host
=
127.0.0.1
ftp_port
=
21
ftp_username
=
root
ftp_password
=
qUDZj/w2Rus=
ftp_sys
=
E:/FTP
hhr_img
=
/datas/apps/web/tomcats/apache-tomcat-7.0.100-hhr/hhrphoto
#hhr_img=D:/a
sign_img
=
/datas/apps/web/tomcats/apache-tomcat-7.0.100-hhr/hhr-sign-img
#sign_img=D:/a
yrym_sign
=
rQXPSHvWvHasj17#5L70ux3KvlWNqoVQ
task/src/main/resources/application-prod.yml
View file @
4918f6fb
...
...
@@ -122,8 +122,8 @@ spring:
prohibition
:
600
datasource
:
url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
filters
:
wall,mergeStat
max-active
:
20
devtools
:
...
...
task/src/main/resources/application.yml
View file @
4918f6fb
...
...
@@ -121,8 +121,8 @@ spring:
prohibition
:
600
datasource
:
url
:
jdbc:mysql://172.18.101.171:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
AMrGBg6ZSsRrDLs6
username
:
yzzx
password
:
yzzx123!@#
filters
:
wall,mergeStat
max-active
:
20
devtools
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment