|
@@ -6,7 +6,11 @@ import cn.fastfun.controller.dto.asset.RentInfoFigureDTO;
|
|
|
import cn.fastfun.controller.param.*;
|
|
|
import cn.fastfun.service.SysExcelFieldService;
|
|
|
import cn.fastfun.service.SysService;
|
|
|
+import cn.fastfun.service.entity.AppAssetConf;
|
|
|
+import cn.fastfun.service.impl.AppAssetConfServiceImpl;
|
|
|
import cn.fastfun.service.impl.AppAssetProfitServiceImpl;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.bridge.dto.*;
|
|
|
import com.bridge.exception.ApiRuntimeException;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -14,6 +18,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -38,6 +43,10 @@ public class ApiAssetProfitController {
|
|
|
@Resource
|
|
|
SysExcelFieldService sysExcelFieldService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ AppAssetConfServiceImpl appAssetConfService;
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value = "基础信息")
|
|
|
@RequestMapping(value = "getBaseInfo", method = RequestMethod.POST)
|
|
|
public ApiDTO getBaseInfo(@RequestBody @ApiParam(name = "设备信息对象", value = "传入json格式", required = true) AssetProfitParam param) throws Exception {
|
|
@@ -58,6 +67,15 @@ public class ApiAssetProfitController {
|
|
|
Object rentInfoDTO = appAssetService.getRentInfo(param);
|
|
|
response = (RentInfoDTO) rentInfoDTO;
|
|
|
}
|
|
|
+ // 运维信息
|
|
|
+ else if (param.getTableOrder() != null && param.getTableOrder().equals(2)) {
|
|
|
+ QueryWrapper queryWrapper = new QueryWrapper();
|
|
|
+ Page<AppAssetConf> page = new Page<>(param.getIndex(), param.getLength());
|
|
|
+// if(StringUtils.hasLength(param.getSn())){
|
|
|
+// queryWrapper.like("sn", )
|
|
|
+// }
|
|
|
+// response = (RentInfoDTO) rentInfoDTO;
|
|
|
+ }
|
|
|
|
|
|
return ApiDTO.ok("成功", response);
|
|
|
}
|