| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.property.entity.PropertyCompanyEntity; |
| | |
| | | import org.springblade.modules.property.wrapper.PropertyCompanyWrapper; |
| | | import org.springblade.modules.property.service.IPropertyCompanyService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 物业公司 控制器 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 物业公司 自定义新增或修改 |
| | | */ |
| | | @PostMapping("/saveOrUpdate") |
| | | public R saveOrUpdate(@Valid @RequestBody PropertyCompanyEntity propertyCompany) { |
| | | return R.status(propertyCompanyService.saveOrUpdatePropertyCompany(propertyCompany)); |
| | | } |
| | | |
| | | /** |
| | | * 物业公司 删除 |
| | | */ |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "逻辑删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(propertyCompanyService.removeByIds(Func.toIntList(ids))); |
| | | List<Integer> toIntList = Func.toIntList(ids); |
| | | return R.status(propertyCompanyService.deleteByIds(toIntList)); |
| | | } |
| | | |
| | | /** |