|
@@ -1,27 +1,25 @@
|
|
|
package cn.fastfun.controller.api;
|
|
|
|
|
|
-import cn.fastfun.controller.dto.DeviceAttrDTO;
|
|
|
import cn.fastfun.controller.param.*;
|
|
|
import cn.fastfun.service.AppDeviceLogService;
|
|
|
import cn.fastfun.service.AppDeviceService;
|
|
|
-import cn.fastfun.service.SysExcelFieldService;
|
|
|
-import cn.fastfun.service.entity.AppDevice;
|
|
|
import cn.fastfun.util.DateUtils;
|
|
|
import cn.fastfun.util.ObjectUtil;
|
|
|
-import cn.fastfun.util.VerifyUtil;
|
|
|
-import com.bridge.dto.*;
|
|
|
+import com.bridge.dto.ApiDTO;
|
|
|
+import com.bridge.dto.ApiPageDTO;
|
|
|
+import com.bridge.dto.QueryParam;
|
|
|
+import com.bridge.dto.QueryParamExp;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
-import org.springframework.data.domain.Page;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -41,7 +39,6 @@ public class ApiAppDeviceLogController {
|
|
|
@Resource
|
|
|
AppDeviceLogService deviceLogService;
|
|
|
|
|
|
-
|
|
|
@ApiOperation(value = "入库")
|
|
|
@RequestMapping(value = "instorage", method = RequestMethod.POST)
|
|
|
public ApiDTO inStorage(@RequestBody @ApiParam(name = "入库参数", value = "传入json格式", required = true) LibraryInFormParam param) {
|
|
@@ -70,9 +67,10 @@ public class ApiAppDeviceLogController {
|
|
|
return ApiDTO.ok();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "记录搜索列表")
|
|
|
+ @ApiOperation(value = "处置搜索列表")
|
|
|
@RequestMapping(value = "pageQuery", method = RequestMethod.POST)
|
|
|
- public ApiDTO deviceLogPageQuery(@RequestBody QueryParam param) {
|
|
|
+ public ApiDTO deviceLogPageQuery(@RequestBody HandelQueryParam param) {
|
|
|
+ param.addParam(QueryParamExp.eq("type", 3));
|
|
|
return ApiDTO.ok(deviceLogService.findByParam(param));
|
|
|
}
|
|
|
|
|
@@ -88,7 +86,7 @@ public class ApiAppDeviceLogController {
|
|
|
}
|
|
|
|
|
|
// 类型搜索
|
|
|
- if(!StringUtils.isEmpty(param.getType())){
|
|
|
+ if (!StringUtils.isEmpty(param.getType())) {
|
|
|
sql.append(StringUtils.isEmpty(param.getSn()) ? "where" : "and");
|
|
|
sql.append(" t.tf_device_type = '").append(param.getType()).append("'");
|
|
|
}
|
|
@@ -121,7 +119,7 @@ public class ApiAppDeviceLogController {
|
|
|
}
|
|
|
|
|
|
// 类型搜索
|
|
|
- if(!StringUtils.isEmpty(param.getType())){
|
|
|
+ if (!StringUtils.isEmpty(param.getType())) {
|
|
|
sql.append(StringUtils.isEmpty(param.getSn()) ? "where" : "and");
|
|
|
sql.append(" t.out_type = '").append(param.getType()).append("'");
|
|
|
}
|