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
951cb88d
Commit
951cb88d
authored
May 11, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 客户管理和条码管理
parent
493dc432
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
BCustomerController.java
...rcisoft/bus/bcustomer/controller/BCustomerController.java
+3
-6
BPnSypnController.java
...org/rcisoft/bus/bpnsypn/controller/BPnSypnController.java
+1
-5
BCustomerMapper.xml
...resources/mapper/bus/bcustomer/mapper/BCustomerMapper.xml
+2
-6
No files found.
src/main/java/org/rcisoft/bus/bcustomer/controller/BCustomerController.java
View file @
951cb88d
...
@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiOperation;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
import
org.rcisoft.core.operlog.enums.CyLogTypeEnum
;
import
org.rcisoft.core.operlog.enums.CyLogTypeEnum
;
import
org.rcisoft.core.util.CyEpExcelUtil
;
import
org.rcisoft.core.util.CyEpExcelUtil
;
import
org.rcisoft.util.ExportToExcelUtil
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -127,7 +128,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
...
@@ -127,7 +128,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
@CyOpeLogAnno
(
title
=
"system-BCustomer管理-查询BCustomer"
,
businessType
=
CyLogTypeEnum
.
EXPORT
)
@CyOpeLogAnno
(
title
=
"system-BCustomer管理-查询BCustomer"
,
businessType
=
CyLogTypeEnum
.
EXPORT
)
@ApiOperation
(
value
=
"导出BCustomer信息"
,
notes
=
"导出BCustomer信息"
)
@ApiOperation
(
value
=
"导出BCustomer信息"
,
notes
=
"导出BCustomer信息"
)
@GetMapping
(
value
=
"/export"
)
@GetMapping
(
value
=
"/export"
)
public
CyResult
outBCustomer
(
HttpServletResponse
response
,
BCustomer
bCustomer
,
@PathVariable
@RequestParam
(
defaultValue
=
"0"
)
String
excelId
)
{
public
void
outBCustomer
(
HttpServletResponse
response
,
BCustomer
bCustomer
,
@PathVariable
@RequestParam
(
defaultValue
=
"0"
)
String
excelId
)
{
String
excelName
=
""
;
String
excelName
=
""
;
switch
(
excelId
){
switch
(
excelId
){
case
"0"
:
excelName
=
"BCustomer信息.xls"
;
break
;
case
"0"
:
excelName
=
"BCustomer信息.xls"
;
break
;
...
@@ -135,10 +136,6 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
...
@@ -135,10 +136,6 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
case
"2"
:
excelName
=
"BCustomer信息.csv"
;
break
;
case
"2"
:
excelName
=
"BCustomer信息.csv"
;
break
;
}
}
List
<
BCustomer
>
bCustomerList
=
bCustomerServiceImpl
.
export
(
bCustomer
);
List
<
BCustomer
>
bCustomerList
=
bCustomerServiceImpl
.
export
(
bCustomer
);
CyEpExcelUtil
.
exportExcel
(
bCustomerList
,
"BCustomer信息"
,
"BCustomer信息"
,
BCustomer
.
class
,
excelName
,
response
);
ExportToExcelUtil
.
exportExcel
(
bCustomerList
,
"BCustomer信息"
,
"BCustomer信息"
,
BCustomer
.
class
,
excelName
,
response
);
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
bCustomerList
);
}
}
}
}
src/main/java/org/rcisoft/bus/bpnsypn/controller/BPnSypnController.java
View file @
951cb88d
...
@@ -128,7 +128,7 @@ public class BPnSypnController extends CyPaginationController<BPnSypn> {
...
@@ -128,7 +128,7 @@ public class BPnSypnController extends CyPaginationController<BPnSypn> {
@CyOpeLogAnno
(
title
=
"system-BPnSypn管理-查询BPnSypn"
,
businessType
=
CyLogTypeEnum
.
EXPORT
)
@CyOpeLogAnno
(
title
=
"system-BPnSypn管理-查询BPnSypn"
,
businessType
=
CyLogTypeEnum
.
EXPORT
)
@ApiOperation
(
value
=
"导出BPnSypn信息"
,
notes
=
"导出BPnSypn信息"
)
@ApiOperation
(
value
=
"导出BPnSypn信息"
,
notes
=
"导出BPnSypn信息"
)
@GetMapping
(
value
=
"/export"
)
@GetMapping
(
value
=
"/export"
)
public
CyResult
outBPnSypn
(
HttpServletResponse
response
,
BPnSypn
bPnSypn
,
@PathVariable
@RequestParam
(
defaultValue
=
"0"
)
String
excelId
)
{
public
void
outBPnSypn
(
HttpServletResponse
response
,
BPnSypn
bPnSypn
,
@PathVariable
@RequestParam
(
defaultValue
=
"0"
)
String
excelId
)
{
String
excelName
=
""
;
String
excelName
=
""
;
switch
(
excelId
){
switch
(
excelId
){
case
"0"
:
excelName
=
"BPnSypn信息.xls"
;
break
;
case
"0"
:
excelName
=
"BPnSypn信息.xls"
;
break
;
...
@@ -137,9 +137,5 @@ public class BPnSypnController extends CyPaginationController<BPnSypn> {
...
@@ -137,9 +137,5 @@ public class BPnSypnController extends CyPaginationController<BPnSypn> {
}
}
List
<
BPnSypn
>
bPnSypnList
=
bPnSypnServiceImpl
.
export
(
bPnSypn
);
List
<
BPnSypn
>
bPnSypnList
=
bPnSypnServiceImpl
.
export
(
bPnSypn
);
ExportToExcelUtil
.
exportExcel
(
bPnSypnList
,
"BPnSypn信息"
,
"BPnSypn信息"
,
BPnSypn
.
class
,
excelName
,
response
);
ExportToExcelUtil
.
exportExcel
(
bPnSypnList
,
"BPnSypn信息"
,
"BPnSypn信息"
,
BPnSypn
.
class
,
excelName
,
response
);
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
bPnSypnList
);
}
}
}
}
src/main/resources/mapper/bus/bcustomer/mapper/BCustomerMapper.xml
View file @
951cb88d
...
@@ -39,9 +39,7 @@
...
@@ -39,9 +39,7 @@
<select
id=
"queryBCustomers"
resultMap=
"BaseResultMap"
>
<select
id=
"queryBCustomers"
resultMap=
"BaseResultMap"
>
select * from b_customer
select * from b_customer
where 1=1
where 1=1
<if
test=
"entity.delFlag !=null and entity.delFlag != '' "
>
and del_flag = '0'
and del_flag = #{entity.delFlag}
</if>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
and flag = #{entity.flag}
</if>
</if>
...
@@ -50,9 +48,7 @@
...
@@ -50,9 +48,7 @@
<select
id=
"queryBCustomersPaged"
resultMap=
"BaseResultMap"
>
<select
id=
"queryBCustomersPaged"
resultMap=
"BaseResultMap"
>
select * from b_customer
select * from b_customer
where 1=1
where 1=1
<if
test=
"entity.delFlag !=null and entity.delFlag != '' "
>
and del_flag = '0'
and del_flag = #{entity.delFlag}
</if>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
and flag = #{entity.flag}
</if>
</if>
...
...
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