|
|
@ -32,6 +32,9 @@ import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
|
import com.yxt.wms.biz.func.basegoodstype.BaseGoodsTypeQuery; |
|
|
|
import com.yxt.wms.biz.func.commonmethod.CommonMethod; |
|
|
|
import com.yxt.wms.biz.func.commonmethod.DataRule; |
|
|
|
import com.yxt.wms.biz.func.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.wms.feign.portal.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.wms.feign.portal.sysstafforg.SysStaffOrgFeign; |
|
|
@ -71,9 +74,13 @@ public class SupplierTypeService extends MybatisBaseService<SupplierTypeMapper, |
|
|
|
SysStaffOrgFeign sysStaffOrgFeign; |
|
|
|
@Autowired |
|
|
|
SysUserFeign sysUserFeign; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
CommonMethod commonMethod; |
|
|
|
public ResultBean<PagerVo<SupplierTypeVo>> listPageVo(PagerQuery<SupplierTypeQuery> pq) { |
|
|
|
|
|
|
|
SupplierTypeQuery query=pq.getParams(); |
|
|
|
DataRule dataRule=commonMethod.dataRule(query.getOrgPath(),query.getMenuUrl(),query.getUserSid()).getData(); |
|
|
|
pq.getParams().setOrgLevelKey(dataRule.getDataRuleId()); |
|
|
|
pq.getParams().setIndex(dataRule.getIndex()); |
|
|
|
return supplierTypeFeign.listPage(pq); |
|
|
|
} |
|
|
|
|
|
|
@ -146,4 +153,7 @@ public class SupplierTypeService extends MybatisBaseService<SupplierTypeMapper, |
|
|
|
} |
|
|
|
return supplierTypeFeign.selSupplierType(useOrgSid); |
|
|
|
} |
|
|
|
public ResultBean<Integer> checkSaveCode(String supplierTypeCode, String orgSid){ |
|
|
|
return supplierTypeFeign.checkSaveCode(supplierTypeCode,orgSid); |
|
|
|
} |
|
|
|
} |