|
@@ -80,6 +80,7 @@ import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.wrapper.IWrapper;
|
|
|
import com.ruoyi.common.utils.wrapper.SqlField;
|
|
|
import com.ruoyi.framework.config.ThreadPoolConfig;
|
|
|
+import com.ruoyi.system.utils.UserUtil;
|
|
|
import org.apache.commons.collections4.MapUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
@@ -1106,6 +1107,10 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
ContractDocumentaryBo bo = selectData.toJavaObject(ContractDocumentaryBo.class);
|
|
|
|
|
|
IWrapper<Contract> wrapper = IWrapper.getWrapper();
|
|
|
+ //销售跟单权限过滤
|
|
|
+ List<Long> authUserIdList = UserUtil.getAuthUserIdList();
|
|
|
+ wrapper.in(Contract::getCreateUser, authUserIdList);
|
|
|
+
|
|
|
wrapper.like(Contract::getCode, bo.getCode());
|
|
|
wrapper.eq(Contract::getCreateUser, bo.getUserId());
|
|
|
wrapper.eq(Contract::getStatus, 30);
|