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
18039ee8
Commit
18039ee8
authored
Feb 22, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】提交代码
parent
c1036d3b
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
268 additions
and
25 deletions
+268
-25
sqlserver.sql
db/sqlserver.sql
+209
-0
pom.xml
pom.xml
+3
-3
DomainListController.java
...ffice/modules/manage/controller/DomainListController.java
+10
-0
MemberController.java
...io/office/modules/manage/controller/MemberController.java
+12
-2
BikefirmDao.java
src/main/java/io/office/modules/manage/dao/BikefirmDao.java
+2
-0
MemberDao.java
src/main/java/io/office/modules/manage/dao/MemberDao.java
+2
-11
SqlUtil.java
src/main/java/io/office/modules/manage/utils/SqlUtil.java
+22
-0
application-prod.yml
src/main/resources/application-prod.yml
+3
-3
application.yml
src/main/resources/application.yml
+1
-1
BikefirmDao.xml
src/main/resources/mapper/manage/BikefirmDao.xml
+1
-1
JwtTest.java
src/test/java/io/renren/JwtTest.java
+3
-4
No files found.
db/sqlserver.sql
View file @
18039ee8
...
...
@@ -783,9 +783,212 @@ update news set showtime= replace(showtime,'/','-');
alter
table
index_carousel_manage
add
is_show
varchar
(
2
)
not
null
default
(
1
);
/*
Navicat Premium Data Transfer
Source Server : 中国编码官网
Source Server Type : SQL Server
Source Server Version : 14003223
Source Host : 118.190.181.128,51433:1433
Source Catalog : gs108
Source Schema : dbo
Target Server Type : SQL Server
Target Server Version : 14003223
File Encoding : 65001
Date: 22/12/2021 21:28:44
*/
-- ----------------------------
-- Table structure for user_function_binding
-- ----------------------------
IF
EXISTS
(
SELECT
*
FROM
sys
.
all_objects
WHERE
object_id
=
OBJECT_ID
(
N
'[dbo].[user_function_binding]'
)
AND
type
IN
(
'U'
))
DROP
TABLE
[
dbo
].[
user_function_binding
]
GO
CREATE
TABLE
[
dbo
].[
user_function_binding
]
(
[
id
]
int
IDENTITY
NOT
NULL
,
[
user_id
]
int
NOT
NULL
,
[
func_id
]
int
NOT
NULL
)
GO
ALTER
TABLE
[
dbo
].[
user_function_binding
]
SET
(
LOCK_ESCALATION
=
TABLE
)
GO
-- ----------------------------
-- Records of [user_function_binding]
-- ----------------------------
SET
IDENTITY_INSERT
[
dbo
].[
user_function_binding
]
ON
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'16'
,
N
'1'
,
N
'1'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'17'
,
N
'1'
,
N
'2'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'18'
,
N
'1'
,
N
'3'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'19'
,
N
'1'
,
N
'4'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'20'
,
N
'1'
,
N
'5'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'21'
,
N
'1'
,
N
'6'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'22'
,
N
'1'
,
N
'7'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'23'
,
N
'1'
,
N
'8'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'24'
,
N
'1'
,
N
'9'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'34'
,
N
'9'
,
N
'1'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'35'
,
N
'9'
,
N
'2'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'36'
,
N
'9'
,
N
'3'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'37'
,
N
'9'
,
N
'4'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'38'
,
N
'9'
,
N
'5'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'39'
,
N
'9'
,
N
'6'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'40'
,
N
'9'
,
N
'7'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'41'
,
N
'9'
,
N
'8'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'42'
,
N
'9'
,
N
'9'
)
GO
SET
IDENTITY_INSERT
[
dbo
].[
user_function_binding
]
OFF
GO
/*
Navicat Premium Data Transfer
Source Server : 中国编码官网
Source Server Type : SQL Server
Source Server Version : 14003223
Source Host : 118.190.181.128,51433:1433
Source Catalog : gs108
Source Schema : dbo
Target Server Type : SQL Server
Target Server Version : 14003223
File Encoding : 65001
Date: 22/12/2021 21:28:44
*/
-- ----------------------------
-- Table structure for user_function_binding
-- ----------------------------
IF
EXISTS
(
SELECT
*
FROM
sys
.
all_objects
WHERE
object_id
=
OBJECT_ID
(
N
'[dbo].[user_function_binding]'
)
AND
type
IN
(
'U'
))
DROP
TABLE
[
dbo
].[
user_function_binding
]
GO
CREATE
TABLE
[
dbo
].[
user_function_binding
]
(
[
id
]
int
IDENTITY
NOT
NULL
,
[
user_id
]
int
NOT
NULL
,
[
func_id
]
int
NOT
NULL
)
GO
ALTER
TABLE
[
dbo
].[
user_function_binding
]
SET
(
LOCK_ESCALATION
=
TABLE
)
GO
-- ----------------------------
-- Records of [user_function_binding]
-- ----------------------------
SET
IDENTITY_INSERT
[
dbo
].[
user_function_binding
]
ON
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'16'
,
N
'1'
,
N
'1'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'17'
,
N
'1'
,
N
'2'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'18'
,
N
'1'
,
N
'3'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'19'
,
N
'1'
,
N
'4'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'20'
,
N
'1'
,
N
'5'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'21'
,
N
'1'
,
N
'6'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'22'
,
N
'1'
,
N
'7'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'23'
,
N
'1'
,
N
'8'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'24'
,
N
'1'
,
N
'9'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'34'
,
N
'9'
,
N
'1'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'35'
,
N
'9'
,
N
'2'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'36'
,
N
'9'
,
N
'3'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'37'
,
N
'9'
,
N
'4'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'38'
,
N
'9'
,
N
'5'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'39'
,
N
'9'
,
N
'6'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'40'
,
N
'9'
,
N
'7'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'41'
,
N
'9'
,
N
'8'
)
GO
INSERT
INTO
[
dbo
].[
user_function_binding
]
([
id
],
[
user_id
],
[
func_id
])
VALUES
(
N
'42'
,
N
'9'
,
N
'9'
)
GO
SET
IDENTITY_INSERT
[
dbo
].[
user_function_binding
]
OFF
GO
视图
/
零售的表
物流的表
gs1_standard
/
##
文件夹内容上传
2021
-
12
-
18
Movie
.
/
redis
-
server
.
exe
redis
.
windows
.
conf
.
/
redis
-
server
.
exe
redis
.
windows
-
service
.
conf
...
...
@@ -800,3 +1003,9 @@ https://www.gds.org.cn/
http
:
//
www
.
gds
.
org
.
cn
/
login
.
aspx
更换成了:
https
:
//
www
.
gds
.
org
.
cn
/
培训计划表做数据清洗
官网旧用户手机号有问题
pom.xml
View file @
18039ee8
...
...
@@ -23,7 +23,7 @@
<java.version>
1.8
</java.version>
<mybatisplus.version>
3.3.1
</mybatisplus.version>
<mysql.version>
8.0.17
</mysql.version>
<mssql.version>
4
.0
</mssql.version>
<mssql.version>
3
.0
</mssql.version>
<oracle.version>
11.2.0.3
</oracle.version>
<druid.version>
1.1.13
</druid.version>
<quartz.version>
2.3.0
</quartz.version>
...
...
@@ -109,9 +109,9 @@
</dependency>
<!--mssql驱动-->
<dependency>
<groupId>
com.microsoft
.sqlserver
</groupId>
<groupId>
com.microsoft
</groupId>
<artifactId>
sqljdbc4
</artifactId>
<version>
${mssql.version}
</version>
<version>
3.0
</version>
</dependency>
<!--postgresql驱动-->
<dependency>
...
...
src/main/java/io/office/modules/manage/controller/DomainListController.java
View file @
18039ee8
...
...
@@ -30,6 +30,9 @@ public class DomainListController {
@Autowired
private
DomainListProperties
domainListProperties
;
@Value
(
"${file.request.prefix}"
)
private
String
fileRequestPrefix
;
@RequestMapping
(
"/api/list"
)
// @RequiresPermissions("manage:doc:list")
...
...
@@ -38,5 +41,12 @@ public class DomainListController {
return
R
.
ok
().
put
(
"data"
,
domainListProperties
.
getDomain
());
}
@RequestMapping
(
"/api/filePath"
)
// @RequiresPermissions("manage:doc:list")
public
R
filePath
()
{
return
R
.
ok
().
put
(
"data"
,
fileRequestPrefix
);
}
}
src/main/java/io/office/modules/manage/controller/MemberController.java
View file @
18039ee8
...
...
@@ -5,8 +5,10 @@ import java.util.Map;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.sys.controller.AbstractController
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -121,8 +123,16 @@ public class MemberController extends AbstractController {
public
R
update
(
@RequestBody
MemberEntity
member
){
MemberEntity
memberUser
=
getMemberUser
();
System
.
out
.
println
(
memberUser
);
memberService
.
updateById
(
member
);
MemberEntity
memberUpdate
=
new
MemberEntity
();
//System.out.println(memberUser);
UpdateWrapper
<
MemberEntity
>
memberEntityUpdateWrapper
=
new
UpdateWrapper
<>();
if
(
StringUtils
.
isNoneBlank
(
member
.
getEmail
()))
{
memberEntityUpdateWrapper
.
eq
(
"id"
,
member
.
getId
());
memberUpdate
.
setEmail
(
member
.
getEmail
());
}
memberService
.
update
(
memberUpdate
,
memberEntityUpdateWrapper
);
return
R
.
ok
();
}
...
...
src/main/java/io/office/modules/manage/dao/BikefirmDao.java
View file @
18039ee8
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.datasource.annotation.DataSource
;
import
io.office.modules.manage.entity.BikefirmEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io.office.modules.manage.vo.request.BikeFirmVo
;
...
...
@@ -18,6 +19,7 @@ import java.util.List;
public
interface
BikefirmDao
extends
BaseMapper
<
BikefirmEntity
>
{
@DataSource
(
"slave1"
)
List
<
BikeFirmVo
>
getBikeFirm
(
BikeFirmVo
bikeFirmVo
);
}
src/main/java/io/office/modules/manage/dao/MemberDao.java
View file @
18039ee8
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.LogLoginEntity
;
import
io.office.modules.manage.entity.MemberEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io.office.modules.manage.entity.MemberEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Update
;
import
org.springframework.data.repository.query.Param
;
import
javax.crypto.Cipher
;
import
javax.crypto.KeyGenerator
;
import
javax.crypto.SecretKey
;
import
javax.crypto.SecretKeyFactory
;
import
javax.crypto.spec.DESKeySpec
;
import
java.io.*
;
import
java.security.SecureRandom
;
import
java.util.Scanner
;
/**
* ${comments}
*
...
...
src/main/java/io/office/modules/manage/utils/SqlUtil.java
0 → 100644
View file @
18039ee8
package
io
.
office
.
modules
.
manage
.
utils
;
/**
*
* @description:
*
* @author wudi
* @date 12:50 2022/11/8
*/
public
class
SqlUtil
{
public
static
void
main
(
String
[]
args
)
{
}
}
src/main/resources/application-prod.yml
View file @
18039ee8
...
...
@@ -52,9 +52,9 @@ dynamic:
datasource
:
slave1
:
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
url
:
jdbc:sqlserver://
192.168.0.85:1433;DatabaseName=center_sync
username
:
test
password
:
test123
url
:
jdbc:sqlserver://
219.232.114.86:1433;DatabaseName=prd
username
:
prd_login
password
:
ryr@3647we
slave2
:
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
url
:
jdbc:sqlserver://192.168.0.85:1433;DatabaseName=gs1cn_db
...
...
src/main/resources/application.yml
View file @
18039ee8
...
...
@@ -14,7 +14,7 @@ spring:
name
:
GS1OfficeWebSit
# 环境 dev|test|prod
profiles
:
active
:
prod
active
:
dev
# jackson时间格式化
jackson
:
time-zone
:
GMT+8
...
...
src/main/resources/mapper/manage/BikefirmDao.xml
View file @
18039ee8
...
...
@@ -57,7 +57,7 @@
and b.code= #{code}
</if>
<if
test=
"firmName!='' and firmName!=null"
>
and firm_name_real like
concat('%',#{firmName},'%')
and firm_name_real like
'%'+#{firmName}+'%'
</if>
order by id desc
</select>
...
...
src/test/java/io/renren/JwtTest.java
View file @
18039ee8
...
...
@@ -11,14 +11,13 @@ import org.springframework.test.context.junit4.SpringRunner;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
public
class
JwtTest
{
@Autowired
private
JwtUtils
jwtUtils
;
@Test
public
void
test
()
{
String
token
=
jwtUtils
.
generateToken
(
1
);
System
.
out
.
println
(
token
);
}
}
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