新增基地区级审核
This commit is contained in:
		@@ -0,0 +1,103 @@
 | 
			
		||||
package com.ruoyi.web.controller.jxjs;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
import org.springframework.security.access.prepost.PreAuthorize;
 | 
			
		||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import org.springframework.web.bind.annotation.GetMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.PostMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.PutMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.DeleteMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.PathVariable;
 | 
			
		||||
import org.springframework.web.bind.annotation.RequestBody;
 | 
			
		||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.RestController;
 | 
			
		||||
import com.ruoyi.common.annotation.Log;
 | 
			
		||||
import com.ruoyi.common.core.controller.BaseController;
 | 
			
		||||
import com.ruoyi.common.core.domain.AjaxResult;
 | 
			
		||||
import com.ruoyi.common.enums.BusinessType;
 | 
			
		||||
import com.ruoyi.jxjs.domain.TsbzJdcx;
 | 
			
		||||
import com.ruoyi.jxjs.service.ITsbzJdcxService;
 | 
			
		||||
import com.ruoyi.common.utils.poi.ExcelUtil;
 | 
			
		||||
import com.ruoyi.common.core.page.TableDataInfo;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 基地区级审核Controller
 | 
			
		||||
 * 
 | 
			
		||||
 * @author ruoyi
 | 
			
		||||
 * @date 2020-08-20
 | 
			
		||||
 */
 | 
			
		||||
@RestController
 | 
			
		||||
@RequestMapping("/jxjs/jdcx")
 | 
			
		||||
public class TsbzJdcxController extends BaseController
 | 
			
		||||
{
 | 
			
		||||
    @Autowired
 | 
			
		||||
    private ITsbzJdcxService tsbzJdcxService;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 查询基地区级审核列表
 | 
			
		||||
     */
 | 
			
		||||
    @PreAuthorize("@ss.hasPermi('jxjs:jdcx:list')")
 | 
			
		||||
    @GetMapping("/list")
 | 
			
		||||
    public TableDataInfo list(TsbzJdcx tsbzJdcx)
 | 
			
		||||
    {
 | 
			
		||||
        startPage();
 | 
			
		||||
        List<TsbzJdcx> list = tsbzJdcxService.selectTsbzJdcxList(tsbzJdcx);
 | 
			
		||||
        return getDataTable(list);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 导出基地区级审核列表
 | 
			
		||||
     */
 | 
			
		||||
    @PreAuthorize("@ss.hasPermi('jxjs:jdcx:export')")
 | 
			
		||||
    @Log(title = "基地区级审核", businessType = BusinessType.EXPORT)
 | 
			
		||||
    @GetMapping("/export")
 | 
			
		||||
    public AjaxResult export(TsbzJdcx tsbzJdcx)
 | 
			
		||||
    {
 | 
			
		||||
        List<TsbzJdcx> list = tsbzJdcxService.selectTsbzJdcxList(tsbzJdcx);
 | 
			
		||||
        ExcelUtil<TsbzJdcx> util = new ExcelUtil<TsbzJdcx>(TsbzJdcx.class);
 | 
			
		||||
        return util.exportExcel(list, "jdcx");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 获取基地区级审核详细信息
 | 
			
		||||
     */
 | 
			
		||||
    @PreAuthorize("@ss.hasPermi('jxjs:jdcx:query')")
 | 
			
		||||
    @GetMapping(value = "/{id}")
 | 
			
		||||
    public AjaxResult getInfo(@PathVariable("id") Long id)
 | 
			
		||||
    {
 | 
			
		||||
        return AjaxResult.success(tsbzJdcxService.selectTsbzJdcxById(id));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 新增基地区级审核
 | 
			
		||||
     */
 | 
			
		||||
    @PreAuthorize("@ss.hasPermi('jxjs:jdcx:add')")
 | 
			
		||||
    @Log(title = "基地区级审核", businessType = BusinessType.INSERT)
 | 
			
		||||
    @PostMapping
 | 
			
		||||
    public AjaxResult add(@RequestBody TsbzJdcx tsbzJdcx)
 | 
			
		||||
    {
 | 
			
		||||
        return toAjax(tsbzJdcxService.insertTsbzJdcx(tsbzJdcx));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 修改基地区级审核
 | 
			
		||||
     */
 | 
			
		||||
    @PreAuthorize("@ss.hasPermi('jxjs:jdcx:edit')")
 | 
			
		||||
    @Log(title = "基地区级审核", businessType = BusinessType.UPDATE)
 | 
			
		||||
    @PutMapping
 | 
			
		||||
    public AjaxResult edit(@RequestBody TsbzJdcx tsbzJdcx)
 | 
			
		||||
    {
 | 
			
		||||
        return toAjax(tsbzJdcxService.updateTsbzJdcx(tsbzJdcx));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 删除基地区级审核
 | 
			
		||||
     */
 | 
			
		||||
    @PreAuthorize("@ss.hasPermi('jxjs:jdcx:remove')")
 | 
			
		||||
    @Log(title = "基地区级审核", businessType = BusinessType.DELETE)
 | 
			
		||||
	@DeleteMapping("/{ids}")
 | 
			
		||||
    public AjaxResult remove(@PathVariable Long[] ids)
 | 
			
		||||
    {
 | 
			
		||||
        return toAjax(tsbzJdcxService.deleteTsbzJdcxByIds(ids));
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user