Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baifang-java
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
单欣鑫
baifang-java
Commits
8b1fb384
Commit
8b1fb384
authored
Jul 01, 2025
by
单欣鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复首页筛选
修复打印 修复打包问题
parent
6b96845e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
2 deletions
+34
-2
PageParam.java
...ava/cn/iocoder/yudao/framework/common/pojo/PageParam.java
+1
-1
pom.xml
yudao-module-infra/yudao-module-infra-biz/pom.xml
+13
-0
pom.xml
yudao-module-system/yudao-module-system-biz/pom.xml
+14
-0
InfoController.java
...ao/module/visit/controller/admin/info/InfoController.java
+3
-0
HomeServiceImpl.java
...oder/yudao/module/visit/service/home/HomeServiceImpl.java
+3
-1
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/pojo/PageParam.java
View file @
8b1fb384
...
@@ -29,7 +29,7 @@ public class PageParam implements Serializable {
...
@@ -29,7 +29,7 @@ public class PageParam implements Serializable {
@Schema
(
description
=
"每页条数,最大值为 100"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
,
example
=
"10"
)
@Schema
(
description
=
"每页条数,最大值为 100"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
,
example
=
"10"
)
@NotNull
(
message
=
"每页条数不能为空"
)
@NotNull
(
message
=
"每页条数不能为空"
)
@Min
(
value
=
1
,
message
=
"每页条数最小值为 1"
)
@Min
(
value
=
-
1
,
message
=
"每页条数最小值为 1"
)
@Max
(
value
=
100
,
message
=
"每页条数最大值为 100"
)
@Max
(
value
=
100
,
message
=
"每页条数最大值为 100"
)
private
Integer
pageSize
=
PAGE_SIZE
;
private
Integer
pageSize
=
PAGE_SIZE
;
...
...
yudao-module-infra/yudao-module-infra-biz/pom.xml
View file @
8b1fb384
...
@@ -128,4 +128,17 @@
...
@@ -128,4 +128,17 @@
</dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.22.2
</version>
<!-- 使用你当前的版本 -->
<configuration>
<skipTests>
true
</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>
</project>
yudao-module-system/yudao-module-system-biz/pom.xml
View file @
8b1fb384
...
@@ -120,4 +120,18 @@
...
@@ -120,4 +120,18 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.22.2
</version>
<!-- 使用你当前的版本 -->
<configuration>
<skipTests>
true
</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>
</project>
yudao-module-visit/src/main/java/cn/iocoder/yudao/module/visit/controller/admin/info/InfoController.java
View file @
8b1fb384
...
@@ -10,6 +10,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
...
@@ -10,6 +10,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import
io.swagger.v3.oas.annotations.Parameter
;
import
io.swagger.v3.oas.annotations.Parameter
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Operation
;
import
javax.annotation.security.PermitAll
;
import
javax.validation.constraints.*
;
import
javax.validation.constraints.*
;
import
javax.validation.*
;
import
javax.validation.*
;
import
javax.servlet.http.*
;
import
javax.servlet.http.*
;
...
@@ -136,6 +137,8 @@ public class InfoController {
...
@@ -136,6 +137,8 @@ public class InfoController {
@Operation
(
summary
=
"获得合并客户拜访打印信息根据Ids"
)
@Operation
(
summary
=
"获得合并客户拜访打印信息根据Ids"
)
@PreAuthorize
(
"@ss.hasPermission('visit:info:print')"
)
@PreAuthorize
(
"@ss.hasPermission('visit:info:print')"
)
public
CommonResult
<
List
<
InfoPrintVO
>>
getUnionAllPrintListByIds
(
@Valid
InfoPageReqVO
pageReqVO
)
{
public
CommonResult
<
List
<
InfoPrintVO
>>
getUnionAllPrintListByIds
(
@Valid
InfoPageReqVO
pageReqVO
)
{
// 如果前端没有传递pageSize和pageNo参数,则设置为不分页
PageResult
<
InfoDO
>
pageResult
=
infoService
.
getInfoPage
(
pageReqVO
);
PageResult
<
InfoDO
>
pageResult
=
infoService
.
getInfoPage
(
pageReqVO
);
if
(
pageResult
.
getTotal
()==
0
){
if
(
pageResult
.
getTotal
()==
0
){
throw
new
RuntimeException
(
"当前不存在可打印数据"
);
throw
new
RuntimeException
(
"当前不存在可打印数据"
);
...
...
yudao-module-visit/src/main/java/cn/iocoder/yudao/module/visit/service/home/HomeServiceImpl.java
View file @
8b1fb384
...
@@ -28,6 +28,7 @@ import java.time.DayOfWeek;
...
@@ -28,6 +28,7 @@ import java.time.DayOfWeek;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.LocalTime
;
import
java.time.LocalTime
;
import
java.time.temporal.ChronoUnit
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
...
@@ -156,7 +157,8 @@ public class HomeServiceImpl implements HomeService {
...
@@ -156,7 +157,8 @@ public class HomeServiceImpl implements HomeService {
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
LocalDateTime
weekStart
=
start
.
plusWeeks
(
i
).
with
(
LocalTime
.
MIN
);;
LocalDateTime
weekStart
=
start
.
plusWeeks
(
i
).
with
(
LocalTime
.
MIN
);;
LocalDateTime
weekEnd
=
weekStart
.
plusDays
(
6
).
with
(
LocalTime
.
MAX
);
// LocalTime.MAX表示当天时间的23.59.59.9999999,这样会导致MySQL数据库自动进1,导致出错
LocalDateTime
weekEnd
=
weekStart
.
plusDays
(
6
).
with
(
LocalTime
.
MAX
).
truncatedTo
(
ChronoUnit
.
MILLIS
);;
LocalDateTime
[]
week
=
new
LocalDateTime
[]{
weekStart
,
weekEnd
};
LocalDateTime
[]
week
=
new
LocalDateTime
[]{
weekStart
,
weekEnd
};
if
(
weekStart
.
isAfter
(
end
))
break
;
if
(
weekStart
.
isAfter
(
end
))
break
;
...
...
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