Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
0cb3dc3c
Commit
0cb3dc3c
authored
Sep 04, 2024
by
wujipeng
Browse files
优化
parent
0ff608ed
Changes
5
Show whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/controller/ContractController.java
View file @
0cb3dc3c
...
...
@@ -29,7 +29,8 @@ public class ContractController {
@PostMapping
(
"/page"
)
public
PageResponse
<
List
<
ContractVO
>>
page
(
@RequestBody
ContractDTO
contractDTO
)
{
List
<
ContractVO
>
contractList
=
contractService
.
pageContract
(
contractDTO
);
return
PageResponse
.
success
(
contractList
.
size
(),
contractList
);
int
count
=
contractService
.
count
();
return
PageResponse
.
success
(
count
,
contractList
);
}
@ApiOperation
(
value
=
"查询一级合同下的合同列表"
)
...
...
@@ -58,7 +59,7 @@ public class ContractController {
}
@ApiOperation
(
value
=
"详情"
)
@GetMapping
(
"/{id}"
)
@GetMapping
(
"/{id}"
)
public
Result
getContract
(
@PathVariable
String
id
)
{
return
Result
.
success
(
contractService
.
getContract
(
id
));
}
...
...
src/main/java/com/ruzhoukj/sms/controller/SSLController.java
View file @
0cb3dc3c
...
...
@@ -29,7 +29,8 @@ public class SSLController {
@PostMapping
(
"/page"
)
public
PageResponse
<
List
<
SSLVO
>>
page
(
@RequestBody
SSLDTO
ssldto
)
{
List
<
SSLVO
>
list
=
sslService
.
pageSSL
(
ssldto
);
return
PageResponse
.
success
(
list
.
size
(),
list
);
int
count
=
sslService
.
count
();
return
PageResponse
.
success
(
count
,
list
);
}
@ApiOperation
(
"新增或修改"
)
...
...
src/main/java/com/ruzhoukj/sms/controller/ScheduleController.java
View file @
0cb3dc3c
...
...
@@ -2,6 +2,7 @@ package com.ruzhoukj.sms.controller;
import
com.ruzhoukj.sms.common.PageResponse
;
import
com.ruzhoukj.sms.common.Result
;
import
com.ruzhoukj.sms.entity.ScheduleEntity
;
import
com.ruzhoukj.sms.pojo.dto.ScheduleDTO
;
import
com.ruzhoukj.sms.pojo.vo.ScheduleVO
;
import
com.ruzhoukj.sms.service.ScheduleService
;
...
...
@@ -29,7 +30,8 @@ public class ScheduleController {
@PostMapping
(
"/page"
)
public
PageResponse
<
List
<
ScheduleVO
>>
page
(
@RequestBody
ScheduleDTO
scheduleDTO
)
{
List
<
ScheduleVO
>
list
=
scheduleService
.
pageSchedule
(
scheduleDTO
);
return
PageResponse
.
success
(
list
.
size
(),
list
);
int
count
=
scheduleService
.
count
();
return
PageResponse
.
success
(
count
,
list
);
}
@ApiOperation
(
value
=
"新增或修改"
)
...
...
src/main/java/com/ruzhoukj/sms/entity/SSLEntity.java
View file @
0cb3dc3c
...
...
@@ -15,7 +15,7 @@ import java.util.Date;
* @create 2024-08-16 13:42
*/
@Data
@TableName
(
value
=
"ssl"
)
@TableName
(
value
=
"ssl
_certificate
"
)
public
class
SSLEntity
{
@TableId
(
type
=
IdType
.
AUTO
)
...
...
src/main/resources/com/ruzhoukj/sms/dao/SSLDao.xml
View file @
0cb3dc3c
...
...
@@ -7,7 +7,7 @@
select id,
name,
time
from
`
ssl
`
from ssl
_certificate
where date_format(time, '%Y%M%d')
between
date_format(#{startDate}, '%Y%M%d')
...
...
@@ -18,7 +18,7 @@
select id,
name,
time
from
`
ssl
`
from ssl
_certificate
where date_format(time, '%Y%M%d')
between
date_format(now(), '%Y%M%d')
...
...
@@ -29,7 +29,7 @@
select id,
name,
time
from
`
ssl
`
from ssl
_certificate
order by time asc
</select>
</mapper>
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