Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
property-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
刘帅
property-management
Commits
d7b7e399
Commit
d7b7e399
authored
Jun 04, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.调整
parent
20be465a
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
75 additions
and
22 deletions
+75
-22
ApiWxCommentController.java
...t/web/controller/business/api/ApiWxCommentController.java
+9
-11
ApiWxCommunityController.java
...web/controller/business/api/ApiWxCommunityController.java
+1
-2
ApiWxLiveBillController.java
.../web/controller/business/api/ApiWxLiveBillController.java
+13
-7
WxLiveBillBo.java
...m/propertyManagement/business/domain/bo/WxLiveBillBo.java
+1
-0
LoginWxUser.java
...om/propertyManagement/business/domain/vo/LoginWxUser.java
+3
-0
WxCommentVo.java
...om/propertyManagement/business/domain/vo/WxCommentVo.java
+9
-0
IWxCommentService.java
...ropertyManagement/business/service/IWxCommentService.java
+6
-0
WxCommentServiceImpl.java
...anagement/business/service/impl/WxCommentServiceImpl.java
+30
-0
WxLiveBillServiceImpl.java
...nagement/business/service/impl/WxLiveBillServiceImpl.java
+1
-0
LiveBillState.java
...va/com/propertyManagement/common/enums/LiveBillState.java
+2
-2
No files found.
propertyManagement-admin/src/main/java/com/propertyManagement/web/controller/business/api/ApiWxCommentController.java
View file @
d7b7e399
package
com
.
propertyManagement
.
web
.
controller
.
business
.
api
;
import
cn.dev33.satoken.annotation.SaCheckPermission
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.propertyManagement.business.domain.WxComment
;
import
com.propertyManagement.business.domain.bo.WxCommentBo
;
import
com.propertyManagement.business.domain.vo.LoginWxUser
;
...
...
@@ -9,27 +7,19 @@ import com.propertyManagement.business.domain.vo.WxCommentVo;
import
com.propertyManagement.business.mapper.WxCommentMapper
;
import
com.propertyManagement.business.service.IWxCommentService
;
import
com.propertyManagement.business.support.util.AuthUtil
;
import
com.propertyManagement.common.annotation.Log
;
import
com.propertyManagement.common.annotation.RepeatSubmit
;
import
com.propertyManagement.common.core.controller.BaseController
;
import
com.propertyManagement.common.core.domain.PageQuery
;
import
com.propertyManagement.common.core.domain.R
;
import
com.propertyManagement.common.core.page.TableDataInfo
;
import
com.propertyManagement.common.core.validate.AddGroup
;
import
com.propertyManagement.common.core.validate.EditGroup
;
import
com.propertyManagement.common.enums.BusinessType
;
import
com.propertyManagement.common.enums.RepairsState
;
import
com.propertyManagement.common.utils.poi.ExcelUtil
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
* 表扬与投诉
...
...
@@ -57,6 +47,14 @@ public class ApiWxCommentController extends BaseController {
return
R
.
ok
(
iWxCommentService
.
queryList
(
bo
));
}
/**
* 查询用户历史工单状态统计
*/
@GetMapping
(
"/userCountAll"
)
public
R
<
Map
<
Integer
,
Long
>>
userCountAll
()
{
return
R
.
ok
(
iWxCommentService
.
userCountAll
());
}
/**
* 获取表扬与投诉详细信息
...
...
propertyManagement-admin/src/main/java/com/propertyManagement/web/controller/business/api/ApiWxCommunityController.java
View file @
d7b7e399
...
...
@@ -17,10 +17,8 @@ import com.propertyManagement.business.service.IWxCommunityService;
import
com.propertyManagement.business.service.WxUserTokenService
;
import
com.propertyManagement.business.support.util.AuthUtil
;
import
com.propertyManagement.common.core.controller.BaseController
;
import
com.propertyManagement.common.core.domain.LoginResult
;
import
com.propertyManagement.common.core.domain.R
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -92,6 +90,7 @@ public class ApiWxCommunityController extends BaseController {
wxUser
.
setRoom
(
proprietorLedger
.
getRoom
());
wxUser
.
setName
(
proprietorLedger
.
getName
());
wxUser
.
setSqm
(
proprietorLedger
.
getSqm
());
wxUser
.
setMonthMoney
(
proprietorLedger
.
getMonthMoney
());
/**
* 查询车位信息
*/
...
...
propertyManagement-admin/src/main/java/com/propertyManagement/web/controller/business/api/ApiWxLiveBillController.java
View file @
d7b7e399
...
...
@@ -7,13 +7,12 @@ import com.propertyManagement.business.service.IWxLiveBillService;
import
com.propertyManagement.business.support.util.AuthUtil
;
import
com.propertyManagement.common.core.controller.BaseController
;
import
com.propertyManagement.common.core.domain.R
;
import
com.propertyManagement.common.core.validate.AddGroup
;
import
com.propertyManagement.common.enums.LiveBillState
;
import
com.propertyManagement.common.enums.LiveBillType
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.constraints.NotEmpty
;
import
java.util.List
;
...
...
@@ -36,12 +35,19 @@ public class ApiWxLiveBillController extends BaseController {
* 查询待缴账单列表
*/
@GetMapping
(
"/listAll"
)
public
R
<
List
<
WxLiveBillVo
>>
listAll
(
@NotEmpty
(
message
=
"类型不能为空"
)
Integer
type
)
{
public
R
<
List
<
WxLiveBillVo
>>
listAll
(
@NotEmpty
(
message
=
"类型不能为空"
)
Integer
type
,
Long
carportId
)
{
LoginWxUser
wxUser
=
AuthUtil
.
getWxUser
();
WxLiveBillBo
wxLiveBillBo
=
new
WxLiveBillBo
();
wxLiveBillBo
.
setProprietorId
(
wxUser
.
getProprietorId
());
wxLiveBillBo
.
setType
(
type
);
wxLiveBillBo
.
setState
(
LiveBillState
.
NO
.
getCode
());
if
(
type
.
equals
(
LiveBillType
.
carport_manage
.
getCode
()))
{
if
(
carportId
==
null
)
{
throw
new
RuntimeException
(
"车位ID不能为空"
);
}
else
{
wxLiveBillBo
.
setCarportId
(
carportId
);
}
}
wxLiveBillBo
.
setType
(
type
);
return
R
.
ok
(
iWxLiveBillService
.
queryList
(
wxLiveBillBo
));
}
...
...
@@ -49,7 +55,7 @@ public class ApiWxLiveBillController extends BaseController {
* 创建缴费账单
*/
@PostMapping
(
"/add"
)
public
R
<
WxLiveBillBo
>
add
(
WxLiveBillBo
bo
)
{
public
R
<
WxLiveBillBo
>
add
(
@Validated
(
AddGroup
.
class
)
@RequestBody
WxLiveBillBo
bo
)
{
return
R
.
ok
(
iWxLiveBillService
.
add
(
bo
));
}
...
...
propertyManagement-business/src/main/java/com/propertyManagement/business/domain/bo/WxLiveBillBo.java
View file @
d7b7e399
...
...
@@ -107,6 +107,7 @@ public class WxLiveBillBo extends BaseEntity {
/**
* 金额
*/
@NotNull
(
message
=
"金额不能为空"
)
private
BigDecimal
money
;
/**
...
...
propertyManagement-business/src/main/java/com/propertyManagement/business/domain/vo/LoginWxUser.java
View file @
d7b7e399
...
...
@@ -50,6 +50,9 @@ public class LoginWxUser implements Serializable {
/** 房间面积 */
private
BigDecimal
sqm
;
/** 物业月费 */
private
BigDecimal
monthMoney
;
/** 车位列表 */
private
List
<
WxCarportVo
>
carportVoList
;
...
...
propertyManagement-business/src/main/java/com/propertyManagement/business/domain/vo/WxCommentVo.java
View file @
d7b7e399
package
com
.
propertyManagement
.
business
.
domain
.
vo
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.excel.annotation.ExcelIgnoreUnannotated
;
import
com.alibaba.excel.annotation.ExcelProperty
;
...
...
@@ -93,5 +96,11 @@ public class WxCommentVo implements Serializable {
@ExcelProperty
(
value
=
"关闭时间"
)
private
Date
closeTime
;
/**
* 创建时间
*/
@ExcelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
}
propertyManagement-business/src/main/java/com/propertyManagement/business/service/IWxCommentService.java
View file @
d7b7e399
...
...
@@ -8,6 +8,7 @@ import com.propertyManagement.common.core.domain.PageQuery;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
/**
* 表扬与投诉Service接口
...
...
@@ -22,6 +23,11 @@ public interface IWxCommentService {
*/
WxCommentVo
queryById
(
Long
id
);
/**
* 查询表扬与投诉
*/
Map
<
Integer
,
Long
>
userCountAll
();
/**
* 查询表扬与投诉列表
*/
...
...
propertyManagement-business/src/main/java/com/propertyManagement/business/service/impl/WxCommentServiceImpl.java
View file @
d7b7e399
...
...
@@ -3,6 +3,7 @@ package com.propertyManagement.business.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
com.propertyManagement.business.domain.vo.LoginWxUser
;
import
com.propertyManagement.business.support.util.AuthUtil
;
import
com.propertyManagement.common.enums.RepairsState
;
import
com.propertyManagement.common.utils.StringUtils
;
import
com.propertyManagement.common.core.page.TableDataInfo
;
import
com.propertyManagement.common.core.domain.PageQuery
;
...
...
@@ -17,6 +18,7 @@ import com.propertyManagement.business.domain.WxComment;
import
com.propertyManagement.business.mapper.WxCommentMapper
;
import
com.propertyManagement.business.service.IWxCommentService
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Collection
;
...
...
@@ -41,6 +43,34 @@ public class WxCommentServiceImpl implements IWxCommentService {
return
baseMapper
.
selectVoById
(
id
);
}
/**
* 查询表扬与投诉
*/
@Override
public
Map
<
Integer
,
Long
>
userCountAll
()
{
Map
<
Integer
,
Long
>
map
=
new
LinkedHashMap
<>();
LoginWxUser
wxUser
=
AuthUtil
.
getWxUser
();
LambdaQueryWrapper
<
WxComment
>
lambdaQueryWrapper
=
Wrappers
.
lambdaQuery
();
lambdaQueryWrapper
.
eq
(
WxComment:
:
getUserId
,
wxUser
.
getId
())
.
eq
(
WxComment:
:
getCommunityId
,
wxUser
.
getCommunityId
())
.
eq
(
WxComment:
:
getState
,
1
);
map
.
put
(
1
,
baseMapper
.
selectCount
(
lambdaQueryWrapper
));
lambdaQueryWrapper
.
clear
();
lambdaQueryWrapper
.
eq
(
WxComment:
:
getUserId
,
wxUser
.
getId
())
.
eq
(
WxComment:
:
getCommunityId
,
wxUser
.
getCommunityId
())
.
eq
(
WxComment:
:
getState
,
2
);
map
.
put
(
2
,
baseMapper
.
selectCount
(
lambdaQueryWrapper
));
lambdaQueryWrapper
.
clear
();
lambdaQueryWrapper
.
eq
(
WxComment:
:
getUserId
,
wxUser
.
getId
())
.
eq
(
WxComment:
:
getCommunityId
,
wxUser
.
getCommunityId
())
.
eq
(
WxComment:
:
getState
,
3
);
map
.
put
(
3
,
baseMapper
.
selectCount
(
lambdaQueryWrapper
));
return
map
;
}
/**
* 查询表扬与投诉列表
*/
...
...
propertyManagement-business/src/main/java/com/propertyManagement/business/service/impl/WxLiveBillServiceImpl.java
View file @
d7b7e399
...
...
@@ -76,6 +76,7 @@ public class WxLiveBillServiceImpl implements IWxLiveBillService {
// lqw.eq(StringUtils.isNotBlank(bo.getMonth()), WxLiveBill::getMonth, bo.getMonth());
lqw
.
eq
(
bo
.
getType
()
!=
null
,
WxLiveBill:
:
getType
,
bo
.
getType
());
lqw
.
eq
(
bo
.
getState
()
!=
null
,
WxLiveBill:
:
getState
,
bo
.
getState
());
lqw
.
eq
(
bo
.
getCarportId
()
!=
null
,
WxLiveBill:
:
getCarportId
,
bo
.
getCarportId
());
lqw
.
orderByDesc
(
WxLiveBill:
:
getCreateTime
);
return
lqw
;
}
...
...
propertyManagement-common/src/main/java/com/propertyManagement/common/enums/LiveBillState.java
View file @
d7b7e399
...
...
@@ -6,8 +6,8 @@ package com.propertyManagement.common.enums;
* @author liushuai
*/
public
enum
LiveBillState
{
NO
(
0
,
"待缴纳"
),
YES
(
1
,
"已缴纳"
);
NO
(
1
,
"待缴纳"
),
YES
(
2
,
"已缴纳"
);
private
final
Integer
code
;
...
...
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