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
20ab8260
Commit
20ab8260
authored
Mar 23, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌编辑变成新增修改
parent
7cf16019
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
2 deletions
+13
-2
TabPlatformBrandMapper.java
...com/gic/enterprise/dao/mapper/TabPlatformBrandMapper.java
+1
-1
PlatformBrandService.java
...java/com/gic/enterprise/service/PlatformBrandService.java
+2
-0
PlatformBrandServiceImpl.java
...gic/enterprise/service/impl/PlatformBrandServiceImpl.java
+7
-1
PlatformBrandApiServiceImpl.java
...prise/service/outer/impl/PlatformBrandApiServiceImpl.java
+0
-0
TabPlatformBrandMapper.xml
...vice/src/main/resources/mapper/TabPlatformBrandMapper.xml
+3
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/dao/mapper/TabPlatformBrandMapper.java
View file @
20ab8260
...
...
@@ -56,7 +56,7 @@ public interface TabPlatformBrandMapper {
*/
int
updateByPrimaryKey
(
TabPlatformBrand
record
);
TabPlatformBrand
getByBrandName
(
@Param
(
"platformBrandName"
)
String
platformBrandName
);
TabPlatformBrand
getByBrandName
(
@Param
(
"platformBrandName"
)
String
platformBrandName
,
@Param
(
"platformBrandId"
)
String
platformBrandId
);
Page
<
TabPlatformBrand
>
listPlatformBrand
(
PlatformBrandDTO
platformBrandDTO
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/PlatformBrandService.java
View file @
20ab8260
...
...
@@ -9,6 +9,8 @@ import java.util.List;
public
interface
PlatformBrandService
{
TabPlatformBrand
getByBrandName
(
String
platformBrandName
);
TabPlatformBrand
getByBrandNameAndId
(
String
platformBrandName
,
Integer
platformBrandId
);
Integer
save
(
PlatformBrandDTO
platformBrandDTO
);
Integer
update
(
PlatformBrandDTO
platformBrandDTO
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/PlatformBrandServiceImpl.java
View file @
20ab8260
...
...
@@ -21,7 +21,12 @@ public class PlatformBrandServiceImpl implements PlatformBrandService {
@Override
public
TabPlatformBrand
getByBrandName
(
String
platformBrandName
)
{
return
tabPlatformBrandMapper
.
getByBrandName
(
platformBrandName
);
return
tabPlatformBrandMapper
.
getByBrandName
(
platformBrandName
,
null
);
}
@Override
public
TabPlatformBrand
getByBrandNameAndId
(
String
platformBrandName
,
Integer
platformBrandId
)
{
return
tabPlatformBrandMapper
.
getByBrandName
(
platformBrandName
,
platformBrandName
);
}
@Override
...
...
@@ -43,6 +48,7 @@ public class PlatformBrandServiceImpl implements PlatformBrandService {
tabPlatformBrand
.
setPlatformBrandCategoryCode
(
platformBrandDTO
.
getPlatformBrandCategoryCode
());
tabPlatformBrand
.
setPlatformBrandCategoryName
(
platformBrandDTO
.
getPlatformBrandCategoryName
());
tabPlatformBrand
.
setPlatformBrandName
(
platformBrandDTO
.
getPlatformBrandName
());
tabPlatformBrand
.
setPlatformBrandId
(
platformBrandDTO
.
getPlatformBrandId
());
return
tabPlatformBrandMapper
.
updateByPrimaryKeySelective
(
tabPlatformBrand
);
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/PlatformBrandApiServiceImpl.java
View file @
20ab8260
This diff is collapsed.
Click to expand it.
gic-platform-enterprise-service/src/main/resources/mapper/TabPlatformBrandMapper.xml
View file @
20ab8260
...
...
@@ -136,6 +136,9 @@
<include
refid=
"Base_Column_List"
/>
from tab_platform_brand
where platform_brand_name = #{platformBrandName}
<if
test=
"platformBrandId != null"
>
and platform_brand_id
<>
#{platformBrandId}
</if>
and status = 1
</select>
<select
id=
"listPlatformBrand"
resultMap=
"BaseResultMap"
>
...
...
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