供应商

This commit is contained in:
2024-09-13 09:20:39 +08:00
parent bbe526746c
commit 2c266d9943
3 changed files with 14 additions and 0 deletions

View File

@@ -93,4 +93,11 @@ public class SupplierInfoRest {
List<SupplierInfoChoice> SupplierInfoChoiceList = SupplierInfoService.choiceSupplierInfo(createOrgSid);
return rb.success().setData(SupplierInfoChoiceList);
}
@ApiOperation("供应商数量")
@GetMapping("/getSupplierCountByOrgSid")
public ResultBean getSupplierCountByOrgSid(@RequestParam("orgSid") String orgSid){
ResultBean rb = ResultBean.fireFail();
Integer w = SupplierInfoService.getSupplierCountByOrgSid(orgSid);
return rb.success().setData(w);
}
}

View File

@@ -64,4 +64,6 @@ public interface SupplierInfoMapper extends BaseMapper<SupplierInfo> {
@Select("select * from supplier_info a LEFT JOIN ss_user.sys_organization as s ON a.createOrgSid = s.sid where s.orgSidPath like #{createOrgSid} and a.isDelete !='1'")
List<SupplierInfoChoice> choiceSupplierInfo(String createOrgSid);
@Select("select count(*) from supplier_info a LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid where s.orgSidPath like #{useOrgSid} and a.isDelete !='1'")
Integer getSupplierCountByOrgSid(String useOrgSid);
}

View File

@@ -189,4 +189,9 @@ public class SupplierInfoService extends MybatisBaseService<SupplierInfoMapper,
List<SupplierInfoChoice> supplierInfoChoiceList = baseMapper.choiceSupplierInfo(createOrgSid);
return supplierInfoChoiceList;
}
public Integer getSupplierCountByOrgSid(String useOrgSid) {
Integer supplierInfoChoiceList = baseMapper.getSupplierCountByOrgSid(useOrgSid);
return supplierInfoChoiceList;
}
}