仓储动态表单;
This commit is contained in:
+5
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user