Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
50abc93f
Commit
50abc93f
authored
Aug 05, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌库接口api
parent
d8a5cf45
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
632 additions
and
2 deletions
+632
-2
PlatformBrandDTO.java
...rc/main/java/com/gic/enterprise/dto/PlatformBrandDTO.java
+69
-0
PlatformBrandRefDTO.java
...main/java/com/gic/enterprise/dto/PlatformBrandRefDTO.java
+81
-0
PlatfromBrandApiService.java
...a/com/gic/enterprise/service/PlatfromBrandApiService.java
+133
-0
TabPlatformBrandMapper.java
...com/gic/enterprise/dao/mapper/TabPlatformBrandMapper.java
+54
-0
TabPlatformBrandRefMapper.java
.../gic/enterprise/dao/mapper/TabPlatformBrandRefMapper.java
+54
-0
TabPlatformBrand.java
...main/java/com/gic/enterprise/entity/TabPlatformBrand.java
+113
-0
TabPlatformBrandRef.java
...n/java/com/gic/enterprise/entity/TabPlatformBrandRef.java
+126
-0
TabPlatformBrandMapper.xml
...vice/src/main/resources/mapper/TabPlatformBrandMapper.xml
+0
-0
TabPlatformBrandRefMapper.xml
...e/src/main/resources/mapper/TabPlatformBrandRefMapper.xml
+0
-0
GlobalExceptionHandler.java
.../gic/enterprise/web/exception/GlobalExceptionHandler.java
+1
-1
GlobalExceptionHandler.java
...m/gic/operation/web/exception/GlobalExceptionHandler.java
+1
-1
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/PlatformBrandDTO.java
0 → 100644
View file @
50abc93f
package
com
.
gic
.
enterprise
.
dto
;
import
java.io.Serializable
;
public
class
PlatformBrandDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6619834227070771185L
;
private
Integer
platformBrandId
;
/**
* 经营类目
*/
private
Integer
platformBrandCategoryId
;
/**
* 经营类目名
*/
private
String
platformBrandCategoryName
;
/**
* 品牌name
*/
private
String
platformBrandName
;
/**
* 1:运维平台 2:商户后台
*/
private
Integer
createType
;
public
Integer
getPlatformBrandId
()
{
return
platformBrandId
;
}
public
void
setPlatformBrandId
(
Integer
platformBrandId
)
{
this
.
platformBrandId
=
platformBrandId
;
}
public
Integer
getPlatformBrandCategoryId
()
{
return
platformBrandCategoryId
;
}
public
void
setPlatformBrandCategoryId
(
Integer
platformBrandCategoryId
)
{
this
.
platformBrandCategoryId
=
platformBrandCategoryId
;
}
public
String
getPlatformBrandCategoryName
()
{
return
platformBrandCategoryName
;
}
public
void
setPlatformBrandCategoryName
(
String
platformBrandCategoryName
)
{
this
.
platformBrandCategoryName
=
platformBrandCategoryName
;
}
public
String
getPlatformBrandName
()
{
return
platformBrandName
;
}
public
void
setPlatformBrandName
(
String
platformBrandName
)
{
this
.
platformBrandName
=
platformBrandName
;
}
public
Integer
getCreateType
()
{
return
createType
;
}
public
void
setCreateType
(
Integer
createType
)
{
this
.
createType
=
createType
;
}
}
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/PlatformBrandRefDTO.java
0 → 100644
View file @
50abc93f
package
com
.
gic
.
enterprise
.
dto
;
import
java.io.Serializable
;
public
class
PlatformBrandRefDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1183766055952427246L
;
private
Integer
platformBrandRefId
;
/**
*
*/
private
Integer
platformBrandId
;
/**
* 企业id
*/
private
Integer
enterpriseId
;
/**
* 商户品牌id
*/
private
Integer
enterpriseBrandId
;
/**
* 商户品牌name
*/
private
String
enterpriseBrandName
;
/**
* 商户品牌code
*/
private
String
enterpriseBrandCode
;
public
Integer
getPlatformBrandRefId
()
{
return
platformBrandRefId
;
}
public
void
setPlatformBrandRefId
(
Integer
platformBrandRefId
)
{
this
.
platformBrandRefId
=
platformBrandRefId
;
}
public
Integer
getPlatformBrandId
()
{
return
platformBrandId
;
}
public
void
setPlatformBrandId
(
Integer
platformBrandId
)
{
this
.
platformBrandId
=
platformBrandId
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getEnterpriseBrandId
()
{
return
enterpriseBrandId
;
}
public
void
setEnterpriseBrandId
(
Integer
enterpriseBrandId
)
{
this
.
enterpriseBrandId
=
enterpriseBrandId
;
}
public
String
getEnterpriseBrandName
()
{
return
enterpriseBrandName
;
}
public
void
setEnterpriseBrandName
(
String
enterpriseBrandName
)
{
this
.
enterpriseBrandName
=
enterpriseBrandName
;
}
public
String
getEnterpriseBrandCode
()
{
return
enterpriseBrandCode
;
}
public
void
setEnterpriseBrandCode
(
String
enterpriseBrandCode
)
{
this
.
enterpriseBrandCode
=
enterpriseBrandCode
;
}
}
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/PlatfromBrandApiService.java
0 → 100644
View file @
50abc93f
package
com
.
gic
.
enterprise
.
service
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.enterprise.dto.PlatformBrandDTO
;
import
com.gic.enterprise.dto.PlatformBrandRefDTO
;
/**
* 平台品牌
* @ClassName: PlatfromBrandApiService
* @Description: 平台品牌
* @author zhiwj
* @date 2019/8/5 16:26
*/
public
interface
PlatfromBrandApiService
{
/**
* gic添加一个平台级品牌
* @Title: addBrandFromGic
* @Description:
* @author zhiwj
* @param categoryId
* @param platformBrandName
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer> id
* @throws
*/
ServiceResponse
<
Integer
>
saveBrandFromGic
(
Integer
categoryId
,
String
platformBrandName
);
/**
* 运维平台添加一个平台级品牌
* @Title: addBrandFromOperation
* @Description:
* @author zhiwj
* @param categoryId
* @param platformBrandName
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer> id
* @throws
*/
ServiceResponse
<
Integer
>
saveOrUpdateBrandFromOperation
(
Integer
categoryId
,
String
platformBrandName
);
/**
* 根据id删除
* @Title: delBrandById
* @Description:
* @author zhiwj
* @param platformBrandId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse
<
Integer
>
delBrandById
(
Integer
platformBrandId
);
/**
* 查询品牌list, 条件为:名称:platformBrandCategoryId 类目:platformBrandName 来源:createType
* @Title: listPlatformBrand
* @Description:
* @author zhiwj
* @param platformBrandDTO
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.enterprise.dto.PlatformBrandDTO>>
* @throws
*/
ServiceResponse
<
Page
<
PlatformBrandDTO
>>
listPlatformBrand
(
PlatformBrandDTO
platformBrandDTO
,
Integer
pageNum
,
Integer
pageSize
);
/**
* 添加商户品牌和平台品牌的关联关系
* @Title: addRef
* @Description: 添加商户品牌和平台品牌的关联关系
* @author zhiwj
* @param enterpriseBrandName 商户品牌名
* @param enterpriseBrandCode 商户品牌code
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer> 影响行数
* @throws
*/
ServiceResponse
<
Integer
>
addRef
(
String
enterpriseBrandName
,
String
enterpriseBrandCode
);
/**
* 删除一个关联关系
* @Title: delRef
* @Description: 删除一个关联关系
* @author zhiwj
* @param enterpriseBrandName
* @param enterpriseBrandCode
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse
<
Integer
>
delRef
(
String
enterpriseBrandName
,
String
enterpriseBrandCode
);
/**
* 更新一个关联关系
* @Title: updateRef
* @Description:
* @author zhiwj
* @param enterpriseBrandName
* @param enterpriseBrandCode
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse
<
Integer
>
updateRef
(
String
enterpriseBrandName
,
String
enterpriseBrandCode
);
/**
* 按品牌名去查询详情
* @Title: getByBrandName
* @Description:
* @author zhiwj
* @param enterpriseBrandName
* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.PlatformBrandDTO>
* @throws
*/
ServiceResponse
<
PlatformBrandDTO
>
getByBrandName
(
String
enterpriseBrandName
);
/**
* 查询平台品牌对应的商品品牌
* @Title: listByPlatformBrandRef
* @Description:
* @author zhiwj
* @param brandName
* @return com.gic.api.base.commons.ServiceResponse<com.gic.api.base.commons.Page<com.gic.enterprise.dto.PlatformBrandRefDTO>>
* @throws
*/
ServiceResponse
<
Page
<
PlatformBrandRefDTO
>>
listByPlatformBrandRef
(
String
brandName
);
/**
* 并入操作,将fromBrandId关联的商户品牌, 并入到toBrandId平台品牌下; 并删除fromBrandId平台品牌
* @Title: mergeBrandRef
* @Description:
* @author zhiwj
* @param fromBrandId
* @param toBrandId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Integer>
* @throws
*/
ServiceResponse
<
Integer
>
mergeBrandRef
(
Integer
fromBrandId
,
Integer
toBrandId
);
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabPlatformBrandMapper.java
0 → 100644
View file @
50abc93f
package
com
.
gic
.
enterprise
.
dao
.
mapper
;
import
com.gic.enterprise.entity.TabPlatformBrand
;
public
interface
TabPlatformBrandMapper
{
/**
* 根据主键删除
*
* @param platformBrandId 主键
* @return 更新条目数
*/
int
deleteByPrimaryKey
(
Integer
platformBrandId
);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabPlatformBrand
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabPlatformBrand
record
);
/**
* 根据主键查询
*
* @param platformBrandId 主键
* @return 实体对象
*/
TabPlatformBrand
selectByPrimaryKey
(
Integer
platformBrandId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabPlatformBrand
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabPlatformBrand
record
);
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabPlatformBrandRefMapper.java
0 → 100644
View file @
50abc93f
package
com
.
gic
.
enterprise
.
dao
.
mapper
;
import
com.gic.enterprise.entity.TabPlatformBrandRef
;
public
interface
TabPlatformBrandRefMapper
{
/**
* 根据主键删除
*
* @param platformBrandRefId 主键
* @return 更新条目数
*/
int
deleteByPrimaryKey
(
Integer
platformBrandRefId
);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabPlatformBrandRef
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabPlatformBrandRef
record
);
/**
* 根据主键查询
*
* @param platformBrandRefId 主键
* @return 实体对象
*/
TabPlatformBrandRef
selectByPrimaryKey
(
Integer
platformBrandRefId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabPlatformBrandRef
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabPlatformBrandRef
record
);
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabPlatformBrand.java
0 → 100644
View file @
50abc93f
package
com
.
gic
.
enterprise
.
entity
;
import
java.util.Date
;
/**
* tab_platform_brand
*/
public
class
TabPlatformBrand
{
/**
*
*/
private
Integer
platformBrandId
;
/**
* 经营类目
*/
private
Integer
platformBrandCategoryId
;
/**
* 经营类目名
*/
private
String
platformBrandCategoryName
;
/**
* 品牌name
*/
private
String
platformBrandName
;
/**
* 1:运维平台 2:商户后台
*/
private
Integer
createType
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
/**
*
*/
private
Integer
status
;
public
Integer
getPlatformBrandId
()
{
return
platformBrandId
;
}
public
void
setPlatformBrandId
(
Integer
platformBrandId
)
{
this
.
platformBrandId
=
platformBrandId
;
}
public
Integer
getPlatformBrandCategoryId
()
{
return
platformBrandCategoryId
;
}
public
void
setPlatformBrandCategoryId
(
Integer
platformBrandCategoryId
)
{
this
.
platformBrandCategoryId
=
platformBrandCategoryId
;
}
public
String
getPlatformBrandCategoryName
()
{
return
platformBrandCategoryName
;
}
public
void
setPlatformBrandCategoryName
(
String
platformBrandCategoryName
)
{
this
.
platformBrandCategoryName
=
platformBrandCategoryName
;
}
public
String
getPlatformBrandName
()
{
return
platformBrandName
;
}
public
void
setPlatformBrandName
(
String
platformBrandName
)
{
this
.
platformBrandName
=
platformBrandName
;
}
public
Integer
getCreateType
()
{
return
createType
;
}
public
void
setCreateType
(
Integer
createType
)
{
this
.
createType
=
createType
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabPlatformBrandRef.java
0 → 100644
View file @
50abc93f
package
com
.
gic
.
enterprise
.
entity
;
import
java.util.Date
;
/**
* tab_platform_brand_ref
*/
public
class
TabPlatformBrandRef
{
/**
*
*/
private
Integer
platformBrandRefId
;
/**
*
*/
private
Integer
platformBrandId
;
/**
* 企业id
*/
private
Integer
enterpriseId
;
/**
* 商户品牌id
*/
private
Integer
enterpriseBrandId
;
/**
* 商户品牌name
*/
private
String
enterpriseBrandName
;
/**
* 商户品牌code
*/
private
String
enterpriseBrandCode
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
/**
*
*/
private
Integer
status
;
public
Integer
getPlatformBrandRefId
()
{
return
platformBrandRefId
;
}
public
void
setPlatformBrandRefId
(
Integer
platformBrandRefId
)
{
this
.
platformBrandRefId
=
platformBrandRefId
;
}
public
Integer
getPlatformBrandId
()
{
return
platformBrandId
;
}
public
void
setPlatformBrandId
(
Integer
platformBrandId
)
{
this
.
platformBrandId
=
platformBrandId
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getEnterpriseBrandId
()
{
return
enterpriseBrandId
;
}
public
void
setEnterpriseBrandId
(
Integer
enterpriseBrandId
)
{
this
.
enterpriseBrandId
=
enterpriseBrandId
;
}
public
String
getEnterpriseBrandName
()
{
return
enterpriseBrandName
;
}
public
void
setEnterpriseBrandName
(
String
enterpriseBrandName
)
{
this
.
enterpriseBrandName
=
enterpriseBrandName
;
}
public
String
getEnterpriseBrandCode
()
{
return
enterpriseBrandCode
;
}
public
void
setEnterpriseBrandCode
(
String
enterpriseBrandCode
)
{
this
.
enterpriseBrandCode
=
enterpriseBrandCode
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/resources/mapper/TabPlatformBrandMapper.xml
0 → 100644
View file @
50abc93f
This diff is collapsed.
Click to expand it.
gic-platform-enterprise-service/src/main/resources/mapper/TabPlatformBrandRefMapper.xml
0 → 100644
View file @
50abc93f
This diff is collapsed.
Click to expand it.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/exception/GlobalExceptionHandler.java
View file @
50abc93f
...
...
@@ -67,7 +67,7 @@ public class GlobalExceptionHandler {
.
append
(
fieldError
.
getDefaultMessage
())
.
append
(
","
);
});
return
getRestResponse
(
StoreGroupErrorEnum
.
E
rror
.
getCode
(),
errorMessage
.
toString
());
return
getRestResponse
(
StoreGroupErrorEnum
.
E
RROR
.
getCode
(),
errorMessage
.
toString
());
}
@ResponseBody
...
...
gic-platform-operation-web/src/main/java/com/gic/operation/web/exception/GlobalExceptionHandler.java
View file @
50abc93f
...
...
@@ -67,7 +67,7 @@ public class GlobalExceptionHandler {
.
append
(
fieldError
.
getDefaultMessage
())
.
append
(
","
);
});
return
getRestResponse
(
StoreGroupErrorEnum
.
E
rror
.
getCode
(),
errorMessage
.
toString
());
return
getRestResponse
(
StoreGroupErrorEnum
.
E
RROR
.
getCode
(),
errorMessage
.
toString
());
}
@ResponseBody
...
...
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