Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
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
竹天卫
tianjin-cement
Commits
49af994f
Commit
49af994f
authored
Nov 20, 2020
by
mengbali153
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
非标产值:时间筛选
parent
671e0daa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
5 deletions
+27
-5
NonStandardValueController.java
...ement/business/controller/NonStandardValueController.java
+10
-2
NonStandardValue.java
...a/cn/wise/sc/cement/business/entity/NonStandardValue.java
+7
-1
NonStandardValueVo.java
.../wise/sc/cement/business/model/vo/NonStandardValueVo.java
+6
-0
INonStandardValueService.java
.../sc/cement/business/service/INonStandardValueService.java
+1
-1
NonStandardValueServiceImpl.java
...nt/business/service/impl/NonStandardValueServiceImpl.java
+3
-1
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/controller/NonStandardValueController.java
View file @
49af994f
...
...
@@ -42,9 +42,17 @@ public class NonStandardValueController {
@ApiOperation
(
value
=
"非标产值分页"
)
@GetMapping
(
"/getPage"
)
public
BaseResponse
getPage
(
PageQuery
pageQuery
,
Integer
userId
,
String
name
)
{
public
BaseResponse
getPage
(
PageQuery
pageQuery
,
Integer
userId
,
String
name
,
String
start
,
String
end
)
{
try
{
return
inonStandardValueService
.
getPage
(
pageQuery
,
userId
,
name
);
Date
startParse
=
null
;
if
(
StrUtil
.
isNotBlank
(
start
))
{
startParse
=
DateUtil
.
parse
(
start
);
}
Date
endParse
=
null
;
if
(
StrUtil
.
isNotBlank
(
end
))
{
endParse
=
DateUtil
.
parse
(
end
);
}
return
inonStandardValueService
.
getPage
(
pageQuery
,
userId
,
name
,
startParse
,
endParse
);
}
catch
(
Exception
e
)
{
log
.
debug
(
"非标产值分页列表{}"
,
e
);
}
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/entity/NonStandardValue.java
View file @
49af994f
...
...
@@ -35,9 +35,12 @@ public class NonStandardValue implements Serializable {
@ApiModelProperty
(
"起止日期"
)
private
String
statistical
;
@ApiModelProperty
(
"
审批
工时"
)
@ApiModelProperty
(
"
上报
工时"
)
private
Double
approvalHours
;
@ApiModelProperty
(
"上报工日"
)
private
Double
reportedHours
;
@ApiModelProperty
(
"状态 0:未提交 1:待审批 2:已通过 3:未通过"
)
private
Integer
status
;
...
...
@@ -56,6 +59,9 @@ public class NonStandardValue implements Serializable {
@ApiModelProperty
(
"开始时间"
)
private
LocalDate
startTime
;
@ApiModelProperty
(
"结束时间"
)
private
LocalDate
endTime
;
@ApiModelProperty
(
"用户id"
)
private
Integer
userId
;
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/model/vo/NonStandardValueVo.java
View file @
49af994f
...
...
@@ -25,6 +25,9 @@ public class NonStandardValueVo {
@ApiModelProperty
(
"起止时间"
)
private
String
statistical
;
@ApiModelProperty
(
"上报工日"
)
private
Double
reportedHours
;
@ApiModelProperty
(
"审批工时"
)
private
Double
approvalHours
;
...
...
@@ -46,6 +49,9 @@ public class NonStandardValueVo {
@ApiModelProperty
(
"开始时间"
)
private
LocalDate
startTime
;
@ApiModelProperty
(
"结束时间"
)
private
LocalDate
endTime
;
@ApiModelProperty
(
"用户id"
)
private
Integer
userId
;
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/INonStandardValueService.java
View file @
49af994f
...
...
@@ -27,7 +27,7 @@ public interface INonStandardValueService extends IService<NonStandardValue> {
* @param pageQuery 非标产值信息分页
* @return IPage<NoneStandardValue>
*/
BaseResponse
<
IPage
<
NonStandardValueVo
>>
getPage
(
PageQuery
pageQuery
,
Integer
userId
,
String
name
);
BaseResponse
<
IPage
<
NonStandardValueVo
>>
getPage
(
PageQuery
pageQuery
,
Integer
userId
,
String
name
,
Date
start
,
Date
end
);
/* //计算每个用户提交的非标产值
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/NonStandardValueServiceImpl.java
View file @
49af994f
...
...
@@ -34,8 +34,10 @@ public class NonStandardValueServiceImpl extends ServiceImpl<NonStandardValueMap
private
NonStandardValueMapper
nonStandardValueMapper
;
@Override
public
BaseResponse
<
IPage
<
NonStandardValueVo
>>
getPage
(
PageQuery
pageQuery
,
Integer
userId
,
String
name
)
{
public
BaseResponse
<
IPage
<
NonStandardValueVo
>>
getPage
(
PageQuery
pageQuery
,
Integer
userId
,
String
name
,
Date
start
,
Date
end
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"start"
,
start
);
params
.
put
(
"end"
,
end
);
params
.
put
(
"userId"
,
userId
);
params
.
put
(
"name"
,
name
);
params
.
put
(
"status"
,
2
);
...
...
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