Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
EIP-API
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
李炎
EIP-API
Commits
01a87ed7
提交
01a87ed7
authored
7月 06, 2021
作者:
Wangjiajie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改查看送货照片
上级
c0ee413c
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
72 行增加
和
39 行删除
+72
-39
IostDeliveryNoteController.java
.../iost/basedata/controller/IostDeliveryNoteController.java
+31
-22
IostReceivingNoteController.java
...iost/basedata/controller/IostReceivingNoteController.java
+0
-0
IostSummarySheetController.java
.../iost/basedata/controller/IostSummarySheetController.java
+17
-9
application-docker.yml
...t-module-system/src/main/resources/application-docker.yml
+3
-3
application.yml
jeecg-boot-module-system/src/main/resources/application.yml
+1
-1
SecurityToolsTest.java
...ule-system/src/test/java/org/jeecg/SecurityToolsTest.java
+16
-0
application-docker.yml
...-boot-module-system/target/classes/application-docker.yml
+3
-3
application.yml
jeecg-boot-module-system/target/classes/application.yml
+1
-1
IostDeliveryNoteController.class
...iost/basedata/controller/IostDeliveryNoteController.class
+0
-0
IostReceivingNoteController.class
...ost/basedata/controller/IostReceivingNoteController.class
+0
-0
IostSummarySheetController.class
...iost/basedata/controller/IostSummarySheetController.class
+0
-0
SecurityToolsTest.class
...tem/target/test-classes/org/jeecg/SecurityToolsTest.class
+0
-0
没有找到文件。
jeecg-boot-module-system/src/main/java/org/jeecg/modules/iost/basedata/controller/IostDeliveryNoteController.java
浏览文件 @
01a87ed7
...
@@ -15,6 +15,8 @@ import java.util.stream.Collectors;
...
@@ -15,6 +15,8 @@ import java.util.stream.Collectors;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
org.jeecg.modules.iost.basedata.entity.*
;
import
org.jeecg.modules.iost.basedata.service.*
;
import
org.jeecgframework.poi.excel.ExcelImportUtil
;
import
org.jeecgframework.poi.excel.ExcelImportUtil
;
import
org.jeecgframework.poi.excel.def.NormalExcelConstants
;
import
org.jeecgframework.poi.excel.def.NormalExcelConstants
;
import
org.jeecgframework.poi.excel.entity.ExportParams
;
import
org.jeecgframework.poi.excel.entity.ExportParams
;
...
@@ -26,17 +28,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
...
@@ -26,17 +28,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.common.util.oConvertUtils
;
import
org.jeecg.common.util.oConvertUtils
;
import
org.jeecg.modules.iost.basedata.entity.IostDeliveryNoteList
;
import
org.jeecg.modules.iost.basedata.entity.IostReceivingNote
;
import
org.jeecg.modules.iost.basedata.entity.IostReceivingNoteList
;
import
org.jeecg.modules.iost.basedata.entity.IostDeliveryNote
;
import
org.jeecg.modules.iost.basedata.entity.IostDeliveryRecord4Pics
;
import
org.jeecg.modules.iost.basedata.entity.IostDeliveryRecordPic
;
import
org.jeecg.modules.iost.basedata.vo.IostDeliveryNotePage
;
import
org.jeecg.modules.iost.basedata.vo.IostDeliveryNotePage
;
import
org.jeecg.modules.iost.basedata.vo.IostDeliveryRecordPage
;
import
org.jeecg.modules.iost.basedata.vo.IostDeliveryRecordPage
;
import
org.jeecg.modules.iost.basedata.service.IIostDeliveryNoteService
;
import
org.jeecg.modules.iost.basedata.service.IIostDeliveryRecordPicService
;
import
org.jeecg.modules.iost.basedata.service.IIostDeliveryNoteListService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ResourceUtils
;
import
org.springframework.util.ResourceUtils
;
...
@@ -83,6 +76,10 @@ public class IostDeliveryNoteController {
...
@@ -83,6 +76,10 @@ public class IostDeliveryNoteController {
private
IIostDeliveryNoteListService
iostDeliveryNoteListService
;
private
IIostDeliveryNoteListService
iostDeliveryNoteListService
;
@Autowired
@Autowired
private
IIostDeliveryRecordPicService
iostDeliveryRecordPicService
;
private
IIostDeliveryRecordPicService
iostDeliveryRecordPicService
;
@Autowired
private
IIostSummarySheetListService
iostSummarySheetListService
;
@Autowired
private
IIostSummarySheetService
iostSummarySheetService
;
/**
/**
* 分页列表查询
* 分页列表查询
...
@@ -145,7 +142,7 @@ public class IostDeliveryNoteController {
...
@@ -145,7 +142,7 @@ public class IostDeliveryNoteController {
/**
/**
* 编辑
* 编辑
*
*
* @param iostDelivery
Note
Page
* @param iostDelivery
Record
Page
* @return
* @return
*/
*/
@AutoLog
(
value
=
"delivery note-编辑"
)
@AutoLog
(
value
=
"delivery note-编辑"
)
...
@@ -184,18 +181,20 @@ public class IostDeliveryNoteController {
...
@@ -184,18 +181,20 @@ public class IostDeliveryNoteController {
@GetMapping
(
"/exportDeliveryNotePicPdf"
)
@GetMapping
(
"/exportDeliveryNotePicPdf"
)
@ApiOperation
(
value
=
"下载送货单报表(pdf)"
)
@ApiOperation
(
value
=
"下载送货单报表(pdf)"
)
public
void
exportDeliveryNotePicPdf
(
HttpServletResponse
response
,
@RequestParam
(
name
=
"deliveryRecordId"
,
required
=
true
)
String
deliveryRecordId
)
throws
IOException
,
DocumentException
{
public
void
exportDeliveryNotePicPdf
(
HttpServletResponse
response
,
@RequestParam
(
name
=
"deliveryRecordId"
,
required
=
true
)
String
deliveryRecordId
)
throws
IOException
,
DocumentException
{
QueryWrapper
<
IostSummarySheet
>
iostSummarySheetQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
IostDeliveryRecordPic
>
iostDeliveryRecordPicWrapper
=
new
QueryWrapper
<>();
iostSummarySheetQueryWrapper
.
eq
(
"delivery_record_id"
,
deliveryRecordId
);
iostDeliveryRecordPicWrapper
.
eq
(
"id"
,
deliveryRecordId
);
IostSummarySheet
iostSummarySheets
=
iostSummarySheetService
.
getBaseMapper
().
selectOne
(
iostSummarySheetQueryWrapper
);
List
<
IostDeliveryRecordPic
>
recordPics
=
iostDeliveryRecordPicService
.
list
(
iostDeliveryRecordPicWrapper
);
List
<
IostSummarySheetList
>
iostSummarySheetLists
=
iostSummarySheetListService
.
selectByMainId
(
iostSummarySheets
.
getId
());
List
<
IostDeliveryRecordPic
>
recordPics
=
new
ArrayList
<>();
for
(
IostSummarySheetList
iostSummarySheetList:
iostSummarySheetLists
)
{
recordPics
.
add
(
iostDeliveryRecordPicService
.
getBaseMapper
().
selectById
(
iostSummarySheetList
.
getId
()));
}
String
fileName
=
"Delivery Note"
;
String
fileName
=
"Delivery Note"
;
response
.
setContentType
(
"application/x-download"
);
response
.
setContentType
(
"application/x-download"
);
response
.
addHeader
(
"Content-Disposition"
,
"attachment;filename="
+
new
String
(
fileName
.
getBytes
(
"utf-8"
),
"ISO8859-1"
)+
".pdf"
);
response
.
addHeader
(
"Content-Disposition"
,
"attachment;filename="
+
new
String
(
fileName
.
getBytes
(
"utf-8"
),
"ISO8859-1"
)+
".pdf"
);
//加载字体
//加载字体
BaseFont
bfChinese
=
BaseFont
.
createFont
(
"/wmssystem/config/res/stsong.ttf"
,
BaseFont
.
IDENTITY_H
,
BaseFont
.
NOT_EMBEDDED
);
BaseFont
bfChinese
=
BaseFont
.
createFont
(
"/wmssystem/config/res/stsong.ttf"
,
BaseFont
.
IDENTITY_H
,
BaseFont
.
NOT_EMBEDDED
);
//Create Document Instance
//Create Document Instance
Document
document
=
new
Document
(
PageSize
.
A4
);
Document
document
=
new
Document
(
PageSize
.
A4
);
Font
textFont
=
new
Font
(
bfChinese
,
6
,
Font
.
NORMAL
);
Font
textFont
=
new
Font
(
bfChinese
,
6
,
Font
.
NORMAL
);
...
@@ -214,8 +213,10 @@ public class IostDeliveryNoteController {
...
@@ -214,8 +213,10 @@ public class IostDeliveryNoteController {
document
.
newPage
();
document
.
newPage
();
addTitle
(
document
,
textFont
);
addTitle
(
document
,
textFont
);
PdfPTable
detailTable
=
new
PdfPTable
(
1
);
PdfPTable
detailTable
=
new
PdfPTable
(
1
);
Image
img
=
getImg
(
iostDeliveryRecordPic
)
;
List
<
Image
>
img
=
getImg
(
iostDeliveryRecordPic
)
;
PdfPCell
cell
=
new
PdfPCell
(
img
);
cell
.
setBorder
(
PdfPCell
.
NO_BORDER
);
detailTable
.
addCell
(
cell
);
for
(
Image
imagelist:
img
)
{
PdfPCell
cell
=
new
PdfPCell
(
imagelist
);
cell
.
setBorder
(
PdfPCell
.
NO_BORDER
);
detailTable
.
addCell
(
cell
);
}
//cell.setFixedHeight(img.getHeight() * (60 / img.getWidth()));cell.setFixedHeight(200);
//cell.setFixedHeight(img.getHeight() * (60 / img.getWidth()));cell.setFixedHeight(200);
document
.
add
(
detailTable
);
document
.
add
(
detailTable
);
}
}
...
@@ -238,9 +239,18 @@ public class IostDeliveryNoteController {
...
@@ -238,9 +239,18 @@ public class IostDeliveryNoteController {
* @param flag 1 url形式 2本地存储形式
* @param flag 1 url形式 2本地存储形式
* @return
* @return
*/
*/
public
Image
getImg
(
IostDeliveryRecordPic
iostDeliveryRecordPic
)
throws
IOException
,
BadElementException
{
public
List
<
Image
>
getImg
(
IostDeliveryRecordPic
iostDeliveryRecordPic
)
throws
IOException
,
BadElementException
{
Image
img
=
Image
.
getInstance
(
"/wmssystem/storage/opt/upFiles/"
+
iostDeliveryRecordPic
.
getPic
());
List
<
Image
>
imageList
=
new
ArrayList
<>();
return
img
;
//获取字符串
String
string
=
iostDeliveryRecordPic
.
getPic
();
//分割字符串
String
substring
=
string
.
substring
(
0
,
string
.
length
());
String
[]
result
=
substring
.
split
(
","
);
for
(
int
i
=
0
;
i
<
result
.
length
;
i
++){
imageList
.
add
(
Image
.
getInstance
(
"/wmssystem/storage/opt/upFiles/"
+
result
[
i
]));
}
return
imageList
;
}
}
...
@@ -278,7 +288,6 @@ public class IostDeliveryNoteController {
...
@@ -278,7 +288,6 @@ public class IostDeliveryNoteController {
//加载字体
//加载字体
BaseFont
bfChinese
=
BaseFont
.
createFont
(
"/wmssystem/config/res/stsong.ttf"
,
BaseFont
.
IDENTITY_H
,
BaseFont
.
NOT_EMBEDDED
);
BaseFont
bfChinese
=
BaseFont
.
createFont
(
"/wmssystem/config/res/stsong.ttf"
,
BaseFont
.
IDENTITY_H
,
BaseFont
.
NOT_EMBEDDED
);
//字体
//字体
Font
titleFont
=
new
Font
(
bfChinese
,
20
,
Font
.
BOLD
);
Font
titleFont
=
new
Font
(
bfChinese
,
20
,
Font
.
BOLD
);
Font
keyFont
=
new
Font
(
bfChinese
,
8
,
Font
.
NORMAL
);
Font
keyFont
=
new
Font
(
bfChinese
,
8
,
Font
.
NORMAL
);
...
...
jeecg-boot-module-system/src/main/java/org/jeecg/modules/iost/basedata/controller/IostReceivingNoteController.java
浏览文件 @
01a87ed7
差异被折叠。
点击展开。
jeecg-boot-module-system/src/main/java/org/jeecg/modules/iost/basedata/controller/IostSummarySheetController.java
浏览文件 @
01a87ed7
...
@@ -551,18 +551,26 @@ public class IostSummarySheetController {
...
@@ -551,18 +551,26 @@ public class IostSummarySheetController {
double
totleMoney
=
0
;
//金额总
double
totleMoney
=
0
;
//金额总
for
(
IostSummarySheetList
iostSummarySheetList:
iostSummarySheetLists
)
for
(
IostSummarySheetList
iostSummarySheetList:
iostSummarySheetLists
)
{
{
BigDecimal
A1
=
new
BigDecimal
(
Double
.
toString
(
totlevolume
));
BigDecimal
A1
;
BigDecimal
A2
=
new
BigDecimal
(
Double
.
toString
(
iostSummarySheetList
.
getVolume
()));
BigDecimal
A2
;
totlevolume
=
A1
.
add
(
A2
).
doubleValue
();
if
(
iostSummarySheetList
.
getVolume
()!=
null
){
A1
=
new
BigDecimal
(
Double
.
toString
(
totleWeightTotal
));
A1
=
new
BigDecimal
(
Double
.
toString
(
totlevolume
));
A2
=
new
BigDecimal
(
Double
.
toString
(
iostSummarySheetList
.
getWeight
()));
A2
=
new
BigDecimal
(
Double
.
toString
(
iostSummarySheetList
.
getVolume
()));
totleWeightTotal
=
A1
.
add
(
A2
).
doubleValue
();
totlevolume
=
A1
.
add
(
A2
).
doubleValue
();
}
if
(
iostSummarySheetList
.
getWeight
()!=
null
){
A1
=
new
BigDecimal
(
Double
.
toString
(
totleWeightTotal
));
A2
=
new
BigDecimal
(
Double
.
toString
(
iostSummarySheetList
.
getWeight
()));
totleWeightTotal
=
A1
.
add
(
A2
).
doubleValue
();
}
if
(
iostSummarySheetList
.
getPackages
()!=
null
){
if
(
iostSummarySheetList
.
getPackages
()!=
null
){
totlePackagesTotal
=
totlePackagesTotal
+
iostSummarySheetList
.
getPackages
();
totlePackagesTotal
=
totlePackagesTotal
+
iostSummarySheetList
.
getPackages
();
}
}
A1
=
new
BigDecimal
(
Double
.
toString
(
totleMoney
));
if
(
iostSummarySheetList
.
getMoney
()!=
null
){
A2
=
new
BigDecimal
(
Double
.
toString
(
iostSummarySheetList
.
getMoney
()));
A1
=
new
BigDecimal
(
Double
.
toString
(
totleMoney
));
totleMoney
=
A1
.
add
(
A2
).
doubleValue
();
A2
=
new
BigDecimal
(
Double
.
toString
(
iostSummarySheetList
.
getMoney
()));
totleMoney
=
A1
.
add
(
A2
).
doubleValue
();
}
}
}
IostSummarySheetList
iostSummarySheetList
=
new
IostSummarySheetList
();
IostSummarySheetList
iostSummarySheetList
=
new
IostSummarySheetList
();
...
...
jeecg-boot-module-system/src/main/resources/application-docker.yml
浏览文件 @
01a87ed7
7
server
:
server
:
port
:
8080
port
:
8080
tomcat
:
tomcat
:
max-swallow-size
:
-1
max-swallow-size
:
-1
...
@@ -127,7 +127,7 @@ spring:
...
@@ -127,7 +127,7 @@ spring:
connectionProperties
:
druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
connectionProperties
:
druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource
:
datasource
:
master
:
master
:
url
:
jdbc:mysql://
wmssystem-mysql:3306
/wmssystem?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://
nf.lingqingkeji.com:13579
/wmssystem?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
gf^*i6%&9J83&(*kJ653F&L
password
:
gf^*i6%&9J83&(*kJ653F&L
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
@@ -140,7 +140,7 @@ spring:
...
@@ -140,7 +140,7 @@ spring:
#redis 配置
#redis 配置
redis
:
redis
:
database
:
0
database
:
0
host
:
wmssystem-redis
host
:
127.0.0.1
lettuce
:
lettuce
:
pool
:
pool
:
max-active
:
8
#最大连接数据库连接数,设 0 为没有限制
max-active
:
8
#最大连接数据库连接数,设 0 为没有限制
...
...
jeecg-boot-module-system/src/main/resources/application.yml
浏览文件 @
01a87ed7
spring
:
spring
:
profiles
:
profiles
:
active
:
test
active
:
docker
swagger
:
swagger
:
production
:
false
production
:
false
basic
:
basic
:
...
...
jeecg-boot-module-system/src/test/java/org/jeecg/SecurityToolsTest.java
浏览文件 @
01a87ed7
package
org
.
jeecg
;
package
org
.
jeecg
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.common.util.security.SecurityTools
;
import
org.jeecg.common.util.security.SecurityTools
;
import
org.jeecg.common.util.security.entity.*
;
import
org.jeecg.common.util.security.entity.*
;
import
org.jeecg.modules.iost.basedata.entity.IostDeliveryRecordPic
;
import
org.jeecg.modules.iost.basedata.entity.IostReceivingNote
;
import
org.jeecg.modules.iost.basedata.mapper.IostDeliveryRecordPicMapper
;
import
org.jeecg.modules.iost.basedata.service.IIostDeliveryRecordPageService
;
import
org.jeecg.modules.iost.basedata.service.IIostDeliveryRecordPicService
;
import
org.jeecg.modules.iost.basedata.service.impl.IostDeliveryRecordPicServiceImpl
;
import
org.jeecg.modules.iost.basedata.vo.IostDeliveryRecordPage
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.io.Serializable
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
public
class
SecurityToolsTest
{
public
class
SecurityToolsTest
{
@Test
@Test
...
...
jeecg-boot-module-system/target/classes/application-docker.yml
浏览文件 @
01a87ed7
7
server
:
server
:
port
:
8080
port
:
8080
tomcat
:
tomcat
:
max-swallow-size
:
-1
max-swallow-size
:
-1
...
@@ -127,7 +127,7 @@ spring:
...
@@ -127,7 +127,7 @@ spring:
connectionProperties
:
druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
connectionProperties
:
druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource
:
datasource
:
master
:
master
:
url
:
jdbc:mysql://
wmssystem-mysql:3306
/wmssystem?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://
nf.lingqingkeji.com:13579
/wmssystem?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
gf^*i6%&9J83&(*kJ653F&L
password
:
gf^*i6%&9J83&(*kJ653F&L
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
@@ -140,7 +140,7 @@ spring:
...
@@ -140,7 +140,7 @@ spring:
#redis 配置
#redis 配置
redis
:
redis
:
database
:
0
database
:
0
host
:
wmssystem-redis
host
:
127.0.0.1
lettuce
:
lettuce
:
pool
:
pool
:
max-active
:
8
#最大连接数据库连接数,设 0 为没有限制
max-active
:
8
#最大连接数据库连接数,设 0 为没有限制
...
...
jeecg-boot-module-system/target/classes/application.yml
浏览文件 @
01a87ed7
spring
:
spring
:
profiles
:
profiles
:
active
:
test
active
:
docker
swagger
:
swagger
:
production
:
false
production
:
false
basic
:
basic
:
...
...
jeecg-boot-module-system/target/classes/org/jeecg/modules/iost/basedata/controller/IostDeliveryNoteController.class
浏览文件 @
01a87ed7
No preview for this file type
jeecg-boot-module-system/target/classes/org/jeecg/modules/iost/basedata/controller/IostReceivingNoteController.class
浏览文件 @
01a87ed7
No preview for this file type
jeecg-boot-module-system/target/classes/org/jeecg/modules/iost/basedata/controller/IostSummarySheetController.class
浏览文件 @
01a87ed7
No preview for this file type
jeecg-boot-module-system/target/test-classes/org/jeecg/SecurityToolsTest.class
浏览文件 @
01a87ed7
No preview for this file type
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论