Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
757d4526
Commit
757d4526
authored
3 years ago
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入保单查询保单状态
parent
100a5f82
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
64 deletions
+97
-64
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+34
-13
src/main/java/cn/timer/api/utils/HttpUtils.java
+39
-51
src/main/resources/application-dev.yml
+19
-0
src/main/resources/application-pro.yml
+2
-0
src/main/resources/application-test.yml
+3
-0
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
757d4526
...
@@ -89,6 +89,8 @@ public class InsureContorll {
...
@@ -89,6 +89,8 @@ public class InsureContorll {
private
String
uploadUrl2
;
private
String
uploadUrl2
;
@Value
(
"${insure.batchUrl}"
)
@Value
(
"${insure.batchUrl}"
)
private
String
batchUrl
;
private
String
batchUrl
;
@Value
(
"${insure.policyDetail}"
)
private
String
policyDetailUrl
;
private
static
SimpleDateFormat
dtf3
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
private
static
SimpleDateFormat
dtf3
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
...
@@ -129,7 +131,7 @@ public class InsureContorll {
...
@@ -129,7 +131,7 @@ public class InsureContorll {
}
}
@PostMapping
(
value
=
"/insured_add"
)
@PostMapping
(
value
=
"/insured_add"
)
@ApiOperation
(
value
=
"1.投保申请"
,
httpMethod
=
"P
ost
"
,
notes
=
"投保申请"
)
@ApiOperation
(
value
=
"1.投保申请"
,
httpMethod
=
"P
OST
"
,
notes
=
"投保申请"
)
public
Result
<
Object
>
insured_add
(
@RequestBody
InsureDto
insureDto
)
throws
ParseException
{
public
Result
<
Object
>
insured_add
(
@RequestBody
InsureDto
insureDto
)
throws
ParseException
{
InsureProduct
insureProduct
=
InsureProduct
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getProductId
())).
build
().
selectById
();
InsureProduct
insureProduct
=
InsureProduct
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getProductId
())).
build
().
selectById
();
if
(
insureProduct
==
null
)
{
if
(
insureProduct
==
null
)
{
...
@@ -379,7 +381,7 @@ public class InsureContorll {
...
@@ -379,7 +381,7 @@ public class InsureContorll {
@PostMapping
(
value
=
"/policyListAdmin"
)
@PostMapping
(
value
=
"/policyListAdmin"
)
@ApiOperation
(
value
=
"4.保单列表--运营后台端"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单列表--运营后台端"
)
@ApiOperation
(
value
=
"4.保单列表--运营后台端"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单列表--运营后台端"
)
public
Result
<
Object
>
policyListAdmin
(
@RequestBody
PolicyDto
policyDto
)
{
public
Result
<
Object
>
policyListAdmin
(
@RequestBody
PolicyDto
policyDto
)
{
Map
map
=
Maps
.
newHashMap
();
Map
map
=
Maps
.
newHashMap
();
List
<
PolicyDto
>
list
=
insurePolicyMapper
.
policyList
(
policyDto
);
List
<
PolicyDto
>
list
=
insurePolicyMapper
.
policyList
(
policyDto
);
...
@@ -407,7 +409,7 @@ public class InsureContorll {
...
@@ -407,7 +409,7 @@ public class InsureContorll {
}
}
@PostMapping
(
value
=
"/joinUser"
)
@PostMapping
(
value
=
"/joinUser"
)
@ApiOperation
(
value
=
"2.增员"
,
httpMethod
=
"P
ost
"
,
notes
=
"增员"
)
@ApiOperation
(
value
=
"2.增员"
,
httpMethod
=
"P
OST
"
,
notes
=
"增员"
)
public
Result
<
Object
>
joinUser
(
@RequestBody
InsureDto
insureDto
)
throws
ParseException
{
public
Result
<
Object
>
joinUser
(
@RequestBody
InsureDto
insureDto
)
throws
ParseException
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getId
())).
build
().
selectById
();
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getId
())).
build
().
selectById
();
...
@@ -581,7 +583,7 @@ public class InsureContorll {
...
@@ -581,7 +583,7 @@ public class InsureContorll {
}
}
@PostMapping
(
value
=
"/replaceUser"
)
@PostMapping
(
value
=
"/replaceUser"
)
@ApiOperation
(
value
=
"6.保全替换"
,
httpMethod
=
"P
ost
"
,
notes
=
"保全替换"
)
@ApiOperation
(
value
=
"6.保全替换"
,
httpMethod
=
"P
OST
"
,
notes
=
"保全替换"
)
public
Result
<
Object
>
replaceUser
(
@RequestBody
InsureDto
insureDto
)
{
public
Result
<
Object
>
replaceUser
(
@RequestBody
InsureDto
insureDto
)
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getId
())).
build
().
selectById
();
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getId
())).
build
().
selectById
();
if
(
insurePolicy
==
null
)
{
if
(
insurePolicy
==
null
)
{
...
@@ -795,14 +797,14 @@ public class InsureContorll {
...
@@ -795,14 +797,14 @@ public class InsureContorll {
}
}
@PostMapping
(
value
=
"/policyTotal"
)
@PostMapping
(
value
=
"/policyTotal"
)
@ApiOperation
(
value
=
"11.保单统计列表"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单统计列表"
)
@ApiOperation
(
value
=
"11.保单统计列表"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单统计列表"
)
public
Result
<
Object
>
policyTotal
()
{
public
Result
<
Object
>
policyTotal
()
{
List
<
PolicyDto
>
list
=
insurePolicyMapper
.
policyTotalList
();
List
<
PolicyDto
>
list
=
insurePolicyMapper
.
policyTotalList
();
return
ResultUtil
.
data
(
list
);
return
ResultUtil
.
data
(
list
);
}
}
@GetMapping
(
value
=
"/isInsured"
)
@GetMapping
(
value
=
"/isInsured"
)
@ApiOperation
(
value
=
"10.企业是否已投保"
,
httpMethod
=
"P
ost
"
,
notes
=
"企业是否已投保"
)
@ApiOperation
(
value
=
"10.企业是否已投保"
,
httpMethod
=
"P
OST
"
,
notes
=
"企业是否已投保"
)
public
Result
<
Object
>
isInsured
(
@RequestParam
(
"orgCode"
)
String
orgCode
)
{
public
Result
<
Object
>
isInsured
(
@RequestParam
(
"orgCode"
)
String
orgCode
)
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getOrgCode
,
orgCode
).
eq
(
InsurePolicy:
:
getStatus
,
1
));
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getOrgCode
,
orgCode
).
eq
(
InsurePolicy:
:
getStatus
,
1
));
if
(
insurePolicy
!=
null
)
{
if
(
insurePolicy
!=
null
)
{
...
@@ -812,7 +814,7 @@ public class InsureContorll {
...
@@ -812,7 +814,7 @@ public class InsureContorll {
}
}
@GetMapping
(
value
=
"/verification"
)
@GetMapping
(
value
=
"/verification"
)
@ApiOperation
(
value
=
"一键校验"
,
httpMethod
=
"P
ost
"
,
notes
=
"一键校验"
)
@ApiOperation
(
value
=
"一键校验"
,
httpMethod
=
"P
OST
"
,
notes
=
"一键校验"
)
public
Result
<
Object
>
verification
()
{
public
Result
<
Object
>
verification
()
{
/*校验投保*/
/*校验投保*/
List
<
InsurePolicy
>
insurePolicies
=
InsurePolicy
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getStatus
,
2
));
List
<
InsurePolicy
>
insurePolicies
=
InsurePolicy
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getStatus
,
2
));
...
@@ -855,11 +857,9 @@ public class InsureContorll {
...
@@ -855,11 +857,9 @@ public class InsureContorll {
return
ResultUtil
.
success
();
return
ResultUtil
.
success
();
}
}
;
@PostMapping
(
value
=
"/policyTotalList"
)
@PostMapping
(
value
=
"/policyTotalList"
)
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单统计列表"
)
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单统计列表"
)
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
,
@RequestBody
Page
page
)
{
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
,
@RequestBody
Page
page
)
{
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectPlansListByorgCode
(
userBean
.
getOrgCode
());
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectPlansListByorgCode
(
userBean
.
getOrgCode
());
return
ResultUtil
.
data
(
list
);
return
ResultUtil
.
data
(
list
);
...
@@ -867,7 +867,7 @@ public class InsureContorll {
...
@@ -867,7 +867,7 @@ public class InsureContorll {
@PostMapping
(
value
=
"/importUser"
)
@PostMapping
(
value
=
"/importUser"
)
@ApiOperation
(
value
=
"导入用户--运营后台"
,
httpMethod
=
"
post
"
,
notes
=
"导入用户"
)
@ApiOperation
(
value
=
"导入用户--运营后台"
,
httpMethod
=
"
POST
"
,
notes
=
"导入用户"
)
public
Result
<
Object
>
importUser
(
@RequestParam
(
"orgCode"
)
String
orgCode
,
@RequestParam
(
"file"
)
MultipartFile
file
)
{
public
Result
<
Object
>
importUser
(
@RequestParam
(
"orgCode"
)
String
orgCode
,
@RequestParam
(
"file"
)
MultipartFile
file
)
{
SimpleDateFormat
dtf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
SimpleDateFormat
dtf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
QyzxEntInfoM
company
=
QyzxEntInfoM
.
builder
().
id
(
Integer
.
valueOf
(
orgCode
)).
build
().
selectById
();
QyzxEntInfoM
company
=
QyzxEntInfoM
.
builder
().
id
(
Integer
.
valueOf
(
orgCode
)).
build
().
selectById
();
...
@@ -961,7 +961,7 @@ public class InsureContorll {
...
@@ -961,7 +961,7 @@ public class InsureContorll {
}
}
@PostMapping
(
value
=
"/importPolicy"
)
@PostMapping
(
value
=
"/importPolicy"
)
@ApiOperation
(
value
=
"导入保单--运营后台"
,
httpMethod
=
"
post
"
,
notes
=
"导入用户"
)
@ApiOperation
(
value
=
"导入保单--运营后台"
,
httpMethod
=
"
POST
"
,
notes
=
"导入用户"
)
public
Result
<
Object
>
importPolicy
(
@RequestParam
(
"file"
)
MultipartFile
file
)
{
public
Result
<
Object
>
importPolicy
(
@RequestParam
(
"file"
)
MultipartFile
file
)
{
SimpleDateFormat
dtf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
SimpleDateFormat
dtf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
...
@@ -1065,18 +1065,37 @@ public class InsureContorll {
...
@@ -1065,18 +1065,37 @@ public class InsureContorll {
policy
.
setOrgCode
(
company
.
getId
());
policy
.
setOrgCode
(
company
.
getId
());
break
;
break
;
case
"总保费"
:
case
"总保费"
:
user
.
setPrice
(
Integer
.
parseInt
(
ExcelUtils
.
getString
(
cell
))+
""
);
user
.
setPrice
(
ExcelUtils
.
getString
(
cell
)
);
break
;
break
;
}
}
}
}
userList
.
add
(
user
);
userList
.
add
(
user
);
}
}
//TODO 验证保单的状态
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
Map
map
=
Maps
.
newHashMap
();
map
.
put
(
"pid"
,
appid
);
map
.
put
(
"policy_no"
,
policy
.
getPolicyNo
());
map
.
put
(
"sign"
,
DigestUtils
.
md5Hex
(
appid
+
secret
+
timestamp
));
map
.
put
(
"timestamp"
,
String
.
valueOf
(
timestamp
));
String
data
=
HttpUtils
.
sendGet
(
policyDetailUrl
,
map
);
Map
returnMap
=
JSONObject
.
parseObject
(
data
,
Map
.
class
);
if
(
returnMap
.
get
(
"errcode"
).
toString
().
equals
(
"suc"
)){
Map
dataMap
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
returnMap
.
get
(
"data"
)),
Map
.
class
);
policy
.
setPolicyFile
(
dataMap
.
get
(
"policy_file"
).
toString
());
policy
.
setStatus
(
"1"
);
}
else
{
return
ResultUtil
.
error
(
"保单不存在,请检查保单号是否正确"
);
}
InsurePolicy
oldPolicy
=
InsurePolicy
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getPolicyNo
,
policy
.
getPolicyNo
()));
InsurePolicy
oldPolicy
=
InsurePolicy
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getPolicyNo
,
policy
.
getPolicyNo
()));
if
(
oldPolicy
==
null
)
{
if
(
oldPolicy
==
null
)
{
policy
.
setSchemeName
(
InsureProduct
.
builder
().
id
(
1
).
build
().
selectById
().
getName
());
policy
.
setSchemeName
(
InsureProduct
.
builder
().
id
(
1
).
build
().
selectById
().
getName
());
policy
.
insert
();
policy
.
insert
();
}
else
{
}
else
{
oldPolicy
.
setPolicyFile
(
policy
.
getPolicyFile
());
policy
=
oldPolicy
;
policy
=
oldPolicy
;
policy
.
updateById
();
}
}
if
(
userList
.
size
()
<=
0
)
{
if
(
userList
.
size
()
<=
0
)
{
return
ResultUtil
.
error
(
"导入错误,保单已存在"
);
return
ResultUtil
.
error
(
"导入错误,保单已存在"
);
...
@@ -1105,6 +1124,8 @@ public class InsureContorll {
...
@@ -1105,6 +1124,8 @@ public class InsureContorll {
insureUser
.
setStatus
(
"1"
);
insureUser
.
setStatus
(
"1"
);
insureUser
.
insert
();
insureUser
.
insert
();
}
}
InsureLog
.
builder
().
requestParam
(
JSONObject
.
toJSONString
(
map
)).
type
(
6
).
createTime
(
new
Date
()).
requestType
(
2
).
returnBody
(
data
).
requestPath
(
policyDetailUrl
)
.
returnCode
(
returnMap
.
get
(
"errcode"
).
toString
()).
returnMsg
(
returnMap
.
get
(
"errmsg"
).
toString
()).
policyId
(
policy
.
getId
()).
build
().
insert
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/HttpUtils.java
View file @
757d4526
package
cn
.
timer
.
api
.
utils
;
package
cn
.
timer
.
api
.
utils
;
import
java.io.*
;
import
java.io.*
;
import
java.net.ConnectException
;
import
java.net.*
;
import
java.net.SocketTimeoutException
;
import
java.net.URL
;
import
java.net.URLConnection
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.security.cert.X509Certificate
;
import
java.security.cert.X509Certificate
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -17,6 +14,12 @@ import javax.net.ssl.X509TrustManager;
...
@@ -17,6 +14,12 @@ import javax.net.ssl.X509TrustManager;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.apache.http.client.methods.CloseableHttpResponse
;
import
org.apache.http.client.methods.HttpGet
;
import
org.apache.http.client.utils.URIBuilder
;
import
org.apache.http.impl.client.CloseableHttpClient
;
import
org.apache.http.impl.client.HttpClients
;
import
org.apache.http.util.EntityUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -36,59 +39,44 @@ public class HttpUtils
...
@@ -36,59 +39,44 @@ public class HttpUtils
* @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。
* @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。
* @return 所代表远程资源的响应结果
* @return 所代表远程资源的响应结果
*/
*/
public
static
String
sendGet
(
String
url
,
String
param
)
public
static
String
sendGet
(
String
url
,
Map
<
String
,
String
>
param
)
{
{
// 创建Httpclient对象
StringBuilder
result
=
new
StringBuilder
();
CloseableHttpClient
httpclient
=
HttpClients
.
createDefault
();
BufferedReader
in
=
null
;
try
String
resultString
=
""
;
{
CloseableHttpResponse
response
=
null
;
String
urlNameString
=
url
+
"?"
+
param
;
try
{
log
.
info
(
"sendGet - {}"
,
urlNameString
);
// 创建uri
URL
realUrl
=
new
URL
(
urlNameString
);
URIBuilder
builder
=
new
URIBuilder
(
url
);
HttpsURLConnection
connection
=
(
HttpsURLConnection
)
realUrl
.
openConnection
();
if
(
param
!=
null
)
{
connection
.
setRequestProperty
(
"accept"
,
"*/*"
);
for
(
String
key
:
param
.
keySet
())
{
connection
.
setRequestProperty
(
"connection"
,
"Keep-Alive"
);
builder
.
addParameter
(
key
,
param
.
get
(
key
));
connection
.
setRequestProperty
(
"User-Agent"
,
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36)"
);
connection
.
connect
();
in
=
new
BufferedReader
(
new
InputStreamReader
(
connection
.
getInputStream
()));
String
line
;
while
((
line
=
in
.
readLine
())
!=
null
)
{
result
.
append
(
line
);
}
log
.
info
(
"recv - {}"
,
result
);
}
catch
(
ConnectException
e
)
{
log
.
error
(
"调用HttpUtils.sendGet ConnectException, url="
+
url
+
",param="
+
param
,
e
);
}
catch
(
SocketTimeoutException
e
)
{
log
.
error
(
"调用HttpUtils.sendGet SocketTimeoutException, url="
+
url
+
",param="
+
param
,
e
);
}
}
catch
(
IOException
e
)
{
log
.
error
(
"调用HttpUtils.sendGet IOException, url="
+
url
+
",param="
+
param
,
e
);
}
}
catch
(
Exception
e
)
URI
uri
=
builder
.
build
();
{
log
.
error
(
"调用HttpsUtil.sendGet Exception, url="
+
url
+
",param="
+
param
,
e
);
// 创建http GET请求
}
HttpGet
httpGet
=
new
HttpGet
(
uri
);
finally
{
// 执行请求
try
response
=
httpclient
.
execute
(
httpGet
);
{
// 判断返回状态是否为200
if
(
in
!=
null
)
if
(
response
.
getStatusLine
().
getStatusCode
()
==
200
)
{
{
resultString
=
EntityUtils
.
toString
(
response
.
getEntity
(),
"UTF-8"
);
in
.
close
();
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
try
{
if
(
response
!=
null
)
{
response
.
close
();
}
}
catch
(
Exception
ex
)
httpclient
.
close
();
{
}
catch
(
IOException
e
)
{
log
.
error
(
"调用in.close Exception, url="
+
url
+
",param="
+
param
,
ex
);
e
.
printStackTrace
(
);
}
}
}
}
return
result
.
toString
()
;
return
result
String
;
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application-dev.yml
View file @
757d4526
...
@@ -244,6 +244,9 @@ insure:
...
@@ -244,6 +244,9 @@ insure:
secret
:
'
acb329868c31d5b3ba03de40dac13dd9'
secret
:
'
acb329868c31d5b3ba03de40dac13dd9'
uploadUrl
:
'
http://sandbox.portal.unistar-ins.com/service/Home/Index/fileUpload'
uploadUrl
:
'
http://sandbox.portal.unistar-ins.com/service/Home/Index/fileUpload'
insuredUrl
:
'
http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
insuredUrl
:
'
http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
#查询保单信息
policyDetail
:
'
http://sandbox.portal.unistar-ins.com/issuing/Home/Index/policy'
#保全
#保全
appidq
:
'
1000115041006006938'
appidq
:
'
1000115041006006938'
secretq
:
'
6ba1bf4aa0bd14368c95ff0b9934a17b'
secretq
:
'
6ba1bf4aa0bd14368c95ff0b9934a17b'
...
@@ -252,3 +255,19 @@ insure:
...
@@ -252,3 +255,19 @@ insure:
# base_api_url
# base_api_url
BASE_API_URL
:
'
http://test-8timer-api.youlingrc.com'
BASE_API_URL
:
'
http://test-8timer-api.youlingrc.com'
#sftp 配置
sftp
:
client
:
protocol
:
'
sftp'
host
:
'
120.78.162.177'
port
:
'
22'
username
:
'
root'
password
:
'
fksdlfjs(*&&%HGgjfkdjsfhksh9781283KFHFFGHghhndbv##2@'
root
:
'
/home'
sessionStrictHostKeyChecking
:
'
no'
sessionConnectTimeout
:
'
15000'
channelConnectedTimeout
:
'
15000'
serverUrl
:
'
https://test-img.8timer.cn'
targetPath
:
'
/disk'
reservedName
:
false
This diff is collapsed.
Click to expand it.
src/main/resources/application-pro.yml
View file @
757d4526
...
@@ -235,6 +235,8 @@ insure:
...
@@ -235,6 +235,8 @@ insure:
secret
:
'
1ef7b79471be7f6b5489832c65109f81'
secret
:
'
1ef7b79471be7f6b5489832c65109f81'
uploadUrl
:
'
https://portal-unistar-ins.com
/service/Home/Index/fileUpload'
uploadUrl
:
'
https://portal-unistar-ins.com
/service/Home/Index/fileUpload'
insuredUrl
:
'
https://portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
insuredUrl
:
'
https://portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
#查询保单信息
policyDetail
:
'
https://portal.unistar-ins.com/issuing/Home/Index/policy'
#保全
#保全
appidq
:
'
1000711000604326196'
appidq
:
'
1000711000604326196'
secretq
:
'
a2da17a2797c63dff9172df50af9da65'
secretq
:
'
a2da17a2797c63dff9172df50af9da65'
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application-test.yml
View file @
757d4526
...
@@ -235,6 +235,9 @@ insure:
...
@@ -235,6 +235,9 @@ insure:
secret
:
'
acb329868c31d5b3ba03de40dac13dd9'
secret
:
'
acb329868c31d5b3ba03de40dac13dd9'
uploadUrl
:
'
http://sandbox.portal.unistar-ins.com/service/Home/Index/fileUpload'
uploadUrl
:
'
http://sandbox.portal.unistar-ins.com/service/Home/Index/fileUpload'
insuredUrl
:
'
http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
insuredUrl
:
'
http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
#查询保单信息
policyDetail
:
'
http://sandbox.portal.unistar-ins.com/issuing/Home/Index/policy'
#保全
#保全
appidq
:
'
1000115041006006938'
appidq
:
'
1000115041006006938'
secretq
:
'
6ba1bf4aa0bd14368c95ff0b9934a17b'
secretq
:
'
6ba1bf4aa0bd14368c95ff0b9934a17b'
...
...
This diff is collapsed.
Click to expand it.
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