Commit d1899f68 by 林永健

feat(learningcenter): 添加等级考试品牌筛选功能

- 在LevelExamController中新增queryPositionBrandOptions接口用于根据职务查询品牌筛选选项
- 为LevelExamAddRequest、LevelExamUpdateRequest、LevelExamDetailResponse等DTO类添加brandIds和brandNames字段
- 在Excel导出VO中添加品牌相关字段支持
- 更新RPC依赖版本至5.8.6-SNAPSHOT
- 在学习中心等级考试服务中实现品牌过滤逻辑,支持按员工上架门店记录进行品牌匹配
- 添加selectLatestMerchantIdByPhones和selectRecruitmentBrandNamesByPhones数据库查询方法
- 实现基于职务配置的品牌筛选选项查询功能
- 在考试重复性检查中加入品牌ID作为校验条件
- 支持按品牌ID进行考试列表筛选查询
1 parent dad40ad8
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-riskmanage-api</artifactId> <artifactId>rpc-dj-riskmanage-api</artifactId>
<version>5.8.1-SNAPSHOT</version> <version>5.8.6-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
......
...@@ -9,6 +9,7 @@ import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamDetailResponse ...@@ -9,6 +9,7 @@ import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamDetailResponse
import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamExportVO; import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamExportVO;
import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamPageListResponse; import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamPageListResponse;
import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamPersonDataExportVO; import cn.com.glsx.dj.riskmanage.response.learningcenter.LevelExamPersonDataExportVO;
import cn.com.glsx.dj.riskmanage.dto.learningcenter.LevelExamPositionBrandResponse;
import cn.com.glsx.dj.riskmanage.utils.CommonUtil; import cn.com.glsx.dj.riskmanage.utils.CommonUtil;
import cn.com.glsx.dj.riskmanage.utils.excel.EasyExcelUtil; import cn.com.glsx.dj.riskmanage.utils.excel.EasyExcelUtil;
import cn.com.glsx.dj.smartcarlife.dto.LoginUserDTO; import cn.com.glsx.dj.smartcarlife.dto.LoginUserDTO;
...@@ -265,4 +266,19 @@ public class LevelExamController { ...@@ -265,4 +266,19 @@ public class LevelExamController {
} }
} }
@ApiOperation("等级考试-根据职务查询品牌筛选选项")
@ServiceMethod(method = "risk.manage.api.level.exam.position.brand.query", needInSession = NeedInSessionType.YES)
public RopResponse<List<LevelExamPositionBrandResponse>> queryPositionBrandOptions(LevelExamPositionBrandRequest request) {
try {
RpcResponse<List<LevelExamPositionBrandResponse>> response = levelExamRemote.queryPositionBrandOptions(request);
return CommonUtil.convertRopResponse(response);
} catch (RpcServiceException e) {
log.info("risk.manage.api.level.exam.position.brand.query.exception!", e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("risk.manage.api.level.exam.position.brand.query.exception!", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
}
} }
...@@ -73,4 +73,10 @@ public class LevelExamAddRequest extends AbstractRopRequest { ...@@ -73,4 +73,10 @@ public class LevelExamAddRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "考试等级") @ApiModelProperty(notes = "考试等级")
private List<LevelExamLevelRequest> levelExamLevels; private List<LevelExamLevelRequest> levelExamLevels;
@ApiModelProperty(notes = "品牌ID列表(逗号分隔)")
private String brandIds;
@ApiModelProperty(notes = "品牌名称列表(逗号分隔)")
private String brandNames;
} }
\ No newline at end of file \ No newline at end of file
...@@ -73,4 +73,10 @@ public class LevelExamUpdateRequest extends AbstractRopRequest { ...@@ -73,4 +73,10 @@ public class LevelExamUpdateRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "考试等级") @ApiModelProperty(notes = "考试等级")
private List<LevelExamLevelRequest> levelExamLevels; private List<LevelExamLevelRequest> levelExamLevels;
@ApiModelProperty(notes = "品牌ID列表(逗号分隔)")
private String brandIds;
@ApiModelProperty(notes = "品牌名称列表(逗号分隔)")
private String brandNames;
} }
\ No newline at end of file \ No newline at end of file
...@@ -102,5 +102,10 @@ public class LevelExamDetailResponse implements Serializable { ...@@ -102,5 +102,10 @@ public class LevelExamDetailResponse implements Serializable {
@ApiModelProperty(notes = "生效方式 (1:立即生效, 2:定时生效)") @ApiModelProperty(notes = "生效方式 (1:立即生效, 2:定时生效)")
private Byte effectiveType; private Byte effectiveType;
@ApiModelProperty(notes = "品牌ID列表(逗号分隔)")
private String brandIds;
@ApiModelProperty(notes = "品牌名称列表(逗号分隔)")
private String brandNames;
} }
...@@ -53,6 +53,12 @@ public class LevelExamExportVO { ...@@ -53,6 +53,12 @@ public class LevelExamExportVO {
@DateTimeFormat("yyyy-MM-dd HH:mm:ss") @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
private Date createdDate; private Date createdDate;
@ExcelProperty("品牌ID")
private String brandIds;
@ExcelProperty("品牌名称")
private String brandNames;
@ExcelProperty("生效时间") @ExcelProperty("生效时间")
@DateTimeFormat("yyyy-MM-dd HH:mm:ss") @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
private Date effectiveTime; private Date effectiveTime;
......
...@@ -40,6 +40,12 @@ public class LevelExamPageListResponse implements Serializable { ...@@ -40,6 +40,12 @@ public class LevelExamPageListResponse implements Serializable {
@ApiModelProperty(notes = "职务名称") @ApiModelProperty(notes = "职务名称")
private String positionName; private String positionName;
@ApiModelProperty(notes = "品牌ID列表(逗号分隔)")
private String brandIds;
@ApiModelProperty(notes = "品牌名称列表(逗号分隔)")
private String brandNames;
/** /**
* 考试时间 * 考试时间
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!