Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
ff04cb52
Commit
ff04cb52
authored
Aug 22, 2022
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 8612 任务 8695
parent
f51c7dbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
SignController.java
...n/amos/boot/module/jcs/biz/controller/SignController.java
+10
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/SignController.java
View file @
ff04cb52
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgPersonFormDto;
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.OrgPersonFormDto;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SinStaticDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SinStaticDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Sign
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -179,6 +180,15 @@ public class SignController extends BaseController {
...
@@ -179,6 +180,15 @@ public class SignController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存打卡记录"
,
notes
=
"保存打卡记录"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存打卡记录"
,
notes
=
"保存打卡记录"
)
@PostMapping
(
value
=
"/saveSign"
)
@PostMapping
(
value
=
"/saveSign"
)
public
ResponseModel
<
Boolean
>
hasSign
(
@RequestBody
SignDto
dto
)
{
public
ResponseModel
<
Boolean
>
hasSign
(
@RequestBody
SignDto
dto
)
{
QueryWrapper
<
Sign
>
signQueryWrapper
=
new
QueryWrapper
<>();
signQueryWrapper
.
eq
(
"user_id"
,
dto
.
getSignUserId
());
signQueryWrapper
.
eq
(
"date"
,
dto
.
getDate
());
signQueryWrapper
.
eq
(
"type"
,
dto
.
getType
());
Sign
one
=
signServiceImpl
.
getOne
(
signQueryWrapper
);
if
(
null
!=
one
)
{
return
ResponseHelper
.
buildResponse
(
true
);
}
return
ResponseHelper
.
buildResponse
(
signServiceImpl
.
saveSign
(
dto
));
return
ResponseHelper
.
buildResponse
(
signServiceImpl
.
saveSign
(
dto
));
}
}
}
}
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