|
|
@ -33,7 +33,9 @@ import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -63,8 +65,9 @@ public class PropertyManagementController { |
|
|
|
public Result add(@LoginUser TokenDto tokenDTO, @RequestBody IcPropertyManagementFormDTO formDTO){ |
|
|
|
//效验数据
|
|
|
|
ValidatorUtils.validateEntity(formDTO, AddGroup.class); |
|
|
|
propertyManagementService.add(formDTO); |
|
|
|
return new Result().ok("保存成功"); |
|
|
|
Map map=new HashMap<>(); |
|
|
|
map.put("propertyId",propertyManagementService.add(formDTO)); |
|
|
|
return new Result().ok(map); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|