|
@@ -3,6 +3,7 @@ package com.siwei.apply.controller;
|
|
|
import com.siwei.apply.domain.res.GyjsydjfwscdjRes;
|
|
|
import com.siwei.apply.domain.vo.GyjsydjfwscdjUpdateVo;
|
|
|
import com.siwei.apply.domain.vo.GyjsydjfwscdjVo;
|
|
|
+import com.siwei.apply.domain.vo.OnChainVo;
|
|
|
import com.siwei.apply.service.GyjsydjfwscdjService;
|
|
|
import com.siwei.common.core.domain.R;
|
|
|
import com.siwei.common.core.web.controller.BaseController;
|
|
@@ -77,11 +78,11 @@ public class GyjsydjfwscdjController extends BaseController {
|
|
|
* 更新国有建设用地使用权及房屋所有权首次登记的上链状态
|
|
|
*/
|
|
|
@PutMapping("/onchain")
|
|
|
- public R<Void> updateHasOnchain(@RequestBody Map<String, Object> params) {
|
|
|
+ public R<Void> updateHasOnchain(@RequestBody OnChainVo onChainVo) {
|
|
|
try {
|
|
|
- String id = (String) params.get("id");
|
|
|
- Boolean hasOnchain = (Boolean) params.get("hasOnchain");
|
|
|
- gyjsydjfwscdjService.updateHasOnchain(id, hasOnchain);
|
|
|
+ for (String id : onChainVo.getIds()) {
|
|
|
+ gyjsydjfwscdjService.updateHasOnchain(id, onChainVo.getHasOnchain());
|
|
|
+ }
|
|
|
return R.ok();
|
|
|
} catch (Exception e) {
|
|
|
return R.fail(e.getMessage());
|