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
bbfe519f
Commit
bbfe519f
authored
Aug 17, 2022
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 8612
parent
a02200af
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
9 deletions
+65
-9
SignDto.java
...ava/com/yeejoin/amos/boot/module/jcs/api/dto/SignDto.java
+14
-0
SignMapper.java
...m/yeejoin/amos/boot/module/jcs/api/mapper/SignMapper.java
+3
-0
SignMapper.xml
...t-module-jcs-api/src/main/resources/mapper/SignMapper.xml
+33
-0
SignController.java
...n/amos/boot/module/jcs/biz/controller/SignController.java
+7
-9
SignServiceImpl.java
...mos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
+8
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/SignDto.java
View file @
bbfe519f
...
@@ -6,6 +6,8 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -6,6 +6,8 @@ import io.swagger.annotations.ApiModelProperty;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -22,6 +24,12 @@ public class SignDto extends BaseDto {
...
@@ -22,6 +24,12 @@ public class SignDto extends BaseDto {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"当前页"
)
private
int
current
;
@ApiModelProperty
(
value
=
"每页几条"
)
private
int
size
;
@ApiModelProperty
(
value
=
"打卡人名字"
)
@ApiModelProperty
(
value
=
"打卡人名字"
)
private
String
name
;
private
String
name
;
...
@@ -58,6 +66,12 @@ public class SignDto extends BaseDto {
...
@@ -58,6 +66,12 @@ public class SignDto extends BaseDto {
@ApiModelProperty
(
value
=
"组件机构"
)
@ApiModelProperty
(
value
=
"组件机构"
)
private
String
orgCode
;
private
String
orgCode
;
@ApiModelProperty
(
value
=
"开始时间"
)
private
String
signTimeBIGGER
;
@ApiModelProperty
(
value
=
"结束时间"
)
private
String
signTimeLESS
;
@ApiModelProperty
(
value
=
"打卡类型"
)
@ApiModelProperty
(
value
=
"打卡类型"
)
private
String
type
;
private
String
type
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/SignMapper.java
View file @
bbfe519f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SignDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Sign
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Sign
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
...
@@ -12,4 +14,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -12,4 +14,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public
interface
SignMapper
extends
BaseMapper
<
Sign
>
{
public
interface
SignMapper
extends
BaseMapper
<
Sign
>
{
IPage
<
SignDto
>
queryForPage
(
IPage
page
,
SignDto
dto
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/SignMapper.xml
View file @
bbfe519f
...
@@ -2,4 +2,37 @@
...
@@ -2,4 +2,37 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.jcs.api.mapper.SignMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.jcs.api.mapper.SignMapper"
>
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.SignDto"
>
SELECT
sign.`sequence_nbr` sequenceNbr,
sign.name ,
sign.`job_title` jobTitle,
sign.`user_id` categoryName,
sign.type ,
sign.`biz_org_code` bizOrgCode,
sign.`biz_org_name` bizOrgName,
sign.`sign_time` signTime
FROM
cb_sign sign
<where>
<if
test=
"dto.name!=null and dto.name!=''"
>
and sign.`name`=#{dto.name}
</if>
<if
test=
"dto.type!=null and dto.type!=''"
>
and sign.type=#{dto.type})
</if>
<if
test=
"dto.signTimeBIGGER!=null and dto.signTimeBIGGER!=''"
>
and sign.sign_time >= #{dto.signTimeBIGGER}
</if>
<if
test=
"dto.signTimeLESS!=null and dto.signTimeLESS!=''"
>
and #{dto.signTimeLESS} >= sign.sign_time
</if>
<if
test=
"dto.bizOrgCode!=null and dto.bizOrgCode!=''"
>
and sign.biz_org_code like CONCAT(#{dto.bizOrgCode},'%')
</if>
</where>
order by sign.rec_date desc
</select>
</mapper>
</mapper>
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 @
bbfe519f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -90,19 +91,16 @@ public class SignController extends BaseController {
...
@@ -90,19 +91,16 @@ public class SignController extends BaseController {
/**
/**
* 列表分页查询
* 列表分页查询
*
*
* @param current 当前页
* @param current 每页大小
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@PostMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"打卡记录分页查询"
,
notes
=
"打卡记录分页查询"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"打卡记录分页查询"
,
notes
=
"打卡记录分页查询"
)
public
ResponseModel
<
Page
<
SignDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
IPage
<
SignDto
>>
queryForPage
(
@RequestBody
SignDto
dto
)
{
(
value
=
"size"
)
int
size
)
{
Page
<
SignDto
>
page
=
new
Page
<
SignDto
>();
Page
<
SignDto
>
page
=
new
Page
<
SignDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
dto
.
getCurrent
()
);
page
.
setSize
(
size
);
page
.
setSize
(
dto
.
getSize
()
);
return
ResponseHelper
.
buildResponse
(
signServiceImpl
.
queryForSignPage
(
page
));
return
ResponseHelper
.
buildResponse
(
signServiceImpl
.
queryForSignPage
ByMapper
(
page
,
dto
));
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
View file @
bbfe519f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Sign
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Sign
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.SignMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.SignMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.ISignService
;
import
com.yeejoin.amos.boot.module.jcs.api.service.ISignService
;
...
@@ -29,6 +30,13 @@ public class SignServiceImpl extends BaseService<SignDto,Sign,SignMapper> implem
...
@@ -29,6 +30,13 @@ public class SignServiceImpl extends BaseService<SignDto,Sign,SignMapper> implem
}
}
/**
/**
* 分页查询
*/
public
IPage
<
SignDto
>
queryForSignPageByMapper
(
IPage
<
SignDto
>
page
,
SignDto
dto
)
{
return
this
.
baseMapper
.
queryForPage
(
page
,
dto
);
}
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
SignDto
>
queryForSignList
()
{
public
List
<
SignDto
>
queryForSignList
()
{
...
...
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