仓储动态表单;

This commit is contained in:
王奎兴
2026-03-31 10:22:37 +08:00
parent d2415f2917
commit 8dda7c17b6
5 changed files with 30 additions and 16 deletions
@@ -70,9 +70,10 @@ public class SysTableConfigApi extends BaseController {
@ApiOperation(value = "系统表配置 - 根据组织 ID 和键查询", notes = "系统表配置 - 根据组织 ID 和键查询")
@GetMapping(value = "/getByOrgIdAndKey")
public Result<?> getByOrgIdAndKey(@RequestParam(name="organizationId") Long organizationId,
@RequestParam(name="warehouseId") Long warehouseId,
@RequestParam(name="key") String key) {
try {
SysTableConfig config = sysTableConfigService.getByOrgIdAndKey(organizationId, key);
SysTableConfig config = sysTableConfigService.getByOrgIdAndKey(organizationId, key, warehouseId);
if (config == null) {
return Result.error("未找到对应配置");
}
@@ -91,9 +92,10 @@ public class SysTableConfigApi extends BaseController {
*/
@ApiOperation(value = "系统表配置 - 根据组织 ID 查询所有配置", notes = "系统表配置 - 根据组织 ID 查询所有配置")
@GetMapping(value = "/listByOrgId")
public Result<?> listByOrgId(@RequestParam(name="organizationId") Long organizationId) {
public Result<?> listByOrgId(@RequestParam(name="organizationId") Long organizationId,
@RequestParam(name="warehouseId") Long warehouseId) {
try {
List<SysTableConfig> list = sysTableConfigService.listByOrgId(organizationId);
List<SysTableConfig> list = sysTableConfigService.listByOrgId(organizationId, warehouseId);
return Result.ok(list);
} catch (Exception e) {
log.error(e.getMessage(), e);