|
@@ -31,6 +31,7 @@ import com.fjhx.common.service.contract.ContractTemplateService;
|
|
|
import com.fjhx.common.service.corporation.CorporationService;
|
|
|
import com.fjhx.common.service.documentary.GetDocumentaryBusinessTemplate;
|
|
|
import com.fjhx.common.utils.Assert;
|
|
|
+import com.fjhx.common.utils.AuthorityUtils;
|
|
|
import com.fjhx.customer.entity.customer.dto.CustomerDto;
|
|
|
import com.fjhx.customer.entity.customer.po.Customer;
|
|
|
import com.fjhx.customer.service.customer.CustomerService;
|
|
@@ -311,6 +312,14 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
* @param wrapper
|
|
|
*/
|
|
|
private void setContractParam(ContractSelectDto dto, IWrapper<Contract> wrapper) {
|
|
|
+ //权限过滤
|
|
|
+ SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
|
+ if (!AuthorityUtils.isHighAuthority(user)) {
|
|
|
+ //用户角色是低权限
|
|
|
+ } else if (AuthorityUtils.isHighAuthority(user) && !Objects.equals(user.getCompanyId(), 100)) {
|
|
|
+ //用户角色是高权限,且不是集团用户
|
|
|
+ }
|
|
|
+
|
|
|
wrapper.orderByDesc("t1", Contract::getCreateTime);
|
|
|
if (StringUtils.isNotEmpty(dto.getStatus())) {
|
|
|
wrapper.eq("t1", Contract::getStatus, dto.getStatus());
|