|
@@ -47,9 +47,8 @@ public class OfferDataController extends BaseController {
|
|
|
private RedisService redisService;
|
|
private RedisService redisService;
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 国有建设用地使用权首次登记
|
|
|
|
|
|
|
+ * 国有建设用地使用权首次登记
|
|
|
* 不动产土地登记完成后入参使用
|
|
* 不动产土地登记完成后入参使用
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/third/landFirstRegistration")
|
|
@PostMapping("/third/landFirstRegistration")
|
|
@@ -68,24 +67,23 @@ public class OfferDataController extends BaseController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * 国有建设用地使用权及房屋所有权首次登记
|
|
|
|
|
- * landFirstParamVo
|
|
|
|
|
- * houseFirstParamVo
|
|
|
|
|
- * 不动产土地登记完成后入参使用
|
|
|
|
|
|
|
+ * 国有建设用地使用权及房屋所有权首次登记
|
|
|
|
|
+ * landFirstParamVo
|
|
|
|
|
+ * houseFirstParamVo
|
|
|
|
|
+ * 不动产土地登记完成后入参使用
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/third/houseFirstRegistration")
|
|
@PostMapping("/third/houseFirstRegistration")
|
|
|
public R<Map<String, Object>> houseFirstRegistration(@RequestBody HouseFirstParamVo body) {
|
|
public R<Map<String, Object>> houseFirstRegistration(@RequestBody HouseFirstParamVo body) {
|
|
|
try {
|
|
try {
|
|
|
- Map<String, Object> map = offerDataService.houseFirstRegistration(body);
|
|
|
|
|
- map.put("id", map.get("id"));
|
|
|
|
|
- return R.ok(map);
|
|
|
|
|
|
|
+ Map<String, Object> map = offerDataService.houseFirstRegistration(body);
|
|
|
|
|
+ map.put("id", map.get("id"));
|
|
|
|
|
+ return R.ok(map);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
return R.fail(e.getMessage());
|
|
return R.fail(e.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 按ID查询
|
|
* 按ID查询
|
|
|
*/
|
|
*/
|
|
@@ -145,10 +143,10 @@ public class OfferDataController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/download/{signature}/{expireTime}/{attachmentId}/{dirName}/{fileName}")
|
|
@GetMapping("/download/{signature}/{expireTime}/{attachmentId}/{dirName}/{fileName}")
|
|
|
public ResponseEntity<Resource> uploadAttachment(@PathVariable("signature") String signature,
|
|
public ResponseEntity<Resource> uploadAttachment(@PathVariable("signature") String signature,
|
|
|
- @PathVariable("expireTime") String expireTime,
|
|
|
|
|
- @PathVariable("attachmentId") String attachmentId, @PathVariable("dirName") String dirName,
|
|
|
|
|
- @PathVariable("fileName") String fileName,
|
|
|
|
|
- HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
|
|
+ @PathVariable("expireTime") String expireTime,
|
|
|
|
|
+ @PathVariable("attachmentId") String attachmentId, @PathVariable("dirName") String dirName,
|
|
|
|
|
+ @PathVariable("fileName") String fileName,
|
|
|
|
|
+ HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
if (StringUtils.isBlank(signature) || Objects.isNull(expireTime) || StringUtils.isBlank(attachmentId)
|
|
if (StringUtils.isBlank(signature) || Objects.isNull(expireTime) || StringUtils.isBlank(attachmentId)
|
|
@@ -210,9 +208,9 @@ public class OfferDataController extends BaseController {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/download")
|
|
@PostMapping("/download")
|
|
|
- public ResponseEntity<Resource> uploadAttachment(@RequestBody Map<String,String> param, HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
|
|
+ public ResponseEntity<Resource> uploadAttachment(@RequestBody Map<String, String> param, HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
try {
|
|
|
- String filePath = param.get("filePath");
|
|
|
|
|
|
|
+ String filePath = param.get("filePath");
|
|
|
if (StringUtils.isBlank(filePath)) {
|
|
if (StringUtils.isBlank(filePath)) {
|
|
|
return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();
|
|
return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();
|
|
|
}
|
|
}
|
|
@@ -237,8 +235,6 @@ public class OfferDataController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 文件下载
|
|
* 文件下载
|
|
|
*
|
|
*
|
|
@@ -248,7 +244,7 @@ public class OfferDataController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/download/file222/{id}/{uploadId}")
|
|
@GetMapping("/download/file222/{id}/{uploadId}")
|
|
|
public ResponseEntity<Resource> uploadAttachment222(@PathVariable("id") String id,
|
|
public ResponseEntity<Resource> uploadAttachment222(@PathVariable("id") String id,
|
|
|
- @PathVariable("uploadId") String uploadId, HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
|
|
+ @PathVariable("uploadId") String uploadId, HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
try {
|
|
|
String upload_id = "upliad_" + id + "_" + uploadId;
|
|
String upload_id = "upliad_" + id + "_" + uploadId;
|
|
|
String uploadFile = redisService.getCacheObject(upload_id);
|
|
String uploadFile = redisService.getCacheObject(upload_id);
|
|
@@ -287,8 +283,4 @@ public class OfferDataController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|