| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package com.zhongzheng.controller.covenant;
- import com.zhongzheng.common.annotation.Log;
- import com.zhongzheng.common.core.controller.BaseController;
- import com.zhongzheng.common.core.domain.AjaxResult;
- import com.zhongzheng.common.core.page.TableDataInfo;
- import com.zhongzheng.common.enums.BusinessType;
- import com.zhongzheng.common.utils.poi.ExcelUtil;
- import com.zhongzheng.modules.bs.covenant.bo.TenantCovenantInfoAddBo;
- import com.zhongzheng.modules.bs.covenant.bo.TenantCovenantInfoEditBo;
- import com.zhongzheng.modules.bs.covenant.bo.TenantCovenantInfoQueryBo;
- import com.zhongzheng.modules.bs.covenant.service.ITenantCovenantInfoService;
- import com.zhongzheng.modules.bs.covenant.vo.TenantCovenantInfoVo;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import lombok.RequiredArgsConstructor;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.security.access.prepost.PreAuthorize;
- import org.springframework.web.bind.annotation.*;
- import java.util.Arrays;
- import java.util.List;
- /**
- * 乙方协议收件信息Controller
- *
- * @author ruoyi
- * @date 2024-05-30
- */
- @Api(value = "乙方信息控制器", tags = {"乙方信息控制器"})
- @RequiredArgsConstructor(onConstructor_ = @Autowired)
- @RestController
- @RequestMapping("/system/tenantInfo")
- public class TenantCovenantInfoController extends BaseController {
- private final ITenantCovenantInfoService iTenantCovenantInfoService;
- /**
- * 新增、修改乙方协议收件信息
- */
- @ApiOperation("新增、修改乙方协议信息")
- @PreAuthorize("@ss.hasPermi('system:tenantInfo:add')")
- @Log(title = "乙方协议收件信息", businessType = BusinessType.INSERT)
- @PostMapping("/insertOrUpdate")
- public AjaxResult<Void> add(@RequestBody TenantCovenantInfoAddBo bo) {
- return toAjax(iTenantCovenantInfoService.insertByAddBo(bo) ? 1 : 0);
- }
- }
|