Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
5177dd64
Commit
5177dd64
authored
Jan 03, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】数据清洗
parent
45691f25
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
122 additions
and
26 deletions
+122
-26
sqlserver.sql
db/sqlserver.sql
+8
-0
CasesController.java
.../io/office/modules/manage/controller/CasesController.java
+11
-0
DocController.java
...va/io/office/modules/manage/controller/DocController.java
+20
-1
DomainListController.java
...ffice/modules/manage/controller/DomainListController.java
+2
-2
EanUpcController.java
...io/office/modules/manage/controller/EanUpcController.java
+5
-3
PartnersController.java
.../office/modules/manage/controller/PartnersController.java
+11
-0
PlanBranchController.java
...ffice/modules/manage/controller/PlanBranchController.java
+2
-1
DomainListProperties.java
...io/office/modules/manage/entity/DomainListProperties.java
+3
-3
EanUpcEntity.java
...in/java/io/office/modules/manage/entity/EanUpcEntity.java
+1
-2
CasesServiceImpl.java
.../office/modules/manage/service/impl/CasesServiceImpl.java
+1
-0
PartnersServiceImpl.java
...fice/modules/manage/service/impl/PartnersServiceImpl.java
+1
-1
DirectoryMap.java
.../java/io/office/modules/manage/transfer/DirectoryMap.java
+24
-0
TransferController.java
...io/office/modules/manage/transfer/TransferController.java
+0
-0
application-dev.yml
src/main/resources/application-dev.yml
+11
-5
application-test.yml
src/main/resources/application-test.yml
+15
-5
application.yml
src/main/resources/application.yml
+5
-1
EanUpcDao.xml
src/main/resources/mapper/manage/EanUpcDao.xml
+2
-2
No files found.
db/sqlserver.sql
View file @
5177dd64
...
@@ -510,3 +510,10 @@ ALTER TABLE [dbo].[QRTZ_TRIGGERS] ADD
...
@@ -510,3 +510,10 @@ ALTER TABLE [dbo].[QRTZ_TRIGGERS] ADD
)
)
GO
GO
ALTER
TABLE
picture
ALTER
COLUMN
Pic_file
varchar
(
200
);
ALTER
TABLE
product
ALTER
COLUMN
graph
varchar
(
200
);
\ No newline at end of file
src/main/java/io/office/modules/manage/controller/CasesController.java
View file @
5177dd64
...
@@ -105,4 +105,15 @@ public class CasesController {
...
@@ -105,4 +105,15 @@ public class CasesController {
return
R
.
ok
();
return
R
.
ok
();
}
}
/**
* 信息
*/
@RequestMapping
(
"api/getDetailInfo"
)
// @RequiresPermissions("manage:partners:info")
public
R
getDetailInfo
(
@RequestBody
Map
<
String
,
String
>
params
){
CasesEntity
casesEntity
=
casesService
.
getById
(
params
.
get
(
"id"
));
return
R
.
ok
().
put
(
"data"
,
casesEntity
);
}
}
}
src/main/java/io/office/modules/manage/controller/DocController.java
View file @
5177dd64
...
@@ -5,6 +5,7 @@ import java.util.List;
...
@@ -5,6 +5,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.manage.entity.DocEntity
;
import
io.office.modules.manage.entity.DocEntity
;
...
@@ -100,7 +101,6 @@ public class DocController extends AbstractController {
...
@@ -100,7 +101,6 @@ public class DocController extends AbstractController {
return
R
.
ok
();
return
R
.
ok
();
}
}
@Login
@Login
@PostMapping
(
"/api/downLoad"
)
@PostMapping
(
"/api/downLoad"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
...
@@ -120,5 +120,24 @@ public class DocController extends AbstractController {
...
@@ -120,5 +120,24 @@ public class DocController extends AbstractController {
}
}
@Login
@PostMapping
(
"/api/list"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
listPage
(
@RequestBody
Map
<
String
,
Object
>
params
)
{
try
{
QueryWrapper
<
DocEntity
>
docEntityQueryWrapper
=
new
QueryWrapper
<>();
docEntityQueryWrapper
.
eq
(
"category"
,
"1"
);
docEntityQueryWrapper
.
eq
(
"status"
,
"1"
);
docEntityQueryWrapper
.
orderByDesc
(
"id"
);
IPage
<
NewsEntity
>
pageData
=
docService
.
page
(
new
Page
(
Integer
.
parseInt
(
params
.
get
(
"page"
).
toString
()),
Integer
.
parseInt
(
params
.
get
(
"size"
).
toString
())
),
docEntityQueryWrapper
);
return
R
.
ok
().
put
(
"data"
,
new
PageUtils
(
pageData
));
}
catch
(
Exception
e
)
{
log
.
error
(
"get4PartyTopNews error: {}"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
}
}
src/main/java/io/office/modules/manage/controller/DomainListController.java
View file @
5177dd64
...
@@ -33,9 +33,9 @@ public class DomainListController {
...
@@ -33,9 +33,9 @@ public class DomainListController {
@RequestMapping
(
"/api/list"
)
@RequestMapping
(
"/api/list"
)
// @RequiresPermissions("manage:doc:list")
// @RequiresPermissions("manage:doc:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
public
R
list
()
{
return
R
.
ok
().
put
(
"data"
,
domainListProperties
.
get
List
());
return
R
.
ok
().
put
(
"data"
,
domainListProperties
.
get
Domain
());
}
}
...
...
src/main/java/io/office/modules/manage/controller/EanUpcController.java
View file @
5177dd64
...
@@ -121,13 +121,15 @@ public class EanUpcController {
...
@@ -121,13 +121,15 @@ public class EanUpcController {
/**
/**
* 详情
* 详情
* @param
eanUpcEntity
* @param
* @return
* @return
*/
*/
@Login
@Login
@RequestMapping
(
"/api/getDetailById"
)
@RequestMapping
(
"/api/getDetailById"
)
public
R
getDetailById
(
@RequestBody
EanUpcEntity
eanUpcEntity
)
{
public
R
getDetailById
(
@RequestBody
Map
<
String
,
String
>
params
)
{
EanUpcEntity
eanUpcEntity
=
new
EanUpcEntity
();
eanUpcEntity
.
setFId
(
params
.
get
(
"fId"
));
eanUpcEntity
.
setCode
(
params
.
get
(
"code"
));
return
R
.
ok
().
put
(
"data"
,
eanUpcService
.
getDetailById
(
eanUpcEntity
));
return
R
.
ok
().
put
(
"data"
,
eanUpcService
.
getDetailById
(
eanUpcEntity
));
}
}
...
...
src/main/java/io/office/modules/manage/controller/PartnersController.java
View file @
5177dd64
...
@@ -130,4 +130,15 @@ public class PartnersController extends AbstractController {
...
@@ -130,4 +130,15 @@ public class PartnersController extends AbstractController {
}
}
/**
* 信息
*/
@RequestMapping
(
"api/getDetailInfo"
)
// @RequiresPermissions("manage:partners:info")
public
R
getDetailInfo
(
@RequestBody
Map
<
String
,
String
>
params
){
PartnersEntity
partners
=
partnersService
.
getById
(
params
.
get
(
"id"
));
return
R
.
ok
().
put
(
"data"
,
partners
);
}
}
}
src/main/java/io/office/modules/manage/controller/PlanBranchController.java
View file @
5177dd64
...
@@ -97,7 +97,8 @@ public class PlanBranchController {
...
@@ -97,7 +97,8 @@ public class PlanBranchController {
QueryWrapper
<
PlanBranchEntity
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PlanBranchEntity
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"classnum"
,
planBranch
.
getClassnum
());
queryWrapper
.
eq
(
"classnum"
,
planBranch
.
getClassnum
());
queryWrapper
.
orderByDesc
(
"id"
);
queryWrapper
.
orderByAsc
(
"id"
);
return
R
.
ok
().
put
(
"data"
,
planBranchService
.
list
(
queryWrapper
));
return
R
.
ok
().
put
(
"data"
,
planBranchService
.
list
(
queryWrapper
));
}
}
...
...
src/main/java/io/office/modules/manage/entity/DomainListProperties.java
View file @
5177dd64
...
@@ -3,7 +3,7 @@ package io.office.modules.manage.entity;
...
@@ -3,7 +3,7 @@ package io.office.modules.manage.entity;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
java.util.List
;
/**
/**
*
*
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
* @date 10:40 2021/12/28
* @date 10:40 2021/12/28
*/
*/
@Data
@Data
@ConfigurationProperties
(
prefix
=
"gs1
.domain
"
)
//指定ly.upload开头的变量
@ConfigurationProperties
(
prefix
=
"gs1"
)
//指定ly.upload开头的变量
public
class
DomainListProperties
{
public
class
DomainListProperties
{
private
List
<
String
>
list
;
private
String
domain
;
}
}
src/main/java/io/office/modules/manage/entity/EanUpcEntity.java
View file @
5177dd64
...
@@ -22,8 +22,7 @@ public class EanUpcEntity implements Serializable {
...
@@ -22,8 +22,7 @@ public class EanUpcEntity implements Serializable {
/**
/**
* $column.comments
* $column.comments
*/
*/
@TableId
private
String
fId
;
private
Integer
fId
;
/**
/**
* $column.comments
* $column.comments
*/
*/
...
...
src/main/java/io/office/modules/manage/service/impl/CasesServiceImpl.java
View file @
5177dd64
...
@@ -43,6 +43,7 @@ public class CasesServiceImpl extends ServiceImpl<CasesDao, CasesEntity> impleme
...
@@ -43,6 +43,7 @@ public class CasesServiceImpl extends ServiceImpl<CasesDao, CasesEntity> impleme
QueryWrapper
<
CasesEntity
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
CasesEntity
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"status"
,
"1"
);
queryWrapper
.
eq
(
"status"
,
"1"
);
queryWrapper
.
gt
(
"levels"
,
"0"
);
queryWrapper
.
gt
(
"levels"
,
"0"
);
queryWrapper
.
orderByDesc
(
"id"
,
"levels"
,
"showtime"
,
"updatedate"
);
if
(
params
.
get
(
"title"
)
!=
null
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"title"
).
toString
()))
{
if
(
params
.
get
(
"title"
)
!=
null
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"title"
).
toString
()))
{
queryWrapper
.
like
(
"title"
,
params
.
get
(
"title"
).
toString
());
queryWrapper
.
like
(
"title"
,
params
.
get
(
"title"
).
toString
());
}
}
...
...
src/main/java/io/office/modules/manage/service/impl/PartnersServiceImpl.java
View file @
5177dd64
...
@@ -86,7 +86,7 @@ public class PartnersServiceImpl extends ServiceImpl<PartnersDao, PartnersEntity
...
@@ -86,7 +86,7 @@ public class PartnersServiceImpl extends ServiceImpl<PartnersDao, PartnersEntity
QueryWrapper
<
PartnersEntity
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PartnersEntity
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"status"
,
"1"
);
queryWrapper
.
eq
(
"status"
,
"1"
);
queryWrapper
.
gt
(
"levels"
,
"0"
);
queryWrapper
.
gt
(
"levels"
,
"0"
);
queryWrapper
.
orderByDesc
(
"id"
,
"levels"
,
"updatedate"
);
if
(
params
.
get
(
"firmname"
)
!=
null
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"firmname"
).
toString
()))
{
if
(
params
.
get
(
"firmname"
)
!=
null
&&
StringUtils
.
isNotBlank
(
params
.
get
(
"firmname"
).
toString
()))
{
queryWrapper
.
like
(
"firmname"
,
params
.
get
(
"firmname"
).
toString
());
queryWrapper
.
like
(
"firmname"
,
params
.
get
(
"firmname"
).
toString
());
}
}
...
...
src/main/java/io/office/modules/manage/transfer/DirectoryMap.java
0 → 100644
View file @
5177dd64
package
io
.
office
.
modules
.
manage
.
transfer
;
import
lombok.Data
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
/**
*
* @description:
*
* @author wudi
* @date 16:48 2021/12/30
*/
@Data
@Component
@EnableConfigurationProperties
@ConfigurationProperties
(
prefix
=
"directory"
)
public
class
DirectoryMap
{
private
Map
<
String
,
String
>
replaceMap
;
}
src/main/java/io/office/modules/manage/transfer/TransferController.java
0 → 100644
View file @
5177dd64
This diff is collapsed.
Click to expand it.
src/main/resources/application-dev.yml
View file @
5177dd64
...
@@ -89,9 +89,15 @@ searchDayCountLimitSwitch: 10
...
@@ -89,9 +89,15 @@ searchDayCountLimitSwitch: 10
#域名
#域名
gs1
:
gs1
:
domain
:
domain
:
http://81.68.189.225:8080
list
:
-
http://81.68.189.225
-
http://81.68.189.225
#map注入
directory
:
replaceMap
:
"
news/article.aspx"
:
News/msg
"
News/article.aspx"
:
News/msg
"
news/article_admin.aspx"
:
News/msg
"
News/VideoDetails.aspx"
:
News/msgVideo
"
/Org/Intro.aspx"
:
/Org/Intro
"
News/PicNews.aspx"
:
News/msg
"
service/notice/article.aspx"
:
News/NoticeArticle
src/main/resources/application-test.yml
View file @
5177dd64
...
@@ -87,8 +87,19 @@ searchDayLimitSwitch: 0
...
@@ -87,8 +87,19 @@ searchDayLimitSwitch: 0
searchDayCountLimitSwitch
:
10
searchDayCountLimitSwitch
:
10
#域名
#域名
#域名
gs1
:
gs1
:
domain
:
domain
:
http://192.168.0.77:80
list
:
-
http://192.168.0.77
-
http://192.168.0.77
directory
:
\ No newline at end of file
replaceMap
:
news/article.aspx
:
News/msg
News/article.aspx
:
News/msg
news/article_admin.aspx
:
News/msg
News/VideoDetails.aspx
:
News/msgVideo
/Org/Intro.aspx
:
/Org/Intro
News/PicNews.aspx
:
News/msg
service/notice/article.aspx
:
News/NoticeArticle
src/main/resources/application.yml
View file @
5177dd64
...
@@ -14,7 +14,7 @@ spring:
...
@@ -14,7 +14,7 @@ spring:
name
:
GS1OfficeWebSit
name
:
GS1OfficeWebSit
# 环境 dev|test|prod
# 环境 dev|test|prod
profiles
:
profiles
:
active
:
dev
active
:
test
# jackson时间格式化
# jackson时间格式化
jackson
:
jackson
:
time-zone
:
GMT+8
time-zone
:
GMT+8
...
@@ -70,3 +70,7 @@ logging:
...
@@ -70,3 +70,7 @@ logging:
org
:
org
:
mybatis
:
debug
mybatis
:
debug
dao
:
debug
dao
:
debug
src/main/resources/mapper/manage/EanUpcDao.xml
View file @
5177dd64
...
@@ -87,8 +87,8 @@
...
@@ -87,8 +87,8 @@
LEFT JOIN ean_upc b ON a.f_id = b.f_id
LEFT JOIN ean_upc b ON a.f_id = b.f_id
LEFT JOIN center_outer.dbo.bulletin c ON c.code = b.code
LEFT JOIN center_outer.dbo.bulletin c ON c.code = b.code
WHERE
WHERE
a.f_id =
'6'
a.f_id =
#{eanUpcEntity.fId}
AND b.code =
'6901009'
AND b.code =
#{eanUpcEntity.code}
ORDER BY
ORDER BY
c.Id DESC
c.Id DESC
</select>
</select>
...
...
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