Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
11c83063
Commit
11c83063
authored
Dec 10, 2020
by
unset
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-chw-bug' into master-chw
parents
6a7932b8
f296f3c0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
10 deletions
+26
-10
AppUserDetailMapper.xml
...e-admin/src/main/resources/mapper/AppUserDetailMapper.xml
+2
-2
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+1
-1
BannerBiz.java
...r/src/main/java/com/xxfc/platform/uccn/biz/BannerBiz.java
+3
-3
BannerWebController.java
...java/com/xxfc/platform/uccn/rest/BannerWebController.java
+20
-0
BannerController.java
...a/com/xxfc/platform/uccn/rest/admin/BannerController.java
+0
-4
No files found.
ace-modules/ace-admin/src/main/resources/mapper/AppUserDetailMapper.xml
View file @
11c83063
...
...
@@ -241,10 +241,10 @@
</choose>
</if>
<if
test=
"realName !=null and realName != ''"
>
and
d.realname like CONCAT('%',#{realName},'%'
)
and
(d.realname like CONCAT('%',#{realName},'%') or d.nickname like CONCAT('%',#{realName},'%')
)
</if>
<if
test=
"nickname !=null and nickname != ''"
>
and d.nickname
,
like CONCAT('%',#{nickname},'%')
and d.nickname like CONCAT('%',#{nickname},'%')
</if>
<if
test=
"citySet != null and citySet.size > 0 "
>
and d.city_code in
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
11c83063
...
...
@@ -193,7 +193,7 @@ public class MsgBiz {
return
imQuestionBiz
.
getList
(
questionParamDto
);
}
Query
query
=
new
Query
(
Criteria
.
where
(
"body.type"
).
in
(
ids
));
query
.
addCriteria
(
Criteria
.
where
(
"userId"
).
is
(
userId
));
query
.
addCriteria
(
Criteria
.
where
(
"userId"
).
is
(
userId
)
.
and
(
"visible"
).
is
(
1
)
);
int
totalSize
=
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
).
size
();
query
.
with
(
pageable
);
query
.
with
(
new
Sort
(
Sort
.
Direction
.
DESC
,
"time"
));
...
...
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/biz/BannerBiz.java
View file @
11c83063
...
...
@@ -47,12 +47,12 @@ public class BannerBiz extends BaseBiz<BannerMapper, Banner> {
* @param indexShow 是否首页展示
* @return
*/
public
ObjectRestResponse
<
List
<
Banner
>>
getAll
(
Integer
indexShow
)
{
public
ObjectRestResponse
<
List
<
Banner
>>
getAll
(
Integer
indexShow
,
Integer
location
)
{
Example
example
=
new
Example
(
Banner
.
class
);
if
(
indexShow
!=
null
)
{
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
).
andEqualTo
(
"indexShow"
,
indexShow
);
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
).
andEqualTo
(
"indexShow"
,
indexShow
)
.
andEqualTo
(
"location"
,
location
)
;
}
else
{
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
);
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
)
.
andEqualTo
(
"location"
,
location
)
;
}
example
.
orderBy
(
"rank"
);
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
...
...
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/BannerWebController.java
0 → 100644
View file @
11c83063
package
com
.
xxfc
.
platform
.
uccn
.
rest
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.uccn.biz.BannerBiz
;
import
com.xxfc.platform.uccn.entity.Banner
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"banner/web"
)
public
class
BannerWebController
extends
BaseController
<
BannerBiz
,
Banner
>
{
@GetMapping
(
value
=
"/app/unauth/getAll"
)
public
ObjectRestResponse
getAll
(
@RequestParam
(
value
=
"location"
,
defaultValue
=
"1"
)
Integer
location
)
{
return
baseBiz
.
getAll
(
1
,
location
);
}
}
\ No newline at end of file
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/admin/BannerController.java
View file @
11c83063
...
...
@@ -21,8 +21,4 @@ public class BannerController extends BaseController<BannerBiz, Banner> {
return
baseBiz
.
selectList
(
bannerDto
);
}
@GetMapping
(
value
=
"/app/unauth/getAll"
)
public
ObjectRestResponse
getAll
()
{
return
baseBiz
.
getAll
(
1
);
}
}
\ No newline at end of file
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