Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-simple-operation
Overview
Overview
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
guokunkun
spring-simple-operation
Commits
13294a90
Commit
13294a90
authored
Mar 18, 2025
by
kk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷数据:根据文件指定sku刷A+产品的上传人
parent
48337d47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
5 deletions
+36
-5
SkuPeopleNameDto.java
...k/spring_simple_operation/model/dto/SkuPeopleNameDto.java
+19
-0
ApplicationTest.java
...t/java/cn/kk/spring_simple_operation/ApplicationTest.java
+17
-5
No files found.
src/main/java/cn/kk/spring_simple_operation/model/dto/SkuPeopleNameDto.java
0 → 100644
View file @
13294a90
package
cn
.
kk
.
spring_simple_operation
.
model
.
dto
;
import
cn.kk.spring_simple_operation.utils.Excel
;
import
lombok.Data
;
/**
* @author kk
* @date 2025/3/18
*/
@Data
public
class
SkuPeopleNameDto
{
@Excel
(
name
=
"SKU"
)
private
String
sku
;
@Excel
(
name
=
"上传人"
)
private
String
peopleName
;
}
src/test/java/cn/kk/spring_simple_operation/ApplicationTest.java
View file @
13294a90
package
cn
.
kk
.
spring_simple_operation
;
import
cn.kk.spring_simple_operation.mapper.VisualVideoPlanMapper
;
import
cn.kk.spring_simple_operation.model.dto.SkuPeopleNameDto
;
import
cn.kk.spring_simple_operation.model.dto.SkuSiteDTO
;
import
cn.kk.spring_simple_operation.service.PhotoProgressService
;
import
cn.kk.spring_simple_operation.service.VideoProductService
;
import
cn.kk.spring_simple_operation.service.VisualPhotographerAPlusService
;
import
cn.kk.spring_simple_operation.service.VisualVideoPlanService
;
import
cn.kk.spring_simple_operation.service.*
;
import
cn.kk.spring_simple_operation.utils.ExcelUtil
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
...
...
@@ -14,6 +12,7 @@ import javax.annotation.Resource;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
import
java.io.IOException
;
import
java.nio.file.Files
;
import
java.util.LinkedList
;
import
java.util.List
;
...
...
@@ -34,12 +33,16 @@ public class ApplicationTest {
@Resource
private
PhotoProgressService
photoProgressService
;
@Resource
private
APlusProductService
aPlusProductService
;
@Test
void
contextLoads
()
throws
Exception
{
//visualPhotographerAPlusService.brushDataForExecutor();
setUploadStatusIsDeleted
();
//
setUploadStatusIsDeleted();
setAPlusProductUploadInfo
();
}
private
void
setUploadStatusIsDeleted
()
throws
Exception
{
...
...
@@ -50,4 +53,13 @@ public class ApplicationTest {
list
=
util
.
importExcel
(
"简易视频"
,
Files
.
newInputStream
(
file
.
toPath
()));
photoProgressService
.
setUploadStatusIsDeleted
(
list
);
}
private
void
setAPlusProductUploadInfo
()
throws
Exception
{
File
file
=
new
File
(
"简版A+ AB测试.xlsx"
);
ExcelUtil
<
SkuPeopleNameDto
>
util
=
new
ExcelUtil
<>(
SkuPeopleNameDto
.
class
);
List
<
SkuPeopleNameDto
>
list
=
util
.
importExcel
(
Files
.
newInputStream
(
file
.
toPath
()));
aPlusProductService
.
setAPlusProductUploadInfo
(
list
);
}
}
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