Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
a4d36f93
Commit
a4d36f93
authored
Jun 30, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.60.201/root/dsk-operate-sys
parents
60ac1ee5
89d75236
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
12 deletions
+22
-12
application-dev.yml
dsk-admin/src/main/resources/application-dev.yml
+6
-6
request.js
dsk-operate-ui/src/utils/request.js
+1
-1
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+10
-1
BusinessInfoServiceImpl.java
.../com/dsk/system/service/impl/BusinessInfoServiceImpl.java
+1
-0
BusinessInfoMapper.xml
...src/main/resources/mapper/business/BusinessInfoMapper.xml
+4
-4
No files found.
dsk-admin/src/main/resources/application-dev.yml
View file @
a4d36f93
...
@@ -194,11 +194,11 @@ xss:
...
@@ -194,11 +194,11 @@ xss:
dsk
:
dsk
:
open
:
open
:
# endPoint: sandbox.openapi.jiansheku.com
# endPoint: 120.27.13.145:8865
# accessKeyId: aec7b3ff2e8b48e7
9a7e2c463ce21912
# accessKeyId: aec7b3ff2y2q8x6t4
9a7e2c463ce21912
# accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
# accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
# protocol: https
# protocol: http
endPoint
:
120.27.13.145:8865
endPoint
:
openapi.jiansheku.com
accessKeyId
:
aec7b3ff2y2q8x6t49a7e2c463ce21912
accessKeyId
:
aec7b3ff2y2q8x6t49a7e2c463ce21912
accessKeySecret
:
ee8a53c7ea04eb3ac311406c8f56f95b
accessKeySecret
:
ee8a53c7ea04eb3ac311406c8f56f95b
protocol
:
http
protocol
:
http
s
dsk-operate-ui/src/utils/request.js
View file @
a4d36f93
...
@@ -67,7 +67,7 @@ service.interceptors.request.use(config => {
...
@@ -67,7 +67,7 @@ service.interceptors.request.use(config => {
// 响应拦截器
// 响应拦截器
service
.
interceptors
.
response
.
use
(
res
=>
{
service
.
interceptors
.
response
.
use
(
res
=>
{
const
apiList
=
[
'/login'
]
//需要提示错误的接口
const
apiList
=
[
'/login'
,
'/system/user/profile/updatePwd'
]
//需要提示错误的接口
// 未设置状态码则默认成功状态
// 未设置状态码则默认成功状态
const
code
=
res
.
data
.
code
||
200
;
const
code
=
res
.
data
.
code
||
200
;
// 获取错误信息
// 获取错误信息
...
...
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
a4d36f93
...
@@ -152,7 +152,16 @@ public class EnterpriseService {
...
@@ -152,7 +152,16 @@ public class EnterpriseService {
public
TableDataInfo
dynamicPage
(
EnterpriseDynamicPageBody
body
)
throws
Exception
{
public
TableDataInfo
dynamicPage
(
EnterpriseDynamicPageBody
body
)
throws
Exception
{
if
(
body
.
isVaildCid
())
return
new
TableDataInfo
(
new
ArrayList
<>(),
0
);
if
(
body
.
isVaildCid
())
return
new
TableDataInfo
(
new
ArrayList
<>(),
0
);
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/api/jsk/enterprise/dynamic"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/api/jsk/enterprise/dynamic"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
return
dskOpenApiUtil
.
responsePage
(
map
);
//底层接口写死了pageSize为10,这里前端只要5条
// return dskOpenApiUtil.responsePage(map);
Integer
code
=
MapUtils
.
getInteger
(
map
,
"code"
,
300
);
Map
data
=
MapUtils
.
getMap
(
map
,
"data"
,
null
);
if
(
200
!=
code
)
throw
new
RuntimeException
();
Integer
count
=
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
);
List
<
Object
>
list
=
CommonUtils
.
assertAsArray
(
MapUtils
.
getObject
(
data
,
"list"
,
""
));
return
new
TableDataInfo
(
body
.
getPageSize
()
<=
list
.
size
()
?
list
.
subList
(
0
,
body
.
getPageSize
())
:
list
,
count
);
}
}
public
R
icInfo
(
EnterpriseIcInfoBody
body
)
throws
Exception
{
public
R
icInfo
(
EnterpriseIcInfoBody
body
)
throws
Exception
{
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessInfoServiceImpl.java
View file @
a4d36f93
...
@@ -81,6 +81,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -81,6 +81,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
*/
*/
@Override
@Override
public
List
<
BusinessListVo
>
selectBusinessInfoList
(
BusinessListDto
dto
)
{
public
List
<
BusinessListVo
>
selectBusinessInfoList
(
BusinessListDto
dto
)
{
if
(
StringUtils
.
isEmpty
(
dto
.
getMinAmount
()))
dto
.
setMinAmount
(
"0"
);
List
<
BusinessListVo
>
othersList
=
new
ArrayList
<>();
List
<
BusinessListVo
>
othersList
=
new
ArrayList
<>();
//userId不传值,就查询全部他人可见项目+自己的
//userId不传值,就查询全部他人可见项目+自己的
if
(
dto
.
getUserId
()
==
null
)
{
if
(
dto
.
getUserId
()
==
null
)
{
...
...
dsk-system/src/main/resources/mapper/business/BusinessInfoMapper.xml
View file @
a4d36f93
...
@@ -111,15 +111,15 @@
...
@@ -111,15 +111,15 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"minAmount != null and minAmount != '' and minAmount != 0 and maxAmount != minAmount"
>
<if
test=
"minAmount != null and minAmount != '' and minAmount != 0 and maxAmount != minAmount"
>
and i.investment_amount
>
=
#{minAmount}
and i.investment_amount
>
#{minAmount}
</if>
</if>
<if
test=
"minAmount == 0 and maxAmount != minAmount"
>
<if
test=
"minAmount == 0 and maxAmount != minAmount"
>
and ((i.investment_amount
>
=
#{minAmount}
and ((i.investment_amount
>
#{minAmount}
and i.investment_amount
<
#{maxAmount})
and i.investment_amount
<
=
#{maxAmount})
or i.investment_amount is null)
or i.investment_amount is null)
</if>
</if>
<if
test=
"maxAmount != null and maxAmount != '' and maxAmount != minAmount and minAmount != 0"
>
<if
test=
"maxAmount != null and maxAmount != '' and maxAmount != minAmount and minAmount != 0"
>
and i.investment_amount
<
#{maxAmount}
and i.investment_amount
<
=
#{maxAmount}
</if>
</if>
<if
test=
"minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount"
>
<if
test=
"minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount"
>
and i.investment_amount = #{minAmount}
and i.investment_amount = #{minAmount}
...
...
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