|
@@ -1,6 +1,7 @@
|
|
|
package com.sooka.sponest.mobile.comprehensive.conflictDefuseController;
|
|
|
|
|
|
import com.ruoyi.common.core.constant.HttpStatus;
|
|
|
+import com.ruoyi.common.core.domain.R;
|
|
|
import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.web.page.PageDomain;
|
|
@@ -12,6 +13,7 @@ import com.sooka.sponest.comprehensive.api.comprehensiveConflictDefuse.service.R
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@@ -42,9 +44,9 @@ public class AppConflictResolutionController extends BaseController {
|
|
|
*/
|
|
|
@GetMapping("/conflict/edit")
|
|
|
public AjaxResult getInfo(String id) {
|
|
|
- AjaxResult ajaxResult = remoteConflictResolutionService.selectConflictResolutionById(id);
|
|
|
- if("200".equals(String.valueOf(ajaxResult.get("code")))){
|
|
|
- ConflictResolution conflictResolution = (ConflictResolution) ajaxResult.get("data");
|
|
|
+ R<ConflictResolution> edit = remoteConflictResolutionService.selectConflictResolutionById(id);
|
|
|
+ if(HttpStatus.SUCCESS == edit.getCode()){
|
|
|
+ ConflictResolution conflictResolution = edit.getData();
|
|
|
conflictResolution.setMainPersonIdCodeLabel(DictUtils.getDictDataByValue("comprehensive_certificate_code", conflictResolution.getMainPersonIdCode()));
|
|
|
conflictResolution.setMainPersonGenderLabel(DictUtils.getDictDataByValue("comprehensive_sex", conflictResolution.getMainPersonGender()));
|
|
|
conflictResolution.setMainPersonNationalityLabel(DictUtils.getDictDataByValue("comprehensive_nation", conflictResolution.getMainPersonNationality()));
|
|
@@ -52,7 +54,7 @@ public class AppConflictResolutionController extends BaseController {
|
|
|
conflictResolution.setResolutionSuccessLabel(!conflictResolution.getResolutionSuccess().isEmpty()?("1".equals(conflictResolution.getResolutionSuccess())?"是":"否"):"");
|
|
|
return AjaxResult.success(conflictResolution);
|
|
|
}else{
|
|
|
- return AjaxResult.error(ajaxResult.get("code").toString(), ajaxResult.get("msg"));
|
|
|
+ return AjaxResult.error(edit.getCode(), edit.getMsg());
|
|
|
}
|
|
|
}
|
|
|
|