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
a1c09428
Commit
a1c09428
authored
Jul 14, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交接班pdf下載
parent
f4288ce4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
183 additions
and
19 deletions
+183
-19
PdfUtils.java
...java/com/yeejoin/amos/boot/biz/common/utils/PdfUtils.java
+37
-2
ShiftChangeDutyDto.java
...join/amos/boot/module/jcs/api/dto/ShiftChangeDutyDto.java
+35
-0
ShiftChangePowerDto.java
...oin/amos/boot/module/jcs/api/dto/ShiftChangePowerDto.java
+34
-0
ShiftChangeServiceImpl.java
...t/module/jcs/biz/service/impl/ShiftChangeServiceImpl.java
+77
-17
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/PdfUtils.java
View file @
a1c09428
...
...
@@ -37,16 +37,51 @@ public class PdfUtils {
* @param size 高度
* @return
*/
public
static
PdfPCell
createCell
(
String
value
,
Font
font
,
int
align
,
int
colspan
,
int
row
,
int
size
){
public
static
PdfPCell
createCell
(
Object
value
,
Font
font
,
int
align
,
int
colspan
,
int
row
,
int
size
){
String
cellValue
;
if
(
value
==
null
)
{
cellValue
=
""
;
}
else
{
cellValue
=
value
.
toString
();
}
PdfPCell
cell
=
new
PdfPCell
();
cell
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cell
.
setHorizontalAlignment
(
align
);
cell
.
setColspan
(
colspan
);
cell
.
setPhrase
(
new
Phrase
(
cellValue
,
font
));
cell
.
setFixedHeight
(
size
);
if
(
row
!=
1
)
{
cell
.
setRowspan
(
row
);
}
return
cell
;
}
public
static
PdfPCell
createCell
(
Object
value
,
Font
font
,
int
align
,
int
colspan
,
int
row
,
int
size
,
boolean
flag
){
String
cellValue
;
if
(
value
==
null
)
{
cellValue
=
""
;
}
else
{
cellValue
=
value
.
toString
();
}
PdfPCell
cell
=
new
PdfPCell
();
cell
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cell
.
setHorizontalAlignment
(
align
);
cell
.
setColspan
(
colspan
);
cell
.
setPhrase
(
new
Phrase
(
v
alue
,
font
));
cell
.
setPhrase
(
new
Phrase
(
cellV
alue
,
font
));
cell
.
setFixedHeight
(
size
);
if
(
row
!=
1
)
{
cell
.
setRowspan
(
row
);
}
if
(
flag
)
{
cell
.
setBorderWidthLeft
(
0
);
cell
.
setBorderWidthTop
(
0
);
cell
.
setBorderWidthBottom
(
0
);
}
else
{
cell
.
setBorderWidthLeft
(
0
);
cell
.
setBorderWidthRight
(
0
);
cell
.
setBorderWidthTop
(
0
);
cell
.
setBorderWidthBottom
(
0
);
}
return
cell
;
}
public
static
PdfPCell
createCell
(
Image
image
,
int
align
,
int
colspan
){
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/ShiftChangeDutyDto.java
0 → 100644
View file @
a1c09428
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.List
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
"接警情况详情"
)
public
class
ShiftChangeDutyDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"重大警情"
)
private
String
majorAlertCount
=
"0"
;
@ApiModelProperty
(
value
=
"已结案"
)
private
String
finishedCount
=
"0"
;
@ApiModelProperty
(
value
=
"接警"
)
private
String
calledCount
=
"0"
;
@ApiModelProperty
(
value
=
"未结案"
)
private
String
unFinishedCount
=
"0"
;
@ApiModelProperty
(
value
=
"接警情况列表"
)
private
List
<
String
>
alertInfoList
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
alarmRemark
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/ShiftChangePowerDto.java
0 → 100644
View file @
a1c09428
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.List
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
"力量出动详情"
)
public
class
ShiftChangePowerDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"未归队车辆数"
)
private
String
no_return_car_count
=
"0"
;
@ApiModelProperty
(
value
=
"调派任务数"
)
private
String
transfer_count
=
"0"
;
@ApiModelProperty
(
value
=
"调派车辆数"
)
private
String
car_count
=
"0"
;
@ApiModelProperty
(
value
=
"已完成任务数"
)
private
String
end_count
=
"0"
;
@ApiModelProperty
(
value
=
"力量出动详情"
)
private
List
<
String
>
transferContent
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
powerRemark
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ShiftChangeServiceImpl.java
View file @
a1c09428
This diff is collapsed.
Click to expand it.
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