Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
ecc8f165
Commit
ecc8f165
authored
Aug 03, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 活码作废 关联详情状态改为作废不删除
parent
7c8ef808
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletions
+21
-1
WelcomeRelationQO.java
.../gic/haoban/manage/service/pojo/qo/WelcomeRelationQO.java
+12
-0
HmWelcomeRelationApiServiceImpl.java
.../service/out/impl/hm/HmWelcomeRelationApiServiceImpl.java
+3
-1
TabHaobanWelcomeTemplateRelationMapper.xml
...sources/mapper/TabHaobanWelcomeTemplateRelationMapper.xml
+6
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/qo/WelcomeRelationQO.java
View file @
ecc8f165
...
@@ -2,6 +2,8 @@ package com.gic.haoban.manage.service.pojo.qo;
...
@@ -2,6 +2,8 @@ package com.gic.haoban.manage.service.pojo.qo;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
java.util.List
;
/**
/**
* @Author MUSI
* @Author MUSI
* @Date 2022/7/4 10:54 AM
* @Date 2022/7/4 10:54 AM
...
@@ -17,6 +19,8 @@ public class WelcomeRelationQO extends BasePageInfo {
...
@@ -17,6 +19,8 @@ public class WelcomeRelationQO extends BasePageInfo {
private
String
searchContent
;
private
String
searchContent
;
private
List
<
Integer
>
statusList
;
public
String
getWelcomeId
()
{
public
String
getWelcomeId
()
{
return
welcomeId
;
return
welcomeId
;
}
}
...
@@ -40,4 +44,12 @@ public class WelcomeRelationQO extends BasePageInfo {
...
@@ -40,4 +44,12 @@ public class WelcomeRelationQO extends BasePageInfo {
public
void
setSearchContent
(
String
searchContent
)
{
public
void
setSearchContent
(
String
searchContent
)
{
this
.
searchContent
=
searchContent
;
this
.
searchContent
=
searchContent
;
}
}
public
List
<
Integer
>
getStatusList
()
{
return
statusList
;
}
public
void
setStatusList
(
List
<
Integer
>
statusList
)
{
this
.
statusList
=
statusList
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmWelcomeRelationApiServiceImpl.java
View file @
ecc8f165
...
@@ -14,6 +14,8 @@ import com.gic.haoban.manage.service.service.hm.WelcomeRelationService;
...
@@ -14,6 +14,8 @@ import com.gic.haoban.manage.service.service.hm.WelcomeRelationService;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.Arrays
;
/**
/**
* @Author MUSI
* @Author MUSI
* @Date 2022/7/4 10:52 AM
* @Date 2022/7/4 10:52 AM
...
@@ -39,7 +41,7 @@ public class HmWelcomeRelationApiServiceImpl implements HmWelcomeRelationApiServ
...
@@ -39,7 +41,7 @@ public class HmWelcomeRelationApiServiceImpl implements HmWelcomeRelationApiServ
}
}
WelcomeRelationQO
welcomeRelationQo
=
new
WelcomeRelationQO
();
WelcomeRelationQO
welcomeRelationQo
=
new
WelcomeRelationQO
();
welcomeRelationQo
.
setWelcomeId
(
queryWelcomeRelationQdto
.
getWelcomeId
());
welcomeRelationQo
.
setWelcomeId
(
queryWelcomeRelationQdto
.
getWelcomeId
());
welcomeRelationQo
.
setStatus
(
WelcomeRelationStatusEnum
.
ENABLE
.
getCode
(
));
welcomeRelationQo
.
setStatus
List
(
Arrays
.
asList
(
WelcomeRelationStatusEnum
.
ENABLE
.
getCode
(),
WelcomeRelationStatusEnum
.
DEPRECATED
.
getCode
()
));
welcomeRelationQo
.
setSearchContent
(
queryWelcomeRelationQdto
.
getSearchContent
());
welcomeRelationQo
.
setSearchContent
(
queryWelcomeRelationQdto
.
getSearchContent
());
welcomeRelationQo
.
setPageNum
(
queryWelcomeRelationQdto
.
getPageNum
());
welcomeRelationQo
.
setPageNum
(
queryWelcomeRelationQdto
.
getPageNum
());
welcomeRelationQo
.
setPageSize
(
queryWelcomeRelationQdto
.
getPageSize
());
welcomeRelationQo
.
setPageSize
(
queryWelcomeRelationQdto
.
getPageSize
());
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanWelcomeTemplateRelationMapper.xml
View file @
ecc8f165
...
@@ -180,6 +180,12 @@
...
@@ -180,6 +180,12 @@
<if
test=
"searchContent != null and searchContent != ''"
>
<if
test=
"searchContent != null and searchContent != ''"
>
and (refer_code = #{searchContent} or refer_name like CONCAT('%', #{searchContent}, '%') )
and (refer_code = #{searchContent} or refer_name like CONCAT('%', #{searchContent}, '%') )
</if>
</if>
<if
test=
"statusList != null and statusList.size > 0"
>
and `status` in
<foreach
collection=
"statusList"
item=
"status"
open=
"("
close=
")"
separator=
","
>
#{status}
</foreach>
</if>
</where>
</where>
</select>
</select>
...
...
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