Commit cc0f4af4 authored by fangxinjiang's avatar fangxinjiang

商险权限-项目权限-fxj

parent 6dd6dcff
......@@ -54,4 +54,11 @@ public class InsuranceSearchVo extends TBusinessInsuranceVo{
*/
@Schema(description = "消息提醒人ID")
private String alertId;
/**
* 项目权限NO
*/
@Schema(description = "项目权限ID")
private List<String> settleDomainIds;
}
......@@ -7927,13 +7927,22 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
public IPage<TBusinessInsuranceVo> getInsuranceExpireWarnVoPage(Page<TBusinessInsuranceVo> page, InsuranceSearchVo condition) {
YifuUser user = SecurityUtils.getUser();
long roleId = 1851541100126863362L;
long roleId2 = 202505261018111L;
boolean isSsc = this.haveRole(user, roleId);
boolean isProjectManager = this.haveRole(user, roleId2);
if (isSsc) {
condition.setAlertId(null);
} else {
} else if (isProjectManager){
condition.setAlertId(null);
}else{
condition.setAlertId(user.getId());
}
// R<TSettleDomainListVo> sdRes = archivesDaprUtil.getPermissionByUserId(user.getId());
if (isProjectManager){
R<TSettleDomainListVo> sdRes = archivesDaprUtil.getSettleDomainIdsByUserId(user.getId());
if (Common.isNotNull(sdRes)){
condition.setSettleDomainIds(sdRes.getData().getDeptNos());
}
}
// List<TInsuranceAreaRes> areaRes = insuranceAreaResMapper.selectList(Wrappers.<TInsuranceAreaRes>query().lambda()
// .eq(TInsuranceAreaRes::getUserId, user.getId()).eq(TInsuranceAreaRes::getStatus, CommonConstants.ZERO_STRING));
// if (Common.isNotNull(areaRes)) {
......
......@@ -1867,6 +1867,13 @@
#{param}
</foreach>
</if>
<if test="param.settleDomainIds != null and param.settleDomainIds.size() > 0">
and a.DEPT_NO in
<foreach collection="param.settleDomainIds" item="param" index="index" open="(" close=")"
separator=",">
#{param}
</foreach>
</if>
</if>
</where>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment