Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_api
Project
Project
Details
Activity
Releases
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
高宇
dataC_api
Commits
656b39f5
Commit
656b39f5
authored
May 27, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入
parent
50a709a3
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1219 additions
and
142 deletions
+1219
-142
jnP7sjController.java
...a/org/rcisoft/bus/jnP7sj/controller/jnP7sjController.java
+10
-2
jnP7sjRepository.java
...ain/java/org/rcisoft/bus/jnP7sj/dao/jnP7sjRepository.java
+5
-1
jnP7sjExportTemplateDto.java
...a/org/rcisoft/bus/jnP7sj/dto/jnP7sjExportTemplateDto.java
+22
-20
jnP7sj.java
src/main/java/org/rcisoft/bus/jnP7sj/entity/jnP7sj.java
+261
-21
jnP7sjServiceImpl.java
...rg/rcisoft/bus/jnP7sj/service/impl/jnP7sjServiceImpl.java
+21
-3
jnP7sjService.java
...in/java/org/rcisoft/bus/jnP7sj/service/jnP7sjService.java
+2
-1
Jnsp7xtmStatisticsRepository.java
...cisoft/bus/jnsp7xtm/dao/Jnsp7xtmStatisticsRepository.java
+3
-3
Jnsp7xtmPageRequestDto.java
.../org/rcisoft/bus/jnsp7xtm/dto/Jnsp7xtmPageRequestDto.java
+4
-0
ColTransitionEnum.java
...ava/org/rcisoft/bus/jnsp7xtm/enums/ColTransitionEnum.java
+26
-0
Jnsp7xtmDqsjType.java
...java/org/rcisoft/bus/jnsp7xtm/enums/Jnsp7xtmDqsjType.java
+17
-0
Jnsp7xtmService.java
...ava/org/rcisoft/bus/jnsp7xtm/service/Jnsp7xtmService.java
+1
-0
Jnsp7xtmStatisticService.java
...cisoft/bus/jnsp7xtm/service/Jnsp7xtmStatisticService.java
+4
-1
Jnsp7xtmServiceImpl.java
...cisoft/bus/jnsp7xtm/service/impl/Jnsp7xtmServiceImpl.java
+232
-39
Jnsp7xtmStatisticServiceImpl.java
...s/jnsp7xtm/service/impl/Jnsp7xtmStatisticServiceImpl.java
+147
-36
Jnsp7xtmVo.java
src/main/java/org/rcisoft/bus/jnsp7xtm/vo/Jnsp7xtmVo.java
+174
-0
ExportToExcelUtil.java
src/main/java/org/rcisoft/util/ExportToExcelUtil.java
+5
-7
jnP7sjRepository.xml
...n/resources/mapper/bus/jnP7sj/mapper/jnP7sjRepository.xml
+285
-8
No files found.
src/main/java/org/rcisoft/bus/jnP7sj/controller/jnP7sjController.java
View file @
656b39f5
...
@@ -110,11 +110,19 @@ public class jnP7sjController extends CyPaginationController<jnP7sj> {
...
@@ -110,11 +110,19 @@ public class jnP7sjController extends CyPaginationController<jnP7sj> {
List
<
jnP7sj
>
jnP7sjList
=
jnP7sjServiceImpl
.
export
(
jnP7sj
);
List
<
jnP7sj
>
jnP7sjList
=
jnP7sjServiceImpl
.
export
(
jnP7sj
);
ExportToExcelUtil
.
exportExcel
(
jnP7sjList
,
"jnP7sj信息"
,
"jnP7sj信息"
,
jnP7sj
.
class
,
excelName
,
response
);
ExportToExcelUtil
.
exportExcel
(
jnP7sjList
,
"jnP7sj信息"
,
"jnP7sj信息"
,
jnP7sj
.
class
,
excelName
,
response
);
}
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-查询月份下拉框"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"查询月份下拉框"
,
notes
=
"查询月份下拉框"
)
@GetMapping
(
value
=
"/getMonth"
)
public
CyResult
getMonth
()
{
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
jnP7sjServiceImpl
.
getMonth
());
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-下载空模板"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-下载空模板"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"下载空模板"
,
notes
=
"下载空模板"
)
@ApiOperation
(
value
=
"下载空模板"
,
notes
=
"下载空模板"
)
@GetMapping
(
value
=
"/jnP7sjDownEmptyTemplate"
)
@GetMapping
(
value
=
"/jnP7sjDownEmptyTemplate"
)
public
void
jn
sp7xtmDq
sjDownEmptyTemplate
(
jnP7sjPageHandleDto
jnP7sjPageHandleDto
,
HttpServletResponse
response
)
{
public
void
jn
P7
sjDownEmptyTemplate
(
jnP7sjPageHandleDto
jnP7sjPageHandleDto
,
HttpServletResponse
response
)
{
jnP7sjServiceImpl
.
jnP7sjDownEmptyTemplate
(
jnP7sjPageHandleDto
,
response
);
jnP7sjServiceImpl
.
jnP7sjDownEmptyTemplate
(
jnP7sjPageHandleDto
,
response
);
}
}
...
...
src/main/java/org/rcisoft/bus/jnP7sj/dao/jnP7sjRepository.java
View file @
656b39f5
...
@@ -2,7 +2,10 @@ package org.rcisoft.bus.jnP7sj.dao;
...
@@ -2,7 +2,10 @@ package org.rcisoft.bus.jnP7sj.dao;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.ResultHandler
;
import
org.rcisoft.bus.jnP7sj.dto.jnP7sjPageHandleDto
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnsp7xtm.vo.Jnsp7xtmVo
;
import
org.rcisoft.core.mapper.CyBaseMapper
;
import
org.rcisoft.core.mapper.CyBaseMapper
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPageInfo
;
...
@@ -20,11 +23,12 @@ public interface jnP7sjRepository extends CyBaseMapper<jnP7sj> {
...
@@ -20,11 +23,12 @@ public interface jnP7sjRepository extends CyBaseMapper<jnP7sj> {
* 根据cc 查询客户有关的信息
* 根据cc 查询客户有关的信息
* **/
* **/
List
<
jnP7sj
>
queryCustomer
(
@Param
(
"cc"
)
String
cc
);
List
<
jnP7sj
>
queryCustomer
(
@Param
(
"cc"
)
String
cc
);
Integer
queryTotaljnP7sj
();
/**
/**
* 根据pn 查询sypn的值
* 根据pn 查询sypn的值
* **/
* **/
List
<
String
>
querySypnByPn
(
@Param
(
"pn"
)
String
pn
);
List
<
String
>
querySypnByPn
(
@Param
(
"pn"
)
String
pn
);
void
streamQuery
(
ResultHandler
<
Jnsp7xtmVo
>
handler
,
@Param
(
"entity"
)
jnP7sjPageHandleDto
jnsp7xtmDqsjPageHandleDto
);
}
}
src/main/java/org/rcisoft/bus/jnP7sj/dto/jnP7sjExportTemplateDto.java
View file @
656b39f5
...
@@ -9,6 +9,7 @@ import lombok.Data;
...
@@ -9,6 +9,7 @@ import lombok.Data;
public
class
jnP7sjExportTemplateDto
{
public
class
jnP7sjExportTemplateDto
{
@Excel
(
name
=
"term"
,
orderNum
=
"0"
,
width
=
20
)
@Excel
(
name
=
"term"
,
orderNum
=
"0"
,
width
=
20
)
private
String
term
;
private
String
term
;
...
@@ -16,44 +17,45 @@ public class jnP7sjExportTemplateDto {
...
@@ -16,44 +17,45 @@ public class jnP7sjExportTemplateDto {
@Excel
(
name
=
"month"
,
orderNum
=
"1"
,
width
=
20
)
@Excel
(
name
=
"month"
,
orderNum
=
"1"
,
width
=
20
)
private
String
month
;
private
String
month
;
@Excel
(
name
=
"half"
,
orderNum
=
"2"
,
width
=
20
)
private
String
half
;
@Excel
(
name
=
"cc"
,
orderNum
=
"2"
,
width
=
20
)
@Excel
(
name
=
"quarter"
,
orderNum
=
"3"
,
width
=
20
)
private
String
quarter
;
@Excel
(
name
=
"io"
,
orderNum
=
"4"
,
width
=
20
)
private
String
io
;
@Excel
(
name
=
"cc"
,
orderNum
=
"5"
,
width
=
20
)
private
String
cc
;
private
String
cc
;
@Excel
(
name
=
"cn"
,
orderNum
=
"6"
,
width
=
20
)
private
String
cn
;
@Excel
(
name
=
"route"
,
orderNum
=
"
7
"
,
width
=
20
)
@Excel
(
name
=
"route"
,
orderNum
=
"
4
"
,
width
=
20
)
private
String
route
;
private
String
route
;
@Excel
(
name
=
"pc"
,
orderNum
=
"
8
"
,
width
=
20
)
@Excel
(
name
=
"pc"
,
orderNum
=
"
5
"
,
width
=
20
)
private
String
pc
;
private
String
pc
;
@Excel
(
name
=
"factory"
,
orderNum
=
"
9
"
,
width
=
20
)
@Excel
(
name
=
"factory"
,
orderNum
=
"
6
"
,
width
=
20
)
private
String
factory
;
private
String
factory
;
@Excel
(
name
=
"size"
,
orderNum
=
"
10
"
,
width
=
20
)
@Excel
(
name
=
"size"
,
orderNum
=
"
7
"
,
width
=
20
)
private
String
size
;
private
String
size
;
@Excel
(
name
=
"pn"
,
orderNum
=
"
11
"
,
width
=
20
)
@Excel
(
name
=
"pn"
,
orderNum
=
"
8
"
,
width
=
20
)
private
String
pn
;
private
String
pn
;
@Excel
(
name
=
"po"
,
orderNum
=
"
12
"
,
width
=
20
)
@Excel
(
name
=
"po"
,
orderNum
=
"
9
"
,
width
=
20
)
private
String
po
;
private
String
po
;
@Excel
(
name
=
"fc"
,
orderNum
=
"1
3
"
,
width
=
20
)
@Excel
(
name
=
"fc"
,
orderNum
=
"1
0
"
,
width
=
20
)
private
String
fc
;
private
String
fc
;
@Excel
(
name
=
"qty"
,
orderNum
=
"1
4
"
,
width
=
20
)
@Excel
(
name
=
"qty"
,
orderNum
=
"1
1
"
,
width
=
20
)
private
String
qty
;
private
String
qty
;
@Excel
(
name
=
"sypn"
,
orderNum
=
"12"
,
width
=
20
)
@Excel
(
name
=
"sypn"
,
orderNum
=
"15"
,
width
=
20
)
private
String
sypn
;
private
String
sypn
;
@Excel
(
name
=
"currency"
,
orderNum
=
"13"
,
width
=
20
)
private
String
currency
;
@Excel
(
name
=
"rate"
,
orderNum
=
"14"
,
width
=
20
)
private
String
rate
;
}
@Excel
(
name
=
"amt"
,
orderNum
=
"15"
,
width
=
20
)
private
String
amt
;
@Excel
(
name
=
"up"
,
orderNum
=
"16"
,
width
=
20
)
private
String
up
;
}
src/main/java/org/rcisoft/bus/jnP7sj/entity/jnP7sj.java
View file @
656b39f5
This diff is collapsed.
Click to expand it.
src/main/java/org/rcisoft/bus/jnP7sj/service/impl/jnP7sjServiceImpl.java
View file @
656b39f5
...
@@ -17,6 +17,7 @@ import org.rcisoft.bus.jnP7sj.dto.jnP7sjImportDto;
...
@@ -17,6 +17,7 @@ import org.rcisoft.bus.jnP7sj.dto.jnP7sjImportDto;
import
org.rcisoft.bus.jnP7sj.dto.jnP7sjPageHandleDto
;
import
org.rcisoft.bus.jnP7sj.dto.jnP7sjPageHandleDto
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnP7sj.service.jnP7sjService
;
import
org.rcisoft.bus.jnP7sj.service.jnP7sjService
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmOptionDto
;
import
org.rcisoft.core.exception.CyServiceException
;
import
org.rcisoft.core.exception.CyServiceException
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.model.CyPersistModel
;
...
@@ -52,6 +53,15 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
...
@@ -52,6 +53,15 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
//
//
private
static
Lock
finallyButtonLockLock
=
new
ReentrantLock
();
private
static
Lock
finallyButtonLockLock
=
new
ReentrantLock
();
@Value
(
"${jnP7sj.batchAddPagesize}"
)
private
Integer
batchInsertSize
;
@Value
(
"${jnP7sj.pageQuestSize}"
)
private
Integer
pageQuerySize
;
@Value
(
"${jnP7sj.shema}"
)
private
String
shema
;
@Value
(
"${jnP7sj.importBatchAddSize}"
)
@Value
(
"${jnP7sj.importBatchAddSize}"
)
private
Integer
importBatchAddSize
;
private
Integer
importBatchAddSize
;
...
@@ -101,7 +111,14 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
...
@@ -101,7 +111,14 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
return
baseMapper
.
queryjnP7sjPaged
(
paginationUtility
,
jnP7sj
);
return
baseMapper
.
queryjnP7sjPaged
(
paginationUtility
,
jnP7sj
);
}
}
@Override
public
Jnsp7xtmOptionDto
getMonth
()
{
Jnsp7xtmOptionDto
jnsp7xtmOptionDto
=
new
Jnsp7xtmOptionDto
();
List
<
String
>
monthList
=
baseMapper
.
getMonthList
();
jnsp7xtmOptionDto
.
setLabel
(
"month"
);
jnsp7xtmOptionDto
.
setPullDownList
(
monthList
);
return
jnsp7xtmOptionDto
;
}
@Override
@Override
public
List
<
jnP7sj
>
findAll
(
jnP7sj
jnP7sj
)
{
public
List
<
jnP7sj
>
findAll
(
jnP7sj
jnP7sj
)
{
return
baseMapper
.
queryjnP7sj
(
jnP7sj
);
return
baseMapper
.
queryjnP7sj
(
jnP7sj
);
...
@@ -113,6 +130,7 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
...
@@ -113,6 +130,7 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
return
jnP7sjList
;
return
jnP7sjList
;
}
}
@Override
@Override
public
void
jnP7sjDownEmptyTemplate
(
jnP7sjPageHandleDto
jnsp7xtmDqsjPageHandleDto
,
HttpServletResponse
response
)
{
public
void
jnP7sjDownEmptyTemplate
(
jnP7sjPageHandleDto
jnsp7xtmDqsjPageHandleDto
,
HttpServletResponse
response
)
{
// 导出空模板
// 导出空模板
...
@@ -127,7 +145,7 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
...
@@ -127,7 +145,7 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
List
<
jnP7sjExportTemplateDto
>
exportList
=
new
ArrayList
<>();
List
<
jnP7sjExportTemplateDto
>
exportList
=
new
ArrayList
<>();
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
jnP7sjExportTemplateDto
.
class
,
exportList
);
workbook
=
ExcelExportUtil
.
exportExcel
(
exportParams
,
jnP7sjExportTemplateDto
.
class
,
exportList
);
Sheet
sheet
=
workbook
.
getSheetAt
(
0
);
Sheet
sheet
=
workbook
.
getSheetAt
(
0
);
String
[]
termList
=
new
String
[]{
"L"
,
"c"
};
String
[]
termList
=
new
String
[]{
"L"
,
"c"
};
ExportToExcelUtil
.
XSSFSetDropDownAndHidden
(
termList
,
workbook
,
sheet
,
1
,
100000
,
0
,
0
);
ExportToExcelUtil
.
XSSFSetDropDownAndHidden
(
termList
,
workbook
,
sheet
,
1
,
100000
,
0
,
0
);
outputStream
=
response
.
getOutputStream
();
outputStream
=
response
.
getOutputStream
();
workbook
.
write
(
outputStream
);
workbook
.
write
(
outputStream
);
...
@@ -192,6 +210,7 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
...
@@ -192,6 +210,7 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
jnP7sj
=
dqsjList
.
get
(
0
);
jnP7sj
=
dqsjList
.
get
(
0
);
}
}
}
}
jnP7sj
finallyjnP7sj
=
jnP7sj
.
generatejnP7sj
(
dataList
.
get
(
i
),
jnP7sj
);
jnP7sj
finallyjnP7sj
=
jnP7sj
.
generatejnP7sj
(
dataList
.
get
(
i
),
jnP7sj
);
if
(
StringUtils
.
isNotEmpty
(
dataList
.
get
(
i
).
getPn
()))
{
if
(
StringUtils
.
isNotEmpty
(
dataList
.
get
(
i
).
getPn
()))
{
List
<
String
>
list
=
baseMapper
.
querySypnByPn
(
dataList
.
get
(
i
).
getPn
());
List
<
String
>
list
=
baseMapper
.
querySypnByPn
(
dataList
.
get
(
i
).
getPn
());
...
@@ -210,7 +229,6 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
...
@@ -210,7 +229,6 @@ public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> imp
if
(
CollectionUtil
.
isNotEmpty
(
jnP7sjList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
jnP7sjList
))
{
baseMapper
.
batchAddjnP7sj
(
jnP7sjList
);
baseMapper
.
batchAddjnP7sj
(
jnP7sjList
);
}
}
jnP7sjImportDto
.
setTotal
(
dataList
.
size
());
jnP7sjImportDto
.
setTotal
(
dataList
.
size
());
jnP7sjImportDto
.
setRows
(
rows
);
jnP7sjImportDto
.
setRows
(
rows
);
return
jnP7sjImportDto
;
return
jnP7sjImportDto
;
...
...
src/main/java/org/rcisoft/bus/jnP7sj/service/jnP7sjService.java
View file @
656b39f5
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
org.rcisoft.bus.jnP7sj.dto.jnP7sjImportDto
;
import
org.rcisoft.bus.jnP7sj.dto.jnP7sjImportDto
;
import
org.rcisoft.bus.jnP7sj.dto.jnP7sjPageHandleDto
;
import
org.rcisoft.bus.jnP7sj.dto.jnP7sjPageHandleDto
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmOptionDto
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
...
@@ -23,7 +24,7 @@ public interface jnP7sjService {
...
@@ -23,7 +24,7 @@ public interface jnP7sjService {
jnP7sj
findById
(
int
id
);
jnP7sj
findById
(
int
id
);
IPage
<
jnP7sj
>
findAllByPagination
(
CyPageInfo
<
jnP7sj
>
paginationUtility
,
jnP7sj
jnP7sj
);
IPage
<
jnP7sj
>
findAllByPagination
(
CyPageInfo
<
jnP7sj
>
paginationUtility
,
jnP7sj
jnP7sj
);
Jnsp7xtmOptionDto
getMonth
();
List
<
jnP7sj
>
findAll
(
jnP7sj
jnP7sj
);
List
<
jnP7sj
>
findAll
(
jnP7sj
jnP7sj
);
List
<
jnP7sj
>
export
(
jnP7sj
jnP7sj
);
List
<
jnP7sj
>
export
(
jnP7sj
jnP7sj
);
...
...
src/main/java/org/rcisoft/bus/jnsp7xtm/dao/Jnsp7xtmStatisticsRepository.java
View file @
656b39f5
...
@@ -2,8 +2,8 @@ package org.rcisoft.bus.jnsp7xtm.dao;
...
@@ -2,8 +2,8 @@ package org.rcisoft.bus.jnsp7xtm.dao;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmPageRequestDto
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmDto
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmDto
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmPageRequestDto
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
import
java.util.List
;
import
java.util.List
;
...
@@ -25,7 +25,7 @@ public interface Jnsp7xtmStatisticsRepository {
...
@@ -25,7 +25,7 @@ public interface Jnsp7xtmStatisticsRepository {
List
<
String
>
getMonths
();
List
<
String
>
getMonths
();
// 4.获取统计总条数
// 4.获取统计总条数
List
<
Map
<
String
,
Object
>>
queryStatisticsCount
(
@Param
(
"entity"
)
Jnsp7xtmPageRequestDto
jnsp74tmPageRequestDto
,
@Param
(
"monthList"
)
String
months
,
@Param
(
"statistics"
)
String
statistics
,
@Param
(
"orderColumn"
)
String
orderColumn
);
List
<
Map
<
String
,
Object
>>
queryStatisticsCount
(
@Param
(
"entity"
)
Jnsp7xtmPageRequestDto
jnsp74tmPageRequestDto
,
@Param
(
"monthList"
)
String
months
,
@Param
(
"statistics"
)
String
statistics
,
@Param
(
"orderColumn"
)
String
orderColumn
,
@Param
(
"joinSql"
)
String
joinSql
);
/**
/**
* @description: 5.获取统计list
* @description: 5.获取统计list
...
@@ -38,7 +38,7 @@ public interface Jnsp7xtmStatisticsRepository {
...
@@ -38,7 +38,7 @@ public interface Jnsp7xtmStatisticsRepository {
* @param: computedColumn - 计算列
* @param: computedColumn - 计算列
* @return:
* @return:
**/
**/
List
<
Map
<
String
,
Object
>>
queryList
(
@Param
(
"entity"
)
Jnsp7xtmPageRequestDto
jnsp74tmPageRequestDto
,
@Param
(
"monthList"
)
String
months
,
@Param
(
"pageNo"
)
int
pageNo
,
@Param
(
"pageSize"
)
int
pageSize
,
@Param
(
"isPage"
)
String
isPage
,
@Param
(
"computedColumn"
)
String
computedColumn
,
@Param
(
"statistics"
)
String
statistics
,
@Param
(
"orderColumn"
)
String
orderColumn
);
List
<
Map
<
String
,
Object
>>
queryList
(
@Param
(
"entity"
)
Jnsp7xtmPageRequestDto
jnsp74tmPageRequestDto
,
@Param
(
"monthList"
)
String
months
,
@Param
(
"pageNo"
)
int
pageNo
,
@Param
(
"pageSize"
)
int
pageSize
,
@Param
(
"isPage"
)
String
isPage
,
@Param
(
"computedColumn"
)
String
computedColumn
,
@Param
(
"statistics"
)
String
statistics
,
@Param
(
"orderColumn"
)
String
orderColumn
,
@Param
(
"joinSql"
)
String
joinSql
);
// 6 查询合计接口
// 6 查询合计接口
List
<
Jnsp7xtmDto
>
queryTotal
(
@Param
(
"entity"
)
Jnsp7xtmPageRequestDto
jnsp74tmPageRequestDto
);
List
<
Jnsp7xtmDto
>
queryTotal
(
@Param
(
"entity"
)
Jnsp7xtmPageRequestDto
jnsp74tmPageRequestDto
);
...
...
src/main/java/org/rcisoft/bus/jnsp7xtm/dto/Jnsp7xtmPageRequestDto.java
View file @
656b39f5
...
@@ -117,4 +117,8 @@ public class Jnsp7xtmPageRequestDto {
...
@@ -117,4 +117,8 @@ public class Jnsp7xtmPageRequestDto {
// 导出类型 1:弹出框查询 2:明细查询
// 导出类型 1:弹出框查询 2:明细查询
private
String
type
;
private
String
type
;
private
String
joinSql
;
private
String
querySql
;
}
}
src/main/java/org/rcisoft/bus/jnsp7xtm/enums/ColTransitionEnum.java
0 → 100644
View file @
656b39f5
package
org
.
rcisoft
.
bus
.
jnsp7xtm
.
enums
;
public
enum
ColTransitionEnum
{
JNSP7XTM
(
"jnsp_"
,
"j7xtm."
),
CUSTOMER
(
"cus_"
,
"cust."
);
private
final
String
code
;
private
final
String
value
;
ColTransitionEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
String
getValue
()
{
return
value
;
}
}
src/main/java/org/rcisoft/bus/jnsp7xtm/enums/Jnsp7xtmDqsjType.java
0 → 100644
View file @
656b39f5
package
org
.
rcisoft
.
bus
.
jnsp7xtm
.
enums
;
public
enum
Jnsp7xtmDqsjType
{
JNSP7XTMDDQS
(
"1"
);
private
final
String
code
;
Jnsp7xtmDqsjType
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getCode
()
{
return
code
;
}
}
src/main/java/org/rcisoft/bus/jnsp7xtm/service/Jnsp7xtmService.java
View file @
656b39f5
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmPageRequestDto
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmPageRequestDto
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPageInfo
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
public
interface
Jnsp7xtmService
{
public
interface
Jnsp7xtmService
{
...
...
src/main/java/org/rcisoft/bus/jnsp7xtm/service/Jnsp7xtmStatisticService.java
View file @
656b39f5
package
org
.
rcisoft
.
bus
.
jnsp7xtm
.
service
;
package
org
.
rcisoft
.
bus
.
jnsp7xtm
.
service
;
import
org.rcisoft.bus.jnsp7xtm.dto.*
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmOptionDto
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmPageListDto
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmPageRequestDto
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmTotalDto
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
import
java.util.List
;
import
java.util.List
;
...
...
src/main/java/org/rcisoft/bus/jnsp7xtm/service/impl/Jnsp7xtmServiceImpl.java
View file @
656b39f5
This diff is collapsed.
Click to expand it.
src/main/java/org/rcisoft/bus/jnsp7xtm/service/impl/Jnsp7xtmStatisticServiceImpl.java
View file @
656b39f5
This diff is collapsed.
Click to expand it.
src/main/java/org/rcisoft/bus/jnsp7xtm/vo/Jnsp7xtmVo.java
0 → 100644
View file @
656b39f5
package
org
.
rcisoft
.
bus
.
jnsp7xtm
.
vo
;
import
lombok.Data
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
/**
* @Author: gy
* @Date: 2024/5/14 13:43
* @Description:
*/
@Data
public
class
Jnsp7xtmVo
extends
Jnsp7xtm
{
/**
* sypn
* **/
private
String
sypn
;
/**
* @desc
* @column cust_code
* @default
*/
private
String
custCode
;
/**
* @desc
* @column cust_name
* @default
*/
private
String
custName
;
/**
* @desc
* @column cust_group
* @default
*/
private
String
custGroup
;
/**
* @desc
* @column cust_group2
* @default
*/
private
String
custGroup2
;
/**
* @desc
* @column cust_rt1
* @default
*/
private
String
custRt1
;
/**
* @desc
* @column cust_io
* @default
*/
private
String
custIo
;
/**
* @desc
* @column cust_newpic
* @default
*/
private
String
custNewpic
;
/**
* @desc
* @column cust_group1
* @default
*/
private
String
custGroup1
;
/**
* @desc
* @column cust_rt2
* @default
*/
private
String
custRt2
;
/**
* @desc
* @column cust_rout
* @default
*/
private
String
custRout
;
/**
* @desc
* @column cust_addr
* @default
*/
private
String
custAddr
;
/**
* @desc
* @column cust_g0
* @default
*/
private
String
custG0
;
/**
* @desc
* @column cust_g20
* @default
*/
private
String
custG20
;
/**
* @desc
* @column cust_g30
* @default
*/
private
String
custG30
;
/**
* @desc
* @column cust_g201
* @default
*/
private
String
custG201
;
/**
* @desc
* @column cust_save
* @default
*/
private
String
custSave
;
/**
* @desc
* @column cust_stype
* @default
*/
private
String
custStype
;
/**
* @desc
* @column cust_g1
* @default
*/
private
String
custG1
;
/**
* @desc
* @column cust_yj
* @default
*/
private
String
custYj
;
/**
* @desc
* @column cust_yj2
* @default
*/
private
String
custYj2
;
/**
* @desc
* @column cust_yj3
* @default
*/
private
String
custYj3
;
/**
* @desc
* @column cust_gc
* @default
*/
private
String
custGc
;
}
src/main/java/org/rcisoft/util/ExportToExcelUtil.java
View file @
656b39f5
...
@@ -31,7 +31,7 @@ import java.util.Map;
...
@@ -31,7 +31,7 @@ import java.util.Map;
* @Description: 动态列导出(非注解形式)
* @Description: 动态列导出(非注解形式)
*/
*/
@Slf4j
@Slf4j
public
class
ExportToExcelUtil
extends
CyEpExcelUtil
{
public
class
ExportToExcelUtil
extends
CyEpExcelUtil
{
public
static
<
T
>
List
<
T
>
importExcelNotTitle
(
MultipartFile
file
,
Integer
titleRows
,
Integer
headerRows
,
Class
<
T
>
pojoClass
)
{
public
static
<
T
>
List
<
T
>
importExcelNotTitle
(
MultipartFile
file
,
Integer
titleRows
,
Integer
headerRows
,
Class
<
T
>
pojoClass
)
{
if
(
file
==
null
)
{
if
(
file
==
null
)
{
...
@@ -75,7 +75,7 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
...
@@ -75,7 +75,7 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
// 当总选项字节数大于 255 时创建隐藏工作表用于存放下拉选项
// 当总选项字节数大于 255 时创建隐藏工作表用于存放下拉选项
// 创建sheet,写入枚举项
// 创建sheet,写入枚举项
//判断当前sheet不存在则创建
//判断当前sheet不存在则创建
Sheet
hideSheet
=
workbook
.
getSheet
(
"hiddenSheet"
);
Sheet
hideSheet
=
workbook
.
getSheet
(
"hiddenSheet"
);
if
(
workbook
.
getSheet
(
"hiddenSheet"
)
==
null
)
{
if
(
workbook
.
getSheet
(
"hiddenSheet"
)
==
null
)
{
hideSheet
=
workbook
.
createSheet
(
"hiddenSheet"
);
hideSheet
=
workbook
.
createSheet
(
"hiddenSheet"
);
}
}
...
@@ -136,10 +136,11 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
...
@@ -136,10 +136,11 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
// 导出动态列
// 导出动态列
/**
/**
* entityList 表头
* entityList 表头
* dataList 数据集合
* dataList 数据集合
*
*
*/
**/
public
static
void
exportExcel
(
HttpServletResponse
response
,
List
<
ExcelExportEntity
>
entityList
,
List
<
Map
<
String
,
Object
>>
dataList
)
{
public
static
void
exportExcel
(
HttpServletResponse
response
,
List
<
ExcelExportEntity
>
entityList
,
List
<
Map
<
String
,
Object
>>
dataList
)
{
// 1、创建一个Workbook(XSSFWorkbook)
// 1、创建一个Workbook(XSSFWorkbook)
Workbook
workbook
=
new
XSSFWorkbook
();
Workbook
workbook
=
new
XSSFWorkbook
();
...
@@ -150,7 +151,7 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
...
@@ -150,7 +151,7 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
exportParams
.
setType
(
ExcelType
.
XSSF
);
exportParams
.
setType
(
ExcelType
.
XSSF
);
ExcelExportService
service
=
new
ExcelExportService
();
ExcelExportService
service
=
new
ExcelExportService
();
service
.
createSheetForMap
(
workbook
,
exportParams
,
entityList
,
dataList
);
service
.
createSheetForMap
(
workbook
,
exportParams
,
entityList
,
dataList
);
downLoadExcel
(
"导出统计"
,
response
,
workbook
);
downLoadExcel
(
"导出统计"
,
response
,
workbook
);
}
}
...
@@ -161,7 +162,6 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
...
@@ -161,7 +162,6 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
if
(
format
[
1
].
equals
(
"xlsx"
))
{
if
(
format
[
1
].
equals
(
"xlsx"
))
{
exportParams
.
setType
(
ExcelType
.
XSSF
);
exportParams
.
setType
(
ExcelType
.
XSSF
);
}
}
defaultExport
(
list
,
pojoClass
,
fileName
,
response
,
exportParams
);
defaultExport
(
list
,
pojoClass
,
fileName
,
response
,
exportParams
);
}
}
...
@@ -193,8 +193,6 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
...
@@ -193,8 +193,6 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
}
catch
(
IOException
var11
)
{
}
catch
(
IOException
var11
)
{
log
.
info
(
"context:"
+
var11
);
log
.
info
(
"context:"
+
var11
);
}
}
}
}
}
}
}
}
src/main/resources/mapper/bus/jnP7sj/mapper/jnP7sjRepository.xml
View file @
656b39f5
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