Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
bd0f68cf
Commit
bd0f68cf
authored
Sep 07, 2023
by
邹磊浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台接口更新
parent
943a5025
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
77 additions
and
54 deletions
+77
-54
pz-admin/src/main/java/com/pz/web/controller/system/NoticeController.java
+7
-7
pz-admin/src/main/resources/application.yml
+2
-0
pz-common/src/main/java/com/pz/common/enums/UserType.java
+6
-1
pz-system/src/main/java/com/pz/system/domain/Article.java
+2
-1
pz-system/src/main/java/com/pz/system/domain/Business.java
+2
-1
pz-system/src/main/java/com/pz/system/domain/City.java
+1
-2
pz-system/src/main/java/com/pz/system/domain/Hospital.java
+2
-1
pz-system/src/main/java/com/pz/system/domain/Notice.java
+2
-1
pz-system/src/main/java/com/pz/system/domain/UserAppreciate.java
+2
-2
pz-system/src/main/java/com/pz/system/domain/UserCollect.java
+2
-2
pz-system/src/main/java/com/pz/system/domain/bo/CityBo.java
+1
-2
pz-system/src/main/java/com/pz/system/domain/bo/UserAppreciateBo.java
+2
-2
pz-system/src/main/java/com/pz/system/domain/bo/UserCollectBo.java
+2
-2
pz-system/src/main/java/com/pz/system/domain/vo/HospitalVo.java
+16
-1
pz-system/src/main/java/com/pz/system/domain/vo/UserAppreciateVo.java
+3
-3
pz-system/src/main/java/com/pz/system/domain/vo/UserCollectVo.java
+2
-2
pz-system/src/main/java/com/pz/system/service/impl/ArticleServiceImpl.java
+22
-23
pz-system/src/main/java/com/pz/system/service/impl/CityServiceImpl.java
+0
-1
pz-system/src/main/java/com/pz/system/service/impl/NoticeServiceImpl.java
+1
-0
No files found.
pz-admin/src/main/java/com/pz/web/controller/system/NoticeController.java
View file @
bd0f68cf
...
@@ -32,7 +32,7 @@ import com.pz.common.core.page.TableDataInfo;
...
@@ -32,7 +32,7 @@ import com.pz.common.core.page.TableDataInfo;
@Validated
@Validated
@RequiredArgsConstructor
@RequiredArgsConstructor
@RestController
@RestController
@RequestMapping
(
"/system/notice"
)
@RequestMapping
(
"/system/notice
s
"
)
public
class
NoticeController
extends
BaseController
{
public
class
NoticeController
extends
BaseController
{
private
final
INoticeService
iNoticeService
;
private
final
INoticeService
iNoticeService
;
...
@@ -40,7 +40,7 @@ public class NoticeController extends BaseController {
...
@@ -40,7 +40,7 @@ public class NoticeController extends BaseController {
/**
/**
* 查询公告列表
* 查询公告列表
*/
*/
@SaCheckPermission
(
"system:notice:list"
)
@SaCheckPermission
(
"system:notice
s
:list"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
<
NoticeVo
>
list
(
NoticeBo
bo
,
PageQuery
pageQuery
)
{
public
TableDataInfo
<
NoticeVo
>
list
(
NoticeBo
bo
,
PageQuery
pageQuery
)
{
return
iNoticeService
.
queryPageList
(
bo
,
pageQuery
);
return
iNoticeService
.
queryPageList
(
bo
,
pageQuery
);
...
@@ -49,7 +49,7 @@ public class NoticeController extends BaseController {
...
@@ -49,7 +49,7 @@ public class NoticeController extends BaseController {
/**
/**
* 导出公告列表
* 导出公告列表
*/
*/
@SaCheckPermission
(
"system:notice:export"
)
@SaCheckPermission
(
"system:notice
s
:export"
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
NoticeBo
bo
,
HttpServletResponse
response
)
{
public
void
export
(
NoticeBo
bo
,
HttpServletResponse
response
)
{
...
@@ -62,7 +62,7 @@ public class NoticeController extends BaseController {
...
@@ -62,7 +62,7 @@ public class NoticeController extends BaseController {
*
*
* @param id 主键
* @param id 主键
*/
*/
@SaCheckPermission
(
"system:notice:query"
)
@SaCheckPermission
(
"system:notice
s
:query"
)
@GetMapping
(
"/{id}"
)
@GetMapping
(
"/{id}"
)
public
R
<
NoticeVo
>
getInfo
(
@NotNull
(
message
=
"主键不能为空"
)
public
R
<
NoticeVo
>
getInfo
(
@NotNull
(
message
=
"主键不能为空"
)
@PathVariable
Integer
id
)
{
@PathVariable
Integer
id
)
{
...
@@ -72,7 +72,7 @@ public class NoticeController extends BaseController {
...
@@ -72,7 +72,7 @@ public class NoticeController extends BaseController {
/**
/**
* 新增公告
* 新增公告
*/
*/
@SaCheckPermission
(
"system:notice:add"
)
@SaCheckPermission
(
"system:notice
s
:add"
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
INSERT
)
@RepeatSubmit
()
@RepeatSubmit
()
@PostMapping
()
@PostMapping
()
...
@@ -83,7 +83,7 @@ public class NoticeController extends BaseController {
...
@@ -83,7 +83,7 @@ public class NoticeController extends BaseController {
/**
/**
* 修改公告
* 修改公告
*/
*/
@SaCheckPermission
(
"system:notice:edit"
)
@SaCheckPermission
(
"system:notice
s
:edit"
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
UPDATE
)
@RepeatSubmit
()
@RepeatSubmit
()
@PutMapping
()
@PutMapping
()
...
@@ -96,7 +96,7 @@ public class NoticeController extends BaseController {
...
@@ -96,7 +96,7 @@ public class NoticeController extends BaseController {
*
*
* @param ids 主键串
* @param ids 主键串
*/
*/
@SaCheckPermission
(
"system:notice:remove"
)
@SaCheckPermission
(
"system:notice
s
:remove"
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"公告"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
R
<
Void
>
remove
(
@NotEmpty
(
message
=
"主键不能为空"
)
public
R
<
Void
>
remove
(
@NotEmpty
(
message
=
"主键不能为空"
)
...
...
pz-admin/src/main/resources/application.yml
View file @
bd0f68cf
...
@@ -138,6 +138,8 @@ security:
...
@@ -138,6 +138,8 @@ security:
# actuator 监控配置
# actuator 监控配置
-
/actuator
-
/actuator
-
/actuator/**
-
/actuator/**
# system 仅用于调试阶段
-
/system/**
# MyBatisPlus配置
# MyBatisPlus配置
# https://baomidou.com/config/
# https://baomidou.com/config/
...
...
pz-common/src/main/java/com/pz/common/enums/UserType.java
View file @
bd0f68cf
...
@@ -22,7 +22,12 @@ public enum UserType {
...
@@ -22,7 +22,12 @@ public enum UserType {
/**
/**
* app端
* app端
*/
*/
APP_USER
(
"app_user"
);
APP_USER
(
"app_user"
),
/**
* 商家端
*/
AMERCHANT_USER
(
"merchant_user"
);
private
final
String
userType
;
private
final
String
userType
;
...
...
pz-system/src/main/java/com/pz/system/domain/Article.java
View file @
bd0f68cf
package
com
.
pz
.
system
.
domain
;
package
com
.
pz
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.pz.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -19,7 +20,7 @@ public class Article extends BaseEntity {
...
@@ -19,7 +20,7 @@ public class Article extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
@TableId
(
value
=
"id"
)
@TableId
(
value
=
"id"
)
private
Integer
id
;
private
Integer
id
;
...
...
pz-system/src/main/java/com/pz/system/domain/Business.java
View file @
bd0f68cf
package
com
.
pz
.
system
.
domain
;
package
com
.
pz
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.pz.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -19,7 +20,7 @@ public class Business extends BaseEntity {
...
@@ -19,7 +20,7 @@ public class Business extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
@TableId
(
value
=
"id"
)
@TableId
(
value
=
"id"
)
private
Long
id
;
private
Long
id
;
...
...
pz-system/src/main/java/com/pz/system/domain/City.java
View file @
bd0f68cf
...
@@ -13,9 +13,8 @@ import lombok.EqualsAndHashCode;
...
@@ -13,9 +13,8 @@ import lombok.EqualsAndHashCode;
* @date 2023-09-07
* @date 2023-09-07
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@TableName
(
"city"
)
@TableName
(
"city"
)
public
class
City
extends
BaseEntity
{
public
class
City
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
pz-system/src/main/java/com/pz/system/domain/Hospital.java
View file @
bd0f68cf
package
com
.
pz
.
system
.
domain
;
package
com
.
pz
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.pz.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -19,7 +20,7 @@ public class Hospital extends BaseEntity {
...
@@ -19,7 +20,7 @@ public class Hospital extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
@TableId
(
value
=
"id"
)
@TableId
(
value
=
"id"
)
private
Integer
id
;
private
Integer
id
;
...
...
pz-system/src/main/java/com/pz/system/domain/Notice.java
View file @
bd0f68cf
package
com
.
pz
.
system
.
domain
;
package
com
.
pz
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.pz.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -19,7 +20,7 @@ public class Notice extends BaseEntity {
...
@@ -19,7 +20,7 @@ public class Notice extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
@TableId
(
value
=
"id"
)
@TableId
(
value
=
"id"
)
private
Integer
id
;
private
Integer
id
;
...
...
pz-system/src/main/java/com/pz/system/domain/UserAppreciate.java
View file @
bd0f68cf
...
@@ -23,7 +23,7 @@ public class UserAppreciate extends BaseEntity {
...
@@ -23,7 +23,7 @@ public class UserAppreciate extends BaseEntity {
*
*
*/
*/
@TableId
(
value
=
"id"
)
@TableId
(
value
=
"id"
)
private
Long
id
;
private
Integer
id
;
/**
/**
* 文章
* 文章
*/
*/
...
@@ -31,7 +31,7 @@ public class UserAppreciate extends BaseEntity {
...
@@ -31,7 +31,7 @@ public class UserAppreciate extends BaseEntity {
/**
/**
* 用户
* 用户
*/
*/
private
Long
uid
;
private
Integer
uid
;
/**
/**
* 删除标志(0代表存在 2代表删除)
* 删除标志(0代表存在 2代表删除)
*/
*/
...
...
pz-system/src/main/java/com/pz/system/domain/UserCollect.java
View file @
bd0f68cf
...
@@ -27,11 +27,11 @@ public class UserCollect extends BaseEntity {
...
@@ -27,11 +27,11 @@ public class UserCollect extends BaseEntity {
/**
/**
* 文章
* 文章
*/
*/
private
Long
aid
;
private
Integer
aid
;
/**
/**
* 用户
* 用户
*/
*/
private
Long
uid
;
private
Integer
uid
;
/**
/**
* 删除标志(0代表存在 2代表删除)
* 删除标志(0代表存在 2代表删除)
*/
*/
...
...
pz-system/src/main/java/com/pz/system/domain/bo/CityBo.java
View file @
bd0f68cf
...
@@ -14,8 +14,7 @@ import javax.validation.constraints.*;
...
@@ -14,8 +14,7 @@ import javax.validation.constraints.*;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
CityBo
{
public
class
CityBo
extends
BaseEntity
{
/**
/**
*
*
...
...
pz-system/src/main/java/com/pz/system/domain/bo/UserAppreciateBo.java
View file @
bd0f68cf
...
@@ -20,7 +20,7 @@ public class UserAppreciateBo extends BaseEntity {
...
@@ -20,7 +20,7 @@ public class UserAppreciateBo extends BaseEntity {
/**
/**
*
*
*/
*/
private
Long
id
;
private
Integer
id
;
/**
/**
* 文章
* 文章
...
@@ -30,7 +30,7 @@ public class UserAppreciateBo extends BaseEntity {
...
@@ -30,7 +30,7 @@ public class UserAppreciateBo extends BaseEntity {
/**
/**
* 用户
* 用户
*/
*/
private
Long
uid
;
private
Integer
uid
;
}
}
pz-system/src/main/java/com/pz/system/domain/bo/UserCollectBo.java
View file @
bd0f68cf
...
@@ -25,10 +25,10 @@ public class UserCollectBo extends BaseEntity {
...
@@ -25,10 +25,10 @@ public class UserCollectBo extends BaseEntity {
/**
/**
* 文章
* 文章
*/
*/
private
Long
aid
;
private
Integer
aid
;
/**
/**
* 用户
* 用户
*/
*/
private
Long
uid
;
private
Integer
uid
;
}
}
pz-system/src/main/java/com/pz/system/domain/vo/HospitalVo.java
View file @
bd0f68cf
...
@@ -6,6 +6,8 @@ import com.pz.common.annotation.ExcelDictFormat;
...
@@ -6,6 +6,8 @@ import com.pz.common.annotation.ExcelDictFormat;
import
com.pz.common.convert.ExcelDictConvert
;
import
com.pz.common.convert.ExcelDictConvert
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
/**
/**
* 医院视图对象 hospital
* 医院视图对象 hospital
...
@@ -20,7 +22,7 @@ public class HospitalVo {
...
@@ -20,7 +22,7 @@ public class HospitalVo {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
@ExcelProperty
(
value
=
""
)
@ExcelProperty
(
value
=
""
)
private
Integer
id
;
private
Integer
id
;
...
@@ -85,5 +87,18 @@ public class HospitalVo {
...
@@ -85,5 +87,18 @@ public class HospitalVo {
@ExcelProperty
(
value
=
"状态:0-禁用,1-启用"
)
@ExcelProperty
(
value
=
"状态:0-禁用,1-启用"
)
private
Integer
status
;
private
Integer
status
;
/**
* 医院类别名称
*/
private
String
categoryName
;
/**
* 医院等级名称
*/
private
String
levelName
;
/**
* 关联科室集
*/
private
List
<
DepartmentVo
>
departmentVoList
;
}
}
pz-system/src/main/java/com/pz/system/domain/vo/UserAppreciateVo.java
View file @
bd0f68cf
...
@@ -20,10 +20,10 @@ public class UserAppreciateVo {
...
@@ -20,10 +20,10 @@ public class UserAppreciateVo {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
*
*/
*/
@ExcelProperty
(
value
=
""
)
@ExcelProperty
(
value
=
""
)
private
Long
id
;
private
Integer
id
;
/**
/**
* 文章
* 文章
...
@@ -35,7 +35,7 @@ public class UserAppreciateVo {
...
@@ -35,7 +35,7 @@ public class UserAppreciateVo {
* 用户
* 用户
*/
*/
@ExcelProperty
(
value
=
"用户"
)
@ExcelProperty
(
value
=
"用户"
)
private
Long
uid
;
private
Integer
uid
;
}
}
pz-system/src/main/java/com/pz/system/domain/vo/UserCollectVo.java
View file @
bd0f68cf
...
@@ -29,13 +29,13 @@ public class UserCollectVo {
...
@@ -29,13 +29,13 @@ public class UserCollectVo {
* 文章
* 文章
*/
*/
@ExcelProperty
(
value
=
"文章"
)
@ExcelProperty
(
value
=
"文章"
)
private
Long
aid
;
private
Integer
aid
;
/**
/**
* 用户
* 用户
*/
*/
@ExcelProperty
(
value
=
"用户"
)
@ExcelProperty
(
value
=
"用户"
)
private
Long
uid
;
private
Integer
uid
;
}
}
pz-system/src/main/java/com/pz/system/service/impl/ArticleServiceImpl.java
View file @
bd0f68cf
package
com
.
pz
.
system
.
service
.
impl
;
package
com
.
pz
.
system
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.pz.common.core.page.TableDataInfo
;
import
com.pz.common.core.page.TableDataInfo
;
import
com.pz.common.core.domain.PageQuery
;
import
com.pz.common.core.domain.PageQuery
;
...
@@ -65,25 +66,27 @@ public class ArticleServiceImpl implements IArticleService {
...
@@ -65,25 +66,27 @@ public class ArticleServiceImpl implements IArticleService {
// 查询城市名称
// 查询城市名称
Map
<
Integer
,
String
>
cityMap
=
new
HashMap
<>();
Map
<
Integer
,
String
>
cityMap
=
new
HashMap
<>();
List
<
CityVo
>
cityVos
=
cityMapper
.
selectVoBatchIds
(
articleIds
);
for
(
CityVo
cityVo
:
cityVos
)
{
cityMap
.
put
(
cityVo
.
getId
(),
cityVo
.
getName
());
}
// 查询点赞和收藏数
// 查询点赞和收藏数
Map
<
Long
,
Integer
>
appreciateNumMap
=
new
HashMap
<>();
Map
<
Integer
,
Integer
>
appreciateNumMap
=
new
HashMap
<>();
Map
<
Long
,
Integer
>
collectNumMap
=
new
HashMap
<>();
Map
<
Integer
,
Integer
>
collectNumMap
=
new
HashMap
<>();
List
<
UserAppreciate
>
userAppreciates
=
userAppreciateMapper
.
selectList
(
Wrappers
.<
UserAppreciate
>
lambdaQuery
().
in
(
UserAppreciate:
:
getAid
,
articleIds
));
List
<
UserCollect
>
userCollects
=
userCollectMapper
.
selectList
(
Wrappers
.<
UserCollect
>
lambdaQuery
().
in
(
UserCollect:
:
getAid
,
articleIds
));
if
(
CollectionUtils
.
isNotEmpty
(
articleIds
)){
List
<
CityVo
>
cityVos
=
cityMapper
.
selectVoBatchIds
(
articleIds
);
for
(
UserAppreciate
userAppreciate
:
userAppreciates
)
{
for
(
CityVo
cityVo
:
cityVos
)
{
long
articleId
=
userAppreciate
.
getAid
();
cityMap
.
put
(
cityVo
.
getId
(),
cityVo
.
getName
());
appreciateNumMap
.
put
(
articleId
,
appreciateNumMap
.
getOrDefault
(
articleId
,
0
)
+
1
);
}
}
List
<
UserAppreciate
>
userAppreciates
=
userAppreciateMapper
.
selectList
(
Wrappers
.<
UserAppreciate
>
lambdaQuery
().
in
(
UserAppreciate:
:
getAid
,
articleIds
));
List
<
UserCollect
>
userCollects
=
userCollectMapper
.
selectList
(
Wrappers
.<
UserCollect
>
lambdaQuery
().
in
(
UserCollect:
:
getAid
,
articleIds
));
for
(
UserCollect
userCollect
:
userCollects
)
{
long
articleId
=
userCollect
.
getAid
();
for
(
UserAppreciate
userAppreciate
:
userAppreciates
)
{
collectNumMap
.
put
(
articleId
,
collectNumMap
.
getOrDefault
(
articleId
,
0
)
+
1
);
Integer
articleId
=
userAppreciate
.
getAid
();
appreciateNumMap
.
put
(
articleId
,
appreciateNumMap
.
getOrDefault
(
articleId
,
0
)
+
1
);
}
for
(
UserCollect
userCollect
:
userCollects
)
{
Integer
articleId
=
userCollect
.
getAid
();
collectNumMap
.
put
(
articleId
,
collectNumMap
.
getOrDefault
(
articleId
,
0
)
+
1
);
}
}
}
// 设置城市名称、点赞数和收藏数
// 设置城市名称、点赞数和收藏数
...
@@ -113,11 +116,7 @@ public class ArticleServiceImpl implements IArticleService {
...
@@ -113,11 +116,7 @@ public class ArticleServiceImpl implements IArticleService {
private
LambdaQueryWrapper
<
Article
>
buildQueryWrapper
(
ArticleBo
bo
)
{
private
LambdaQueryWrapper
<
Article
>
buildQueryWrapper
(
ArticleBo
bo
)
{
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
LambdaQueryWrapper
<
Article
>
lqw
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
Article
>
lqw
=
Wrappers
.
lambdaQuery
();
lqw
.
eq
(
bo
.
getCityId
()
!=
null
,
Article:
:
getCityId
,
bo
.
getCityId
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getTitle
()),
Article:
:
getTitle
,
bo
.
getTitle
());
lqw
.
eq
(
StringUtils
.
isNotBlank
(
bo
.
getTitle
()),
Article:
:
getTitle
,
bo
.
getTitle
());
lqw
.
eq
(
StringUtils
.
isNotBlank
(
bo
.
getCover
()),
Article:
:
getCover
,
bo
.
getCover
());
lqw
.
eq
(
bo
.
getAuthor
()
!=
null
,
Article:
:
getAuthor
,
bo
.
getAuthor
());
lqw
.
eq
(
StringUtils
.
isNotBlank
(
bo
.
getContent
()),
Article:
:
getContent
,
bo
.
getContent
());
return
lqw
;
return
lqw
;
}
}
...
...
pz-system/src/main/java/com/pz/system/service/impl/CityServiceImpl.java
View file @
bd0f68cf
...
@@ -59,7 +59,6 @@ public class CityServiceImpl implements ICityService {
...
@@ -59,7 +59,6 @@ public class CityServiceImpl implements ICityService {
}
}
private
LambdaQueryWrapper
<
City
>
buildQueryWrapper
(
CityBo
bo
)
{
private
LambdaQueryWrapper
<
City
>
buildQueryWrapper
(
CityBo
bo
)
{
Map
<
String
,
Object
>
params
=
bo
.
getParams
();
LambdaQueryWrapper
<
City
>
lqw
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
City
>
lqw
=
Wrappers
.
lambdaQuery
();
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getName
()),
City:
:
getName
,
bo
.
getName
());
lqw
.
like
(
StringUtils
.
isNotBlank
(
bo
.
getName
()),
City:
:
getName
,
bo
.
getName
());
lqw
.
eq
(
bo
.
getProvincialId
()
!=
null
,
City:
:
getProvincialId
,
bo
.
getProvincialId
());
lqw
.
eq
(
bo
.
getProvincialId
()
!=
null
,
City:
:
getProvincialId
,
bo
.
getProvincialId
());
...
...
pz-system/src/main/java/com/pz/system/service/impl/NoticeServiceImpl.java
View file @
bd0f68cf
package
com
.
pz
.
system
.
service
.
impl
;
package
com
.
pz
.
system
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.pz.common.core.page.TableDataInfo
;
import
com.pz.common.core.page.TableDataInfo
;
import
com.pz.common.core.domain.PageQuery
;
import
com.pz.common.core.domain.PageQuery
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
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