Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-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 242d0978
authored
Jan 19, 2026
by
崔彦峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add:提交有效引荐数相关接口设计。
1 parent
3d07de94
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
131 additions
and
44 deletions
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/EffectiveReferralReviewCommonDTO.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/EffectiveReferralReviewDTO.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewMiniProgramRemote.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemote.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/mapper/perfSalary/EffectiveReferralReviewMapper.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewMiniProgramRemoteImpl.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemoteImpl.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewMiniProgramService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
rpc-dj-staff/src/main/resources/META-INF/orm/EffectiveReferralReviewMapper.xml
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/EffectiveReferralReviewCommonDTO.java
0 → 100644
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
dto
.
perfSalary
;
import
cn.com.glsx.dj.staff.model.perfSalary.EffectiveReferralReview
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
import
lombok.experimental.SuperBuilder
;
import
java.util.List
;
/**
* 有效引荐数表
*/
@Data
public
class
EffectiveReferralReviewCommonDTO
extends
EffectiveReferralReview
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"门店名称"
)
private
String
merchantName
;
@ApiModelProperty
(
value
=
"提交状态:0-未提交 1-已提交"
)
private
Integer
submitStatus
;
@ApiModelProperty
(
value
=
"商户号集合,无须前端传"
)
private
List
<
Integer
>
merchantIds
;
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/EffectiveReferralReviewDTO.java
View file @
242d097
...
@@ -17,11 +17,4 @@ import lombok.experimental.SuperBuilder;
...
@@ -17,11 +17,4 @@ import lombok.experimental.SuperBuilder;
@EqualsAndHashCode
(
callSuper
=
false
)
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
EffectiveReferralReviewDTO
extends
EffectiveReferralReview
{
public
class
EffectiveReferralReviewDTO
extends
EffectiveReferralReview
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"门店名称"
)
private
String
merchantName
;
@ApiModelProperty
(
value
=
"提交状态:0-未提交 1-已提交"
)
private
Integer
submitStatus
;
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewMiniProgramRemote.java
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.StoreEffectiveReferralDetailDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.StoreEffectiveReferralDetailDTO
;
import
cn.com.glsx.framework.core.annotation.ApiMethod
;
import
cn.com.glsx.framework.core.annotation.ApiMethod
;
...
@@ -10,6 +11,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
...
@@ -10,6 +11,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@ApiService
(
value
=
"小程序有效引荐接口"
,
owner
=
"team"
,
protocol
=
ApiService
.
ProtocolEnum
.
dubbo
,
version
=
"1.0.0"
)
@ApiService
(
value
=
"小程序有效引荐接口"
,
owner
=
"team"
,
protocol
=
ApiService
.
ProtocolEnum
.
dubbo
,
version
=
"1.0.0"
)
public
interface
EffectiveReferralReviewMiniProgramRemote
{
public
interface
EffectiveReferralReviewMiniProgramRemote
{
...
@@ -17,7 +19,7 @@ public interface EffectiveReferralReviewMiniProgramRemote {
...
@@ -17,7 +19,7 @@ public interface EffectiveReferralReviewMiniProgramRemote {
@ApiMethod
(
"门店有效引荐数列表"
)
@ApiMethod
(
"门店有效引荐数列表"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"门店有效引荐数分页"
)
@ApiResponse
(
"门店有效引荐数分页"
)
RpcResponse
<
RpcPagination
<
EffectiveReferralReviewDTO
>>
effectiveReferralStorePage
(
@NotNull
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
);
RpcResponse
<
List
<
EffectiveReferralReviewCommonDTO
>>
effectiveReferralStoreList
(
@NotNull
EffectiveReferralReviewCommonDTO
request
);
@ApiMethod
(
"门店有效引荐数详情"
)
@ApiMethod
(
"门店有效引荐数详情"
)
@ApiParam
(
name
=
"id"
,
notes
=
"门店有效引荐记录id"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
)
@ApiParam
(
name
=
"id"
,
notes
=
"门店有效引荐记录id"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
)
...
...
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemote.java
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.framework.core.annotation.ApiMethod
;
import
cn.com.glsx.framework.core.annotation.ApiMethod
;
import
cn.com.glsx.framework.core.annotation.ApiParam
;
import
cn.com.glsx.framework.core.annotation.ApiParam
;
import
cn.com.glsx.framework.core.annotation.ApiResponse
;
import
cn.com.glsx.framework.core.annotation.ApiResponse
;
...
@@ -16,30 +17,30 @@ public interface EffectiveReferralReviewRemote {
...
@@ -16,30 +17,30 @@ public interface EffectiveReferralReviewRemote {
@ApiMethod
(
"店铺设置-有效引荐列表"
)
@ApiMethod
(
"店铺设置-有效引荐列表"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"有效引荐分页"
)
@ApiResponse
(
"有效引荐分页"
)
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
DTO
>>
effectiveReferralPage
(
@NotNull
RpcPagination
<
EffectiveReferralReview
DTO
>
pagination
);
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
CommonDTO
>>
effectiveReferralPage
(
@NotNull
RpcPagination
<
EffectiveReferralReviewCommon
DTO
>
pagination
);
@ApiMethod
(
"订单管理-有效引荐数复核列表"
)
@ApiMethod
(
"订单管理-有效引荐数复核列表"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"有效引荐复核分页"
)
@ApiResponse
(
"有效引荐复核分页"
)
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
DTO
>>
effectiveReferralAuditPage
(
@NotNull
RpcPagination
<
EffectiveReferralReview
DTO
>
pagination
);
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
CommonDTO
>>
effectiveReferralAuditPage
(
@NotNull
RpcPagination
<
EffectiveReferralReviewCommon
DTO
>
pagination
);
@ApiMethod
(
"有效引荐详情"
)
@ApiMethod
(
"有效引荐详情"
)
@ApiParam
(
name
=
"id"
,
notes
=
"有效引荐记录id"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
)
@ApiParam
(
name
=
"id"
,
notes
=
"有效引荐记录id"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
)
@ApiResponse
(
"有效引荐详情"
)
@ApiResponse
(
"有效引荐详情"
)
RpcResponse
<
EffectiveReferralReviewDTO
>
effectiveReferralDetail
(
Integer
id
);
RpcResponse
<
EffectiveReferralReview
Common
DTO
>
effectiveReferralDetail
(
Integer
id
);
@ApiMethod
(
"有效引荐数-复核"
)
@ApiMethod
(
"有效引荐数-复核"
)
@ApiParam
(
name
=
"dto"
,
notes
=
"复核信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"dto"
,
notes
=
"复核信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"复核结果"
)
@ApiResponse
(
"复核结果"
)
RpcResponse
<
Boolean
>
effectiveReferralAudit
(
@NotNull
EffectiveReferralReviewDTO
dto
);
RpcResponse
<
Boolean
>
effectiveReferralAudit
(
@NotNull
EffectiveReferralReview
Common
DTO
dto
);
@ApiMethod
(
"web端有效引荐导出数据查询"
)
@ApiMethod
(
"web端有效引荐导出数据查询"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"导出数据列表"
)
@ApiResponse
(
"导出数据列表"
)
RpcResponse
<
String
>
effectiveReferralExportData
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
);
RpcResponse
<
String
>
effectiveReferralExportData
(
RpcPagination
<
EffectiveReferralReview
Common
DTO
>
pagination
);
@ApiMethod
(
"web端有效引荐复核导出数据查询"
)
@ApiMethod
(
"web端有效引荐复核导出数据查询"
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiParam
(
name
=
"pagination"
,
notes
=
"分页查询信息"
,
dataType
=
ApiParam
.
DataTypeEnum
.
OBJECT
,
required
=
true
)
@ApiResponse
(
"复核导出数据列表"
)
@ApiResponse
(
"复核导出数据列表"
)
RpcResponse
<
String
>
effectiveReferralAuditExportData
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
);
RpcResponse
<
String
>
effectiveReferralAuditExportData
(
RpcPagination
<
EffectiveReferralReview
Common
DTO
>
pagination
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/mapper/perfSalary/EffectiveReferralReviewMapper.java
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
mapper
.
perfSalary
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
mapper
.
perfSalary
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.model.perfSalary.EffectiveReferralReview
;
import
cn.com.glsx.dj.staff.model.perfSalary.EffectiveReferralReview
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
import
org.oreframework.datasource.mybatis.mapper.OreMapper
;
import
java.util.List
;
@Mapper
@Mapper
public
interface
EffectiveReferralReviewMapper
extends
OreMapper
<
EffectiveReferralReview
>
{
public
interface
EffectiveReferralReviewMapper
extends
OreMapper
<
EffectiveReferralReview
>
{
...
@@ -15,4 +18,12 @@ public interface EffectiveReferralReviewMapper extends OreMapper<EffectiveReferr
...
@@ -15,4 +18,12 @@ public interface EffectiveReferralReviewMapper extends OreMapper<EffectiveReferr
* @return 记录
* @return 记录
*/
*/
EffectiveReferralReviewDTO
selectOneByQuery
(
EffectiveReferralReviewDTO
query
);
EffectiveReferralReviewDTO
selectOneByQuery
(
EffectiveReferralReviewDTO
query
);
/**
* 查询门店列表
*
* @param query 查询条件
* @return 门店列表
*/
List
<
EffectiveReferralReviewCommonDTO
>
selectStoreList
(
EffectiveReferralReviewCommonDTO
query
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewMiniProgramRemoteImpl.java
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.StoreEffectiveReferralDetailDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.StoreEffectiveReferralDetailDTO
;
import
cn.com.glsx.dj.staff.service.perfSalary.EffectiveReferralReviewMiniProgramService
;
import
cn.com.glsx.dj.staff.service.perfSalary.EffectiveReferralReviewMiniProgramService
;
...
@@ -10,6 +11,8 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -10,6 +11,8 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.dubbo.config.annotation.DubboService
;
import
org.apache.dubbo.config.annotation.DubboService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.List
;
@Slf4j
@Slf4j
@DubboService
(
version
=
"1.0.0"
,
validation
=
"true"
)
@DubboService
(
version
=
"1.0.0"
,
validation
=
"true"
)
public
class
EffectiveReferralReviewMiniProgramRemoteImpl
implements
EffectiveReferralReviewMiniProgramRemote
{
public
class
EffectiveReferralReviewMiniProgramRemoteImpl
implements
EffectiveReferralReviewMiniProgramRemote
{
...
@@ -18,9 +21,9 @@ public class EffectiveReferralReviewMiniProgramRemoteImpl implements EffectiveRe
...
@@ -18,9 +21,9 @@ public class EffectiveReferralReviewMiniProgramRemoteImpl implements EffectiveRe
private
EffectiveReferralReviewMiniProgramService
effectiveReferralReviewMiniprogramService
;
private
EffectiveReferralReviewMiniProgramService
effectiveReferralReviewMiniprogramService
;
@Override
@Override
public
RpcResponse
<
RpcPagination
<
EffectiveReferralReviewDTO
>>
effectiveReferralStorePage
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
)
{
public
RpcResponse
<
List
<
EffectiveReferralReviewCommonDTO
>>
effectiveReferralStoreList
(
EffectiveReferralReviewCommonDTO
request
)
{
try
{
try
{
return
RpcResponse
.
success
(
effectiveReferralReviewMiniprogramService
.
effectiveReferralStore
Page
(
pagination
));
return
RpcResponse
.
success
(
effectiveReferralReviewMiniprogramService
.
effectiveReferralStore
List
(
request
));
}
catch
(
RpcServiceException
e
){
}
catch
(
RpcServiceException
e
){
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
return
RpcResponse
.
error
(
e
);
return
RpcResponse
.
error
(
e
);
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemoteImpl.java
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
remote
.
perfSalary
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.service.perfSalary.EffectiveReferralReviewService
;
import
cn.com.glsx.dj.staff.service.perfSalary.EffectiveReferralReviewService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
...
@@ -17,7 +18,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
...
@@ -17,7 +18,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
private
EffectiveReferralReviewService
effectiveReferralReviewService
;
private
EffectiveReferralReviewService
effectiveReferralReviewService
;
@Override
@Override
public
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
DTO
>>
effectiveReferralPage
(
RpcPagination
<
EffectiveReferralReview
DTO
>
pagination
)
{
public
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
CommonDTO
>>
effectiveReferralPage
(
RpcPagination
<
EffectiveReferralReviewCommon
DTO
>
pagination
)
{
try
{
try
{
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralPage
(
pagination
));
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralPage
(
pagination
));
}
catch
(
RpcServiceException
e
){
}
catch
(
RpcServiceException
e
){
...
@@ -27,7 +28,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
...
@@ -27,7 +28,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
}
}
@Override
@Override
public
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
DTO
>>
effectiveReferralAuditPage
(
RpcPagination
<
EffectiveReferralReview
DTO
>
pagination
)
{
public
RpcResponse
<
RpcPagination
<
EffectiveReferralReview
CommonDTO
>>
effectiveReferralAuditPage
(
RpcPagination
<
EffectiveReferralReviewCommon
DTO
>
pagination
)
{
try
{
try
{
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralAuditPage
(
pagination
));
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralAuditPage
(
pagination
));
}
catch
(
RpcServiceException
e
){
}
catch
(
RpcServiceException
e
){
...
@@ -37,7 +38,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
...
@@ -37,7 +38,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
}
}
@Override
@Override
public
RpcResponse
<
EffectiveReferralReviewDTO
>
effectiveReferralDetail
(
Integer
id
)
{
public
RpcResponse
<
EffectiveReferralReview
Common
DTO
>
effectiveReferralDetail
(
Integer
id
)
{
try
{
try
{
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralDetail
(
id
));
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralDetail
(
id
));
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -47,7 +48,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
...
@@ -47,7 +48,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
}
}
@Override
@Override
public
RpcResponse
<
Boolean
>
effectiveReferralAudit
(
EffectiveReferralReviewDTO
dto
)
{
public
RpcResponse
<
Boolean
>
effectiveReferralAudit
(
EffectiveReferralReview
Common
DTO
dto
)
{
try
{
try
{
effectiveReferralReviewService
.
effectiveReferralAudit
(
dto
);
effectiveReferralReviewService
.
effectiveReferralAudit
(
dto
);
return
RpcResponse
.
success
(
true
);
return
RpcResponse
.
success
(
true
);
...
@@ -58,7 +59,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
...
@@ -58,7 +59,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
}
}
@Override
@Override
public
RpcResponse
<
String
>
effectiveReferralExportData
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
)
{
public
RpcResponse
<
String
>
effectiveReferralExportData
(
RpcPagination
<
EffectiveReferralReview
Common
DTO
>
pagination
)
{
try
{
try
{
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralExportData
(
pagination
));
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralExportData
(
pagination
));
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -68,7 +69,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
...
@@ -68,7 +69,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
}
}
@Override
@Override
public
RpcResponse
<
String
>
effectiveReferralAuditExportData
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
)
{
public
RpcResponse
<
String
>
effectiveReferralAuditExportData
(
RpcPagination
<
EffectiveReferralReview
Common
DTO
>
pagination
)
{
try
{
try
{
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralAuditExportData
(
pagination
));
return
RpcResponse
.
success
(
effectiveReferralReviewService
.
effectiveReferralAuditExportData
(
pagination
));
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewMiniProgramService.java
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
service
.
perfSalary
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
service
.
perfSalary
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.StoreEffectiveReferralDetailDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.StoreEffectiveReferralDetailDTO
;
import
cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper
;
import
cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Propagation
;
...
@@ -23,13 +21,19 @@ public class EffectiveReferralReviewMiniProgramService {
...
@@ -23,13 +21,19 @@ public class EffectiveReferralReviewMiniProgramService {
@Resource
@Resource
private
EffectiveReferralReviewMapper
effectiveReferralReviewMapper
;
private
EffectiveReferralReviewMapper
effectiveReferralReviewMapper
;
public
RpcPagination
<
EffectiveReferralReviewDTO
>
effectiveReferralStorePage
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
)
{
public
List
<
EffectiveReferralReviewCommonDTO
>
effectiveReferralStoreList
(
EffectiveReferralReviewCommonDTO
request
)
{
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
//筛选项:门店名字(模糊搜索),状态:未提交、已提交,月份:2026-01,
List
<
EffectiveReferralReviewDTO
>
list
=
null
;
//特殊逻辑:根据商户门店id去重,根据门店首字母倒序。要根据门店的不同业务场景的数据判断是否已提交和未提交。
Page
<
EffectiveReferralReviewDTO
>
page
=
(
Page
<
EffectiveReferralReviewDTO
>)
list
;
//不同业务场景`scene_type` '业务场景:1-精品升级(轻改);2-会员权益(广联权益);3-单延保 状态`status` '状态:0-未提交,1-草稿,2-已提交',全部为已提交时,总的提交状态submitStatus才是已提交。
//注意:要跟服务商户表dj_car_life_service_merchant根据`merchant_id`关联,用于筛选项门店搜索,sal_effective_referral_review作为主表
pagination
=
RpcPagination
.
copyPage
(
page
);
log
.
info
(
"查询有效引荐门店列表,参数:{}"
,
request
);
return
pagination
;
List
<
EffectiveReferralReviewCommonDTO
>
list
=
effectiveReferralReviewMapper
.
selectStoreList
(
request
);
log
.
info
(
"查询到有效引荐门店列表数量:{}"
,
list
==
null
?
0
:
list
.
size
());
return
list
;
}
}
public
StoreEffectiveReferralDetailDTO
effectiveReferralStoreDetail
(
Integer
id
)
{
public
StoreEffectiveReferralDetailDTO
effectiveReferralStoreDetail
(
Integer
id
)
{
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
View file @
242d097
package
cn
.
com
.
glsx
.
dj
.
staff
.
service
.
perfSalary
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
service
.
perfSalary
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO
;
import
cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper
;
import
cn.com.glsx.dj.staff.mapper.perfSalary.EffectiveReferralReviewMapper
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
...
@@ -23,39 +24,39 @@ public class EffectiveReferralReviewService {
...
@@ -23,39 +24,39 @@ public class EffectiveReferralReviewService {
@Resource
@Resource
private
EffectiveReferralReviewMapper
effectiveReferralReviewMapper
;
private
EffectiveReferralReviewMapper
effectiveReferralReviewMapper
;
public
RpcPagination
<
EffectiveReferralReview
DTO
>
effectiveReferralPage
(
RpcPagination
<
EffectiveReferralReview
DTO
>
pagination
)
{
public
RpcPagination
<
EffectiveReferralReview
CommonDTO
>
effectiveReferralPage
(
RpcPagination
<
EffectiveReferralReviewCommon
DTO
>
pagination
)
{
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
List
<
EffectiveReferralReviewDTO
>
list
=
null
;
List
<
EffectiveReferralReview
Common
DTO
>
list
=
null
;
Page
<
EffectiveReferralReview
DTO
>
page
=
(
Page
<
EffectiveReferralReview
DTO
>)
list
;
Page
<
EffectiveReferralReview
CommonDTO
>
page
=
(
Page
<
EffectiveReferralReviewCommon
DTO
>)
list
;
pagination
=
RpcPagination
.
copyPage
(
page
);
pagination
=
RpcPagination
.
copyPage
(
page
);
return
pagination
;
return
pagination
;
}
}
public
RpcPagination
<
EffectiveReferralReview
DTO
>
effectiveReferralAuditPage
(
RpcPagination
<
EffectiveReferralReview
DTO
>
pagination
)
{
public
RpcPagination
<
EffectiveReferralReview
CommonDTO
>
effectiveReferralAuditPage
(
RpcPagination
<
EffectiveReferralReviewCommon
DTO
>
pagination
)
{
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
PageHelper
.
startPage
(
pagination
.
getPageNum
(),
pagination
.
getPageSize
());
List
<
EffectiveReferralReviewDTO
>
list
=
null
;
List
<
EffectiveReferralReview
Common
DTO
>
list
=
null
;
Page
<
EffectiveReferralReview
DTO
>
page
=
(
Page
<
EffectiveReferralReview
DTO
>)
list
;
Page
<
EffectiveReferralReview
CommonDTO
>
page
=
(
Page
<
EffectiveReferralReviewCommon
DTO
>)
list
;
pagination
=
RpcPagination
.
copyPage
(
page
);
pagination
=
RpcPagination
.
copyPage
(
page
);
return
pagination
;
return
pagination
;
}
}
public
EffectiveReferralReviewDTO
effectiveReferralDetail
(
Integer
id
)
{
public
EffectiveReferralReview
Common
DTO
effectiveReferralDetail
(
Integer
id
)
{
return
(
EffectiveReferralReviewDTO
)
effectiveReferralReviewMapper
.
selectByPrimaryKey
(
id
);
return
(
EffectiveReferralReview
Common
DTO
)
effectiveReferralReviewMapper
.
selectByPrimaryKey
(
id
);
}
}
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
rollbackFor
=
RpcServiceException
.
class
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
rollbackFor
=
RpcServiceException
.
class
)
public
void
effectiveReferralAudit
(
EffectiveReferralReviewDTO
dto
)
{
public
void
effectiveReferralAudit
(
EffectiveReferralReview
Common
DTO
dto
)
{
// 核心业务逻辑暂不实现
// 核心业务逻辑暂不实现
effectiveReferralReviewMapper
.
updateByPrimaryKeySelective
(
dto
);
effectiveReferralReviewMapper
.
updateByPrimaryKeySelective
(
dto
);
}
}
public
String
effectiveReferralExportData
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
)
{
public
String
effectiveReferralExportData
(
RpcPagination
<
EffectiveReferralReview
Common
DTO
>
pagination
)
{
return
null
;
return
null
;
}
}
public
String
effectiveReferralAuditExportData
(
RpcPagination
<
EffectiveReferralReviewDTO
>
pagination
)
{
public
String
effectiveReferralAuditExportData
(
RpcPagination
<
EffectiveReferralReview
Common
DTO
>
pagination
)
{
return
null
;
return
null
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-staff/src/main/resources/META-INF/orm/EffectiveReferralReviewMapper.xml
View file @
242d097
...
@@ -34,6 +34,11 @@
...
@@ -34,6 +34,11 @@
<resultMap
id=
"DTOResultMap"
type=
"cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO"
extends=
"BaseResultMap"
>
<resultMap
id=
"DTOResultMap"
type=
"cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewDTO"
extends=
"BaseResultMap"
>
</resultMap>
</resultMap>
<resultMap
id=
"CommonDTOResultMap"
type=
"cn.com.glsx.dj.staff.dto.perfSalary.EffectiveReferralReviewCommonDTO"
extends=
"BaseResultMap"
>
<result
column=
"merchant_name"
jdbcType=
"VARCHAR"
property=
"merchantName"
/>
<result
column=
"submit_status"
jdbcType=
"INTEGER"
property=
"submitStatus"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, merchant_id, total_delivery_count, area_effective_count,
id, merchant_id, total_delivery_count, area_effective_count,
reviewed_effective_count, review_month, image_urls, remark,
reviewed_effective_count, review_month, image_urls, remark,
...
@@ -66,4 +71,41 @@
...
@@ -66,4 +71,41 @@
1
1
</select>
</select>
<select
id=
"selectStoreList"
resultMap=
"CommonDTOResultMap"
>
SELECT
serr.merchant_id,
MIN(dclsm.merchant_name) AS merchant_name,
serr.review_month,
CASE
WHEN MAX(CASE WHEN serr.status IN (0, 1) THEN 1 ELSE 0 END) = 1
THEN 0
ELSE 1
END AS submit_status
FROM sal_effective_referral_review serr
LEFT JOIN dj_car_life_service_merchant dclsm ON serr.merchant_id = dclsm.merchant_id
AND dclsm.deleted_flag = 'N'
WHERE serr.deleted_flag = 'N'
and serr.merchant_id in
<foreach
collection=
"merchantIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
<if
test=
"merchantName != null and merchantName != ''"
>
AND dclsm.merchant_name LIKE CONCAT('%', #{merchantName}, '%')
</if>
<if
test=
"createdDate != null and createdDate != ''"
>
AND DATE_FORMAT(serr.created_date, '%Y-%m') = #{createdDate}
</if>
GROUP BY serr.merchant_id
<if
test=
"submitStatus != null"
>
HAVING
CASE
WHEN MAX(CASE WHEN serr.status IN (0, 1) THEN 1 ELSE 0 END) = 1
THEN 0
ELSE 1
END = #{submitStatus}
</if>
ORDER BY
CONVERT(MIN(dclsm.merchant_name) USING gbk) DESC
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
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