Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cneeds-server
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
zhangzr
cneeds-server
Commits
8fb0aca4
Commit
8fb0aca4
authored
May 09, 2020
by
zzrdark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加渠道商模块
parent
0557a7f6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
130 additions
and
5 deletions
+130
-5
cneeds_server.sql
cneeds-common-data/db/cneeds_server.sql
+27
-2
DeviceChannelDao.java
.../main/java/com/mx/cneeds/server/dao/DeviceChannelDao.java
+15
-0
DeviceInfoChannelDao.java
...n/java/com/mx/cneeds/server/dao/DeviceInfoChannelDao.java
+15
-0
DeviceChannelEntity.java
...java/com/mx/cneeds/server/entity/DeviceChannelEntity.java
+39
-0
DeviceInfoChannelEntity.java
.../com/mx/cneeds/server/entity/DeviceInfoChannelEntity.java
+30
-0
OAuth2ResourceServer.java
...x/cneeds/server/datashow/config/OAuth2ResourceServer.java
+1
-0
application.yml
cneeds-server-datashow/src/main/resources/application.yml
+1
-1
application.yml
cneeds-server-device/src/main/resources/application.yml
+1
-1
application.yml
cneeds-server-logupload/src/main/resources/application.yml
+1
-1
No files found.
cneeds-common-data/db/cneeds_server.sql
View file @
8fb0aca4
...
@@ -293,4 +293,29 @@ ALTER TABLE `cneeds_server`.`device_info`
...
@@ -293,4 +293,29 @@ ALTER TABLE `cneeds_server`.`device_info`
ADD
UNIQUE
INDEX
`IMEI_UNIQUE`
(
`imei`
)
USING
BTREE
COMMENT
'imei唯一'
;
ADD
UNIQUE
INDEX
`IMEI_UNIQUE`
(
`imei`
)
USING
BTREE
COMMENT
'imei唯一'
;
ALTER
TABLE
`cneeds_server`
.
`product_series`
ALTER
TABLE
`cneeds_server`
.
`product_series`
ADD
UNIQUE
INDEX
`SERIES_NUM_UNIQUE`
(
`series_num`
)
USING
BTREE
COMMENT
'系列号唯一'
;
ADD
UNIQUE
INDEX
`SERIES_NUM_UNIQUE`
(
`series_num`
)
USING
BTREE
COMMENT
'系列号唯一'
;
\ No newline at end of file
-- 202-05-09
-- ----------------------------
-- Table structure for device_channel
-- 渠道号表
-- ----------------------------
CREATE
TABLE
`device_channel`
(
`channel_id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`channel_num`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'渠道号'
,
`brand`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'品牌'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`channel_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Table structure for device_info_channel
-- 设备信息 - 渠道号 映射表
-- ----------------------------
CREATE
TABLE
`device_info_channel`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`device_id`
bigint
(
20
)
DEFAULT
NULL
,
`channel_id`
bigint
(
20
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
\ No newline at end of file
cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/DeviceChannelDao.java
0 → 100644
View file @
8fb0aca4
package
com
.
mx
.
cneeds
.
server
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.mx.cneeds.server.entity.DeviceChannelEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @ClassName DeviceChannelDao
* @Author zzrdark
* @Date 2020-05-09 15:28
* @Description TODO
**/
@Mapper
public
interface
DeviceChannelDao
extends
BaseMapper
<
DeviceChannelEntity
>
{
}
cneeds-common-data/src/main/java/com/mx/cneeds/server/dao/DeviceInfoChannelDao.java
0 → 100644
View file @
8fb0aca4
package
com
.
mx
.
cneeds
.
server
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.mx.cneeds.server.entity.DeviceInfoChannelEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @ClassName DeviceInfoChannelDao
* @Author zzrdark
* @Date 2020-05-09 15:28
* @Description TODO
**/
@Mapper
public
interface
DeviceInfoChannelDao
extends
BaseMapper
<
DeviceInfoChannelEntity
>
{
}
cneeds-common-data/src/main/java/com/mx/cneeds/server/entity/DeviceChannelEntity.java
0 → 100644
View file @
8fb0aca4
package
com
.
mx
.
cneeds
.
server
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName DeviceChannelEntity
* @Author zzrdark
* @Date 2020-05-09 15:28
* @Description TODO
**/
@Data
public
class
DeviceChannelEntity
implements
Serializable
{
/**
* 渠道号Id
*/
@TableId
private
Long
channelId
;
/**
* 渠道号
*/
private
String
channelNum
;
/**
* 品牌
*/
private
String
brand
;
/**
* 更新时间
*/
private
Date
updateTime
;
}
cneeds-common-data/src/main/java/com/mx/cneeds/server/entity/DeviceInfoChannelEntity.java
0 → 100644
View file @
8fb0aca4
package
com
.
mx
.
cneeds
.
server
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName DeviceInfoChannelEntity
* @Author zzrdark
* @Date 2020-05-09 16:07
* @Description TODO
**/
@Data
public
class
DeviceInfoChannelEntity
implements
Serializable
{
@TableId
private
Long
id
;
/**
* 设备信息表Id
*/
private
Long
deviceId
;
/**
* 渠道号表Id
*/
private
Long
channelId
;
}
cneeds-server-datashow/src/main/java/com/mx/cneeds/server/datashow/config/OAuth2ResourceServer.java
View file @
8fb0aca4
...
@@ -24,6 +24,7 @@ public class OAuth2ResourceServer extends ResourceServerConfigurerAdapter {
...
@@ -24,6 +24,7 @@ public class OAuth2ResourceServer extends ResourceServerConfigurerAdapter {
"/wechat/wechatFileUpload"
,
"/wechat/wechatFileUpload"
,
"/wechat/wechatDownload/**"
,
"/wechat/wechatDownload/**"
,
"/logFile/logfile/DeviceLogFileUpload"
,
"/logFile/logfile/DeviceLogFileUpload"
,
"/logFile/logfile/proDeviceUploadLogFile"
,
// "/user/info",
// "/user/info",
"/statics/**"
)
"/statics/**"
)
.
permitAll
()
.
permitAll
()
...
...
cneeds-server-datashow/src/main/resources/application.yml
View file @
8fb0aca4
spring
:
spring
:
profiles
:
profiles
:
active
:
dev
active
:
prod
application
:
application
:
name
:
cneeds-server-datashow
name
:
cneeds-server-datashow
server
:
server
:
...
...
cneeds-server-device/src/main/resources/application.yml
View file @
8fb0aca4
spring
:
spring
:
profiles
:
profiles
:
active
:
dev
active
:
prod
application
:
application
:
name
:
cneeds-server-device
name
:
cneeds-server-device
...
...
cneeds-server-logupload/src/main/resources/application.yml
View file @
8fb0aca4
spring
:
spring
:
profiles
:
profiles
:
active
:
dev
active
:
prod
application
:
application
:
name
:
cneeds-server-logupload
name
:
cneeds-server-logupload
...
...
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