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
57e56198
Commit
57e56198
authored
Jan 14, 2022
by
rongkailun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
3a7fd0a4
2f4672ca
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
13 deletions
+66
-13
EanUpcServiceImpl.java
...office/modules/manage/service/impl/EanUpcServiceImpl.java
+6
-5
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+12
-6
TransferController.java
...io/office/modules/manage/transfer/TransferController.java
+46
-0
application-test.yml
src/main/resources/application-test.yml
+2
-2
No files found.
src/main/java/io/office/modules/manage/service/impl/EanUpcServiceImpl.java
View file @
57e56198
...
@@ -46,17 +46,18 @@ public class EanUpcServiceImpl extends ServiceImpl<EanUpcDao, EanUpcEntity> impl
...
@@ -46,17 +46,18 @@ public class EanUpcServiceImpl extends ServiceImpl<EanUpcDao, EanUpcEntity> impl
List
<
EanUpcEntityVo
>
eanUpcTopList
=
new
ArrayList
<>();
List
<
EanUpcEntityVo
>
eanUpcTopList
=
new
ArrayList
<>();
EanUpcEntity
eanUpcEntity
=
new
EanUpcEntity
();
EanUpcEntity
eanUpcEntity
=
new
EanUpcEntity
();
eanUpcEntity
.
setLogoutFlag
(
"1"
);
List
<
EanUpcEntityVo
>
eanUpcTop1
=
this
.
baseMapper
.
getEanUpcTop
(
eanUpcEntity
);
if
(
CollectionUtils
.
isNotEmpty
(
eanUpcTop1
))
{
eanUpcTopList
.
addAll
(
eanUpcTop1
);
}
eanUpcEntity
.
setLogoutFlag
(
"0"
);
eanUpcEntity
.
setLogoutFlag
(
"0"
);
List
<
EanUpcEntityVo
>
eanUpcTop
=
this
.
baseMapper
.
getEanUpcTop
(
eanUpcEntity
);
List
<
EanUpcEntityVo
>
eanUpcTop
=
this
.
baseMapper
.
getEanUpcTop
(
eanUpcEntity
);
if
(
CollectionUtils
.
isNotEmpty
(
eanUpcTop
))
{
if
(
CollectionUtils
.
isNotEmpty
(
eanUpcTop
))
{
eanUpcTopList
.
addAll
(
eanUpcTop
);
eanUpcTopList
.
addAll
(
eanUpcTop
);
}
}
eanUpcEntity
.
setLogoutFlag
(
"1"
);
List
<
EanUpcEntityVo
>
eanUpcTop1
=
this
.
baseMapper
.
getEanUpcTop
(
eanUpcEntity
);
if
(
CollectionUtils
.
isNotEmpty
(
eanUpcTop1
))
{
eanUpcTopList
.
addAll
(
eanUpcTop1
);
}
return
eanUpcTopList
;
return
eanUpcTopList
;
}
}
...
...
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
57e56198
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
cn.hutool.http.HttpUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.exception.RRException
;
import
io.office.common.exception.RRException
;
import
io.office.modules.manage.dao.*
;
import
io.office.modules.manage.dao.*
;
import
io.office.modules.manage.entity.*
;
import
io.office.modules.manage.entity.*
;
import
io.office.modules.manage.service.TycpdmFirmChangeService
;
import
io.office.modules.manage.service.TycpdmFirmChangeService
;
import
io.office.modules.manage.utils.AlgorithmUtils
;
import
io.office.modules.manage.utils.*
;
import
io.office.modules.manage.utils.DESUtils
;
import
io.office.modules.manage.utils.DateUtils
;
import
io.office.modules.manage.utils.MD5Util
;
import
org.apache.commons.beanutils.BeanMap
;
import
org.apache.commons.beanutils.BeanMap
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -637,9 +636,16 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -637,9 +636,16 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
throw
new
RRException
(
"用户类型错误"
);
throw
new
RRException
(
"用户类型错误"
);
}
}
String
phone_M
=
DESUtils
.
byteToHexString
(
DESUtils
.
DES_CBC_Encrypt
(
phone
.
getBytes
(),
"loginkey"
.
getBytes
()));
String
phone_M
=
DESUtils
.
byteToHexString
(
DESUtils
.
DES_CBC_Encrypt
(
phone
.
getBytes
(),
"loginkey"
.
getBytes
()));
String
url
=
"http://wsdt.gs1cn.org/anccoh/login?method=phoneSSO&phone="
+
phone_M
;
String
url
=
"http://wsdt.gs1cn.org/anccoh/login?method=phoneSSO&phone="
+
phone_M
;
return
url
;
String
token
=
HttpUtil
.
get
(
url
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
token
);
String
status
=
jsonObject
.
getString
(
"status"
);
String
msg
=
jsonObject
.
getString
(
"msg"
);
if
(!
"200"
.
equals
(
status
)){
throw
new
RRException
(
"获取token失败"
+
msg
);
}
return
"http://wsdt.gs1cn.org/anccoh/login?method=redirect&token="
+
msg
;
}
}
...
...
src/main/java/io/office/modules/manage/transfer/TransferController.java
View file @
57e56198
...
@@ -61,6 +61,8 @@ public class TransferController {
...
@@ -61,6 +61,8 @@ public class TransferController {
private
PolicyService
policyService
;
private
PolicyService
policyService
;
@Autowired
@Autowired
private
KnowledgeinfoService
knowledgeinfoService
;
private
KnowledgeinfoService
knowledgeinfoService
;
@Autowired
private
DocService
docService
;
@RequestMapping
(
"/api/indexCarouselManage"
)
@RequestMapping
(
"/api/indexCarouselManage"
)
// @RequiresPermissions("generator:topicnews:list")
// @RequiresPermissions("generator:topicnews:list")
...
@@ -1407,6 +1409,50 @@ public class TransferController {
...
@@ -1407,6 +1409,50 @@ public class TransferController {
}
}
@RequestMapping
(
"/api/doc"
)
// @RequiresPermissions("generator:topicnews:list")
public
R
doc
()
{
QueryWrapper
<
DocEntity
>
indexCarouselManageEntityQueryWrapper
=
new
QueryWrapper
<>();
int
count
=
docService
.
count
(
indexCarouselManageEntityQueryWrapper
);
if
(
count
>
0
)
{
boolean
flag
=
true
;
int
n
=
1
;
while
(
flag
)
{
int
limit
=
10
;
int
pages
=
0
;
if
((
count
%
limit
)
==
0
)
{
pages
=
(
count
/
limit
);
}
else
{
pages
=
(
count
/
limit
)
+
1
;
}
if
(
n
<=
pages
)
{
IPage
<
DocEntity
>
pageData
=
docService
.
page
(
new
Page
(
n
,
limit
),
indexCarouselManageEntityQueryWrapper
);
if
(
CollectionUtils
.
isNotEmpty
(
pageData
.
getRecords
()))
{
for
(
DocEntity
docEntity
:
pageData
.
getRecords
())
{
//如果不为空
if
(
StringUtils
.
isNotBlank
(
docEntity
.
getDocfile
()))
{
//处理图片
docEntity
.
setDocfile
(
fileRequestPrefix
+
"manage/down/"
+
docEntity
.
getDocfile
());
//修改
UpdateWrapper
<
DocEntity
>
updateWrapper
=
new
UpdateWrapper
();
updateWrapper
.
eq
(
"id"
,
docEntity
.
getId
());
docService
.
update
(
docEntity
,
updateWrapper
);
}
}
n
=
n
+
1
;
}
}
else
{
flag
=
false
;
}
}
}
return
R
.
ok
().
put
(
"data"
,
null
);
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/resources/application-test.yml
View file @
57e56198
...
@@ -77,9 +77,9 @@ ueditorSavePath: D:/uploadFileResource/
...
@@ -77,9 +77,9 @@ ueditorSavePath: D:/uploadFileResource/
prefix_host
:
http://192.168.0.77:9091/office/
prefix_host
:
http://192.168.0.77:9091/office/
#uploadFileQY: C:\upload_img\firm_archives_file\ #/第二步,电子表格上传路径(企业认证)
#uploadFileQY: C:\upload_img\firm_archives_file\ #/第二步,电子表格上传路径(企业认证)
uploadFileQY
:
/uploadFileResource/upload_img/firm_archives_file/
#/第二步,电子表格上传路径(企业认证)
uploadFileQY
:
D:
/uploadFileResource/upload_img/firm_archives_file/
#/第二步,电子表格上传路径(企业认证)
#uploadFileQYOne: C:\upload_img\firmBusinessLicenseFile\ #第一步,营业执照上传路径(企业认证)
#uploadFileQYOne: C:\upload_img\firmBusinessLicenseFile\ #第一步,营业执照上传路径(企业认证)
uploadFileQYOne
:
/uploadFileResource/upload_img/firmBusinessLicenseFile/
#第一步,营业执照上传路径(企业认证)
uploadFileQYOne
:
D:
/uploadFileResource/upload_img/firmBusinessLicenseFile/
#第一步,营业执照上传路径(企业认证)
#是否开启查询限制 1 打开 0关闭
#是否开启查询限制 1 打开 0关闭
searchLimitSwitch
:
0
searchLimitSwitch
:
0
...
...
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