|
@@ -54,7 +54,9 @@ public class ApiAssetProfitController {
|
|
|
@RequestMapping(value = "getBaseInfo", method = RequestMethod.POST)
|
|
|
public ApiDTO getBaseInfo(@RequestBody @ApiParam(name = "设备信息对象", value = "传入json格式", required = true) AssetProfitParam param) throws Exception {
|
|
|
|
|
|
-
|
|
|
+ if (!StringUtils.hasLength(param.getSn())){
|
|
|
+ throw new ApiRuntimeException("请输入sn");
|
|
|
+ }
|
|
|
BaseInfoDTO baseInfo = appAssetService.getBaseInfo(param);
|
|
|
return ApiDTO.ok("成功", baseInfo);
|
|
|
}
|
|
@@ -63,6 +65,9 @@ public class ApiAssetProfitController {
|
|
|
@RequestMapping(value = "getProfitInfo", method = RequestMethod.POST)
|
|
|
public ApiDTO getAssetProfitInfo(@RequestBody @ApiParam(name = "设备信息对象", value = "传入json格式", required = true) AssetProfitParam param) throws Exception {
|
|
|
|
|
|
+ if (!StringUtils.hasLength(param.getSn())){
|
|
|
+ throw new ApiRuntimeException("请输入sn");
|
|
|
+ }
|
|
|
// 租赁信息
|
|
|
Object response = null;
|
|
|
if (param.getTableOrder() != null && param.getTableOrder().equals(1)) {
|
|
@@ -333,6 +338,9 @@ public class ApiAssetProfitController {
|
|
|
@RequestMapping(value = "getProfitInfoFigure", method = RequestMethod.POST)
|
|
|
public ApiDTO getAssetProfitInfoFigure(@RequestBody @ApiParam(name = "设备信息对象", value = "传入json格式", required = true) AssetProfitParam param) throws Exception {
|
|
|
|
|
|
+ if (!StringUtils.hasLength(param.getSn())){
|
|
|
+ throw new ApiRuntimeException("请输入sn");
|
|
|
+ }
|
|
|
// 租赁信息
|
|
|
Object response = null;
|
|
|
if (param.getTableOrder() != null && param.getTableOrder().equals(1)) {
|
|
@@ -350,6 +358,9 @@ public class ApiAssetProfitController {
|
|
|
@RequestMapping(value = "export", method = RequestMethod.POST)
|
|
|
public void export(@RequestBody @ApiParam(name = "设备信息对象", value = "传入json格式", required = true) AssetProfitParam param, HttpServletResponse response) {
|
|
|
|
|
|
+ if (!StringUtils.hasLength(param.getSn())){
|
|
|
+ throw new ApiRuntimeException("请输入sn");
|
|
|
+ }
|
|
|
try {
|
|
|
// 租赁信息
|
|
|
|