Commit cc0f4af4 authored by fangxinjiang's avatar fangxinjiang

商险权限-项目权限-fxj

parent 6dd6dcff
...@@ -54,4 +54,11 @@ public class InsuranceSearchVo extends TBusinessInsuranceVo{ ...@@ -54,4 +54,11 @@ public class InsuranceSearchVo extends TBusinessInsuranceVo{
*/ */
@Schema(description = "消息提醒人ID") @Schema(description = "消息提醒人ID")
private String alertId; private String alertId;
/**
* 项目权限NO
*/
@Schema(description = "项目权限ID")
private List<String> settleDomainIds;
} }
...@@ -7927,13 +7927,22 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -7927,13 +7927,22 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
public IPage<TBusinessInsuranceVo> getInsuranceExpireWarnVoPage(Page<TBusinessInsuranceVo> page, InsuranceSearchVo condition) { public IPage<TBusinessInsuranceVo> getInsuranceExpireWarnVoPage(Page<TBusinessInsuranceVo> page, InsuranceSearchVo condition) {
YifuUser user = SecurityUtils.getUser(); YifuUser user = SecurityUtils.getUser();
long roleId = 1851541100126863362L; long roleId = 1851541100126863362L;
long roleId2 = 202505261018111L;
boolean isSsc = this.haveRole(user, roleId); boolean isSsc = this.haveRole(user, roleId);
boolean isProjectManager = this.haveRole(user, roleId2);
if (isSsc) { if (isSsc) {
condition.setAlertId(null); condition.setAlertId(null);
} else { } else if (isProjectManager){
condition.setAlertId(null);
}else{
condition.setAlertId(user.getId()); 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() // List<TInsuranceAreaRes> areaRes = insuranceAreaResMapper.selectList(Wrappers.<TInsuranceAreaRes>query().lambda()
// .eq(TInsuranceAreaRes::getUserId, user.getId()).eq(TInsuranceAreaRes::getStatus, CommonConstants.ZERO_STRING)); // .eq(TInsuranceAreaRes::getUserId, user.getId()).eq(TInsuranceAreaRes::getStatus, CommonConstants.ZERO_STRING));
// if (Common.isNotNull(areaRes)) { // if (Common.isNotNull(areaRes)) {
......
...@@ -1867,6 +1867,13 @@ ...@@ -1867,6 +1867,13 @@
#{param} #{param}
</foreach> </foreach>
</if> </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> </if>
</where> </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