新增时间工具,前端显示的时间不要秒

This commit is contained in:
mark 2023-04-23 14:08:36 +08:00
parent f61df65d1f
commit 69865c37cc
1 changed files with 7 additions and 2 deletions

View File

@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/**
* ClassName: IPOReferenceDataController
@ -147,9 +148,13 @@ public class IPOReferenceDataController {
}
@PostMapping("/ipo/refdata/filter")
public List<IPOReferenceData> getUsers(@RequestBody Map<String, Object> params) {
public Result getData(@RequestBody Map<String, Object> params) {
return ipoReferenceDataService.selectByConditions(params);
List<IPOReferenceData> data = ipoReferenceDataService.selectByConditions(params);
if (Objects.isNull(data)){
return Result.error();
}
return Result.success(data);
}