Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-staff
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 315f3d52
authored
Jan 26, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提成方案:提成构成自测联调兼bug修复
1 parent
4aa57de0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
132 deletions
src/main/java/cn/com/glsx/dj/staff/controller/performance/MerchantBrandController.java
src/main/java/cn/com/glsx/dj/staff/controller/performance/PerformanceConfigApproveController.java
src/main/java/cn/com/glsx/dj/staff/controller/performance/PerformanceConfigController.java
src/main/java/cn/com/glsx/dj/staff/controller/performance/PerformanceTimeCycleController.java
src/main/java/cn/com/glsx/dj/staff/controller/performance/MerchantBrandController.java
View file @
315f3d5
...
...
@@ -26,14 +26,8 @@ public class MerchantBrandController {
@ServiceMethod
(
method
=
"dj.staff.api.service.merchant.page.with.brand"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.service.merchant.page.with.brand/1.0.0"
)
public
RopResponse
<
RpcPagination
<
ServiceMerchantPageWithBrandDTO
>>
pageListMerchantWithBrand
(
MerchantBrandSelectRequest
request
)
{
// dj_car_life_merchant_brand_model
RpcPagination
<
ServiceMerchantPageWithBrandDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
ServiceMerchantPageWithBrandDTO
.
class
);
int
currentPage
=
request
.
getCurrentPage
();
if
(
currentPage
>
0
)
{
pagination
.
setPageNum
(
currentPage
);
}
ServiceMerchantPageWithBrandDTO
condition
=
new
ServiceMerchantPageWithBrandDTO
();
condition
.
setQueryParam
(
request
.
getName
());
pagination
.
setCondition
(
condition
);
// RpcResponse<RpcPagination<ServiceMerchantPageWithBrandDTO>> page = serviceMerchantRemote.pageListMerchantWithBrand(pagination);
// return CommonUtil.convertRopResponse(page);
...
...
src/main/java/cn/com/glsx/dj/staff/controller/performance/PerformanceConfigApproveController.java
View file @
315f3d5
...
...
@@ -8,8 +8,6 @@ import cn.com.glsx.dj.staff.request.performance.*;
import
cn.com.glsx.dj.staff.util.CommonUtil
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.annotation.*
;
import
io.swagger.annotations.Api
;
...
...
@@ -42,36 +40,20 @@ public class PerformanceConfigApproveController {
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.approve.page"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.config.approve.page/1.0.0"
)
public
RopResponse
<
RpcPagination
<
PerformanceConfigApprovePageDTO
>>
performanceConfigApprovePageByMerchant
(
PerformanceConfigApprovePageByMerchantRequest
request
)
{
try
{
RpcPagination
<
PerformanceConfigApprovePageDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
PerformanceConfigApprovePageDTO
.
class
);
PerformanceConfigApprovePageDTO
condition
=
CommonUtil
.
convertRequest
(
PerformanceConfigApprovePageDTO
.
class
);
pagination
.
setCondition
(
condition
);
RpcResponse
<
RpcPagination
<
PerformanceConfigApprovePageDTO
>>
pageResponse
=
performanceConfigApproveRemote
.
performanceConfigApprovePage
(
pagination
);
return
CommonUtil
.
convertRopResponse
(
pageResponse
);
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApprovePageByMerchant__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApprovePageByMerchant__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
RpcPagination
<
PerformanceConfigApprovePageDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
PerformanceConfigApprovePageDTO
.
class
);
PerformanceConfigApprovePageDTO
condition
=
CommonUtil
.
convertRequest
(
PerformanceConfigApprovePageDTO
.
class
);
pagination
.
setCondition
(
condition
);
RpcResponse
<
RpcPagination
<
PerformanceConfigApprovePageDTO
>>
pageResponse
=
performanceConfigApproveRemote
.
performanceConfigApprovePage
(
pagination
);
return
CommonUtil
.
convertRopResponse
(
pageResponse
);
}
@ApiOperation
(
"提成方案提交审批"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.approve.submit"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.config.approve.submit/1.0.0"
)
public
RopResponse
<
Boolean
>
performanceConfigApproveSubmit
(
PerformanceConfigApproveSubmitRequest
request
)
{
try
{
PerformanceConfigApproveDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigApproveDTO
.
class
);
RpcResponse
<
Boolean
>
booleanRpcResponse
=
performanceConfigApproveRemote
.
approveSubmit
(
dto
);
return
RopResponse
.
success
(
booleanRpcResponse
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveSubmit__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveSubmit__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
PerformanceConfigApproveDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigApproveDTO
.
class
);
RpcResponse
<
Boolean
>
booleanRpcResponse
=
performanceConfigApproveRemote
.
approveSubmit
(
dto
);
return
RopResponse
.
success
(
booleanRpcResponse
.
getResult
());
}
...
...
@@ -79,66 +61,34 @@ public class PerformanceConfigApproveController {
@ServiceMethod
(
method
=
"dj.staff.api.performance.approve.config.get"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.approve.config.get/1.0.0"
)
public
RopResponse
<
List
<
PerformanceApproveConfigDTO
>>
performanceApproveConfigGet
(
PerformanceApproveConfigGetRequest
request
)
{
try
{
return
RopResponse
.
success
(
performanceApproveConfigRemote
.
listAll
());
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceApproveConfigGet__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceApproveConfigGet__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
return
RopResponse
.
success
(
performanceApproveConfigRemote
.
listAll
());
}
@ApiOperation
(
"提成方案审批详情"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.approve.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.config.approve.detail/1.0.0"
)
public
RopResponse
<
PerformanceConfigApproveDetailDTO
>
performanceConfigApproveDetail
(
CommonIntegerIdRequest
request
)
{
try
{
PerformanceConfigApproveDTO
dto
=
PerformanceConfigApproveDTO
.
builder
().
id
(
request
.
getId
()).
build
();
RpcResponse
<
PerformanceConfigApproveDetailDTO
>
response
=
performanceConfigApproveRemote
.
performanceConfigApproveDetail
(
dto
);
return
RopResponse
.
success
(
response
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetail__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetail__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
PerformanceConfigApproveDTO
dto
=
PerformanceConfigApproveDTO
.
builder
().
id
(
request
.
getId
()).
build
();
RpcResponse
<
PerformanceConfigApproveDetailDTO
>
response
=
performanceConfigApproveRemote
.
performanceConfigApproveDetail
(
dto
);
return
RopResponse
.
success
(
response
.
getResult
());
}
@ApiOperation
(
"获取审批详情与权限(H5请求)"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.approve.permission"
,
needInSession
=
NeedInSessionType
.
NO
)
@PostMapping
(
"/dj.staff.api.performance.config.approve.permission/1.0.0"
)
public
RopResponse
<
PerformanceConfigApprovePermissionDTO
>
performanceConfigApproveDetailAndPermission
(
PerformanceConfigApprovePermissionRequest
request
)
{
try
{
PerformanceConfigApproveDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigApproveDTO
.
class
);
RpcResponse
<
PerformanceConfigApprovePermissionDTO
>
data
=
performanceConfigApproveRemote
.
performanceConfigApproveDetailAndPermission
(
dto
);
return
RopResponse
.
success
(
data
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetailAndPermission__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetailAndPermission__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
PerformanceConfigApproveDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigApproveDTO
.
class
);
RpcResponse
<
PerformanceConfigApprovePermissionDTO
>
data
=
performanceConfigApproveRemote
.
performanceConfigApproveDetailAndPermission
(
dto
);
return
RopResponse
.
success
(
data
.
getResult
());
}
@ApiOperation
(
"提成方案审批操作(通过/驳回/查看)(H5请求)"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.approve.handle"
,
needInSession
=
NeedInSessionType
.
NO
)
@PostMapping
(
"/dj.staff.api.performance.config.approve.handle/1.0.0"
)
public
RopResponse
<
Boolean
>
performanceConfigApproveHandle
(
PerformanceConfigApproveHandleRequest
request
)
{
try
{
PerformanceConfigApproveHandleDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigApproveHandleDTO
.
class
);
RpcResponse
<
Boolean
>
booleanRpcResponse
=
performanceConfigApproveRemote
.
approveHandle
(
dto
);
return
RopResponse
.
success
(
booleanRpcResponse
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveHandle__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigApproveController__invoke__performanceConfigApproveHandle__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
PerformanceConfigApproveHandleDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigApproveHandleDTO
.
class
);
RpcResponse
<
Boolean
>
booleanRpcResponse
=
performanceConfigApproveRemote
.
approveHandle
(
dto
);
return
RopResponse
.
success
(
booleanRpcResponse
.
getResult
());
}
...
...
src/main/java/cn/com/glsx/dj/staff/controller/performance/PerformanceConfigController.java
View file @
315f3d5
...
...
@@ -9,8 +9,6 @@ import cn.com.glsx.dj.staff.service.performance.PerformanceConfigService;
import
cn.com.glsx.dj.staff.util.CommonUtil
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.annotation.*
;
import
io.swagger.annotations.Api
;
...
...
@@ -37,6 +35,7 @@ public class PerformanceConfigController {
private
PerformanceConfigRemote
performanceConfigRemote
;
@Autowired
private
PerformanceConfigService
performanceConfigService
;
@ApiOperation
(
"提成方案列表(以方案为维度)"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.page"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.config.page/1.0.0"
)
...
...
@@ -53,67 +52,35 @@ public class PerformanceConfigController {
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.add"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.config.add/1.0.0"
)
public
RopResponse
<
Integer
>
performanceConfigAdd
(
PerformanceConfigAddRequest
request
)
{
try
{
return
performanceConfigService
.
performanceConfigAdd
(
request
);
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke__performanceConfigUpdate__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke__performanceConfigUpdate__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
return
performanceConfigService
.
performanceConfigAdd
(
request
);
}
@ApiOperation
(
"提成方案详情"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.config.detail/1.0.0"
)
public
RopResponse
<
PerformanceConfigDetailDTO
>
performanceConfigDetail
(
CommonIntegerIdRequest
request
)
{
try
{
PerformanceConfigDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigDTO
.
class
);
RpcResponse
<
PerformanceConfigDetailDTO
>
response
=
performanceConfigRemote
.
performanceConfigDetail
(
dto
);
return
RopResponse
.
success
(
response
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke__performanceConfigDetail__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke__performanceConfigDetail__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
PerformanceConfigDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigDTO
.
class
);
RpcResponse
<
PerformanceConfigDetailDTO
>
response
=
performanceConfigRemote
.
performanceConfigDetail
(
dto
);
return
RopResponse
.
success
(
response
.
getResult
());
}
@ApiOperation
(
"提成方案详情(以门店为维度)"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.config.merchant.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.config.merchant.detail/1.0.0"
)
public
RopResponse
<
List
<
PerformanceConfigDetailDTO
>>
performanceConfigDetailWithMerchant
(
PerformanceConfigDetailWithMerchantRequest
request
)
{
try
{
PerformanceConfigDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigDTO
.
class
);
RpcResponse
<
List
<
PerformanceConfigDetailDTO
>>
response
=
performanceConfigRemote
.
performanceConfigDetailWithMerchant
(
dto
);
return
RopResponse
.
success
(
response
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke__performanceConfigDetail__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke__performanceConfigDetail__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
PerformanceConfigDTO
dto
=
CommonUtil
.
convertRequest
(
PerformanceConfigDTO
.
class
);
RpcResponse
<
List
<
PerformanceConfigDetailDTO
>>
response
=
performanceConfigRemote
.
performanceConfigDetailWithMerchant
(
dto
);
return
RopResponse
.
success
(
response
.
getResult
());
}
@ApiOperation
(
"门店提成方案列表(以门店为维度)"
)
@ServiceMethod
(
method
=
"dj.staff.api.performance.store.config.page"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.store.config.page/1.0.0"
)
public
RopResponse
<
RpcPagination
<
PerformanceConfigPageByMerchantDTO
>>
performanceConfigPageByMerchent
(
PerformanceConfigPageByMerchantRequest
request
)
{
try
{
RpcPagination
<
PerformanceConfigPageByMerchantDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
PerformanceConfigPageByMerchantDTO
.
class
);
PerformanceConfigPageByMerchantDTO
condition
=
CommonUtil
.
convertRequest
(
PerformanceConfigPageByMerchantDTO
.
class
);
pagination
.
setCondition
(
condition
);
RpcResponse
<
RpcPagination
<
PerformanceConfigPageByMerchantDTO
>>
pageResponse
=
performanceConfigRemote
.
performanceConfigPageByMerchant
(
pagination
);
return
CommonUtil
.
convertRopResponse
(
pageResponse
);
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke_performanceConfigPageByMerchent__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceConfigController__invoke_performanceConfigPageByMerchent__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
RpcPagination
<
PerformanceConfigPageByMerchantDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
PerformanceConfigPageByMerchantDTO
.
class
);
PerformanceConfigPageByMerchantDTO
condition
=
CommonUtil
.
convertRequest
(
PerformanceConfigPageByMerchantDTO
.
class
);
pagination
.
setCondition
(
condition
);
RpcResponse
<
RpcPagination
<
PerformanceConfigPageByMerchantDTO
>>
pageResponse
=
performanceConfigRemote
.
performanceConfigPageByMerchant
(
pagination
);
return
CommonUtil
.
convertRopResponse
(
pageResponse
);
}
}
\ No newline at end of file
src/main/java/cn/com/glsx/dj/staff/controller/performance/PerformanceTimeCycleController.java
View file @
315f3d5
...
...
@@ -3,8 +3,6 @@ package cn.com.glsx.dj.staff.controller.performance;
import
cn.com.glsx.dj.staff.dto.performance.PerformanceTimeCycleDTO
;
import
cn.com.glsx.dj.staff.remote.performance.PerformanceTimeCycleRemote
;
import
cn.com.glsx.dj.staff.request.performance.PerformanceTimeCycleGetRequest
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.annotation.*
;
import
io.swagger.annotations.Api
;
...
...
@@ -26,15 +24,7 @@ public class PerformanceTimeCycleController {
@ServiceMethod
(
method
=
"dj.staff.api.performance.time.cycle.get"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.performance.time.cycle.get/1.0.0"
)
public
RopResponse
<
PerformanceTimeCycleDTO
>
performanceAppealLifeCycle
(
PerformanceTimeCycleGetRequest
request
)
{
try
{
PerformanceTimeCycleDTO
dto
=
PerformanceTimeCycleDTO
.
builder
().
build
();
return
RopResponse
.
success
(
performanceTimeCycleRemote
.
getCurrPerformanceTimeCycle
(
dto
));
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======PerformanceTimeCycleController__invoke__performanceAppealLifeCycle__exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"=======PerformanceTimeCycleController__invoke__performanceAppealLifeCycle__exception:"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
PerformanceTimeCycleDTO
dto
=
PerformanceTimeCycleDTO
.
builder
().
build
();
return
RopResponse
.
success
(
performanceTimeCycleRemote
.
getCurrPerformanceTimeCycle
(
dto
));
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment