|
|
@ -243,6 +243,9 @@ public class BusDiscountpackageHandoverService extends MybatisBaseService<BusDis |
|
|
|
IPage<BusDiscountpackageHandoverVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
List<BusDiscountpackageHandoverVo> records = pagging.getRecords(); |
|
|
|
if (null != records) { |
|
|
|
//根据当前用户sid查询用户角色
|
|
|
|
List<SysRoleVo> roleVoList = sysRoleFeign.fetchByUserSid(query.getUserSid()).getData(); |
|
|
|
roleVoList.removeAll(Collections.singleton(null)); |
|
|
|
for (BusDiscountpackageHandoverVo record : records) { |
|
|
|
if (null != record) { |
|
|
|
// 待准备 服务站人员 ture 销售专员 false
|
|
|
@ -251,9 +254,21 @@ public class BusDiscountpackageHandoverService extends MybatisBaseService<BusDis |
|
|
|
record.setShowToDoHandover(false); |
|
|
|
record.setShowHandover(true); |
|
|
|
} |
|
|
|
if ("003".equals(record.getTransferStateKey())) { |
|
|
|
record.setShowToDoHandover(true); |
|
|
|
record.setShowHandover(false); |
|
|
|
//判断当前登录用户角色是否为销售专员
|
|
|
|
if (!roleVoList.isEmpty()) { |
|
|
|
for (SysRoleVo sysRoleVo : roleVoList) { |
|
|
|
if ((sysRoleVo.getName()).contains("优惠包管理员")) { |
|
|
|
if ("003".equals(record.getTransferStateKey())) { |
|
|
|
record.setShowToDoHandover(false); |
|
|
|
record.setShowHandover(false); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if ("003".equals(record.getTransferStateKey())) { |
|
|
|
record.setShowToDoHandover(true); |
|
|
|
record.setShowHandover(false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(record.getContractNo())) { |
|
|
@ -398,7 +413,7 @@ public class BusDiscountpackageHandoverService extends MybatisBaseService<BusDis |
|
|
|
if (null != busFiles && i > 0) { |
|
|
|
this.uploadPicture(dto); |
|
|
|
} |
|
|
|
} else if ((sysRoleVo.getName()).contains("服务站长")) { |
|
|
|
} else if ((sysRoleVo.getName()).contains("优惠包管理员")) { |
|
|
|
dto.setTransferStateKey("003"); |
|
|
|
dto.setTransferStateValue("移交中"); |
|
|
|
dto.setTransferUserSid(userSid); |
|
|
|