Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
9329cca5
Commit
9329cca5
authored
Jul 27, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
87ca1f4c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
11 deletions
+30
-11
CheckUtils.java
...common/src/main/java/com/dsk/common/utils/CheckUtils.java
+2
-2
BusinessInfoServiceImpl.java
.../com/dsk/system/service/impl/BusinessInfoServiceImpl.java
+28
-9
No files found.
dsk-common/src/main/java/com/dsk/common/utils/CheckUtils.java
View file @
9329cca5
...
...
@@ -52,7 +52,7 @@ public class CheckUtils {
* @return
*/
public
static
int
checkIntegerPlaces
(
Double
number
)
{
BigDecimal
bigDecimal
=
new
BigDecimal
(
number
);
BigDecimal
bigDecimal
=
new
BigDecimal
(
String
.
valueOf
(
number
)
);
String
strNumber
=
bigDecimal
.
toString
();
int
integerPlaces
=
strNumber
.
indexOf
(
'.'
);
if
(
integerPlaces
==
-
1
)
{
...
...
@@ -68,7 +68,7 @@ public class CheckUtils {
* @return
*/
public
static
int
checkDecimalPlaces
(
Double
number
)
{
BigDecimal
bigDecimal
=
new
BigDecimal
(
number
);
BigDecimal
bigDecimal
=
new
BigDecimal
(
String
.
valueOf
(
number
)
);
String
strNumber
=
bigDecimal
.
toString
();
int
decimalPlaces
=
0
;
int
index
=
strNumber
.
indexOf
(
'.'
);
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessInfoServiceImpl.java
View file @
9329cca5
...
...
@@ -43,10 +43,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.LinkedList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
* 项目详情Service业务层处理
...
...
@@ -143,14 +140,36 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
@Override
public
List
<
BusinessLikeProjectNameListVo
>
selectProjectName
(
BusinessListDto
dto
)
{
List
<
BusinessLikeProjectNameListVo
>
vos
=
businessInfoMapper
.
selectProjectName
(
dto
);
if
(!
CollectionUtils
.
isEmpty
(
vos
))
{
for
(
BusinessLikeProjectNameListVo
vo
:
vos
)
{
vo
.
setProjectName
(
vo
.
getProjectName
().
replace
(
dto
.
getProjectName
(),
"<font color='#FF204E'>"
+
dto
.
getProjectName
()
+
"</font>"
));
}
}
// List<BusinessLikeProjectNameListVo> vos = new ArrayList<>();
// Map<String, Object> result = dskOpenApiUtil.requestBody("/company/bidding/newZhaoBiao/list", toRequestMap(dto));
// if ("200".equals(result.get("code")) && ObjectUtil.isNotEmpty(result.get("data"))
// && ObjectUtil.isNotEmpty(BeanUtil.beanToMap(result.get("data")).get("list"))) {
// List<Map<String, Object>> list = (List<Map<String, Object>>) BeanUtil.beanToMap(result.get("data")).get("list");
// if (!CollectionUtils.isEmpty(list)) {
// for (Map<String, Object> map : list) {
// BusinessLikeProjectNameListVo vo = new BusinessLikeProjectNameListVo();
// vo.setProjectName(MapUtil.getStr(map, "projectName").replace(dto.getProjectName(), "<font color='#FF204E'>" + dto.getProjectName() + "</font>"));
// vo.setInvestmentAmount(MapUtil.getDouble(map, "bidMoney"));
// vo.setProjectLevel(MapUtil.getStr(map, "bidMoney"));
// vo.setProjectStage(MapUtil.getStr(map, "tenderStage"));
// vo.setProjectType(MapUtil.getStr(map, "projectType"));
// vo.setProjectCategory(MapUtil.getStr(map, "projectType"));
// }
// }
// }
return
vos
;
}
private
Map
<
String
,
Object
>
toRequestMap
(
BusinessListDto
dto
)
{
Map
<
String
,
Object
>
page
=
new
HashMap
<>();
page
.
put
(
"page"
,
1
);
page
.
put
(
"limit"
,
20
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"keyword"
,
dto
.
getProjectName
());
map
.
put
(
"page"
,
page
);
return
map
;
}
@Override
public
AjaxResult
batchUpload
(
MultipartFile
file
)
{
//获取当前登录用户id
...
...
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