parent
242a1e2dc9
commit
d777a90a83
@ -1,92 +1,92 @@
|
|||||||
package com.ruoyi.programManagement.controller;
|
//package com.ruoyi.programManagement.controller;
|
||||||
|
//
|
||||||
import com.ruoyi.common.core.controller.BaseController;
|
//import com.ruoyi.common.core.controller.BaseController;
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
//import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
//import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
//import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
//import com.ruoyi.programManagement.entity.SzEntBasicInfo;
|
||||||
import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
|
//import com.ruoyi.programManagement.entity.request.SzEntBasicInfoPageRequest;
|
||||||
import com.ruoyi.programManagement.entity.response.SzEntBasicInfoPageResponse;
|
//import com.ruoyi.programManagement.entity.response.SzEntBasicInfoPageResponse;
|
||||||
import com.ruoyi.programManagement.service.ISzEntBasicInfoService;
|
//import com.ruoyi.programManagement.service.ISzEntBasicInfoService;
|
||||||
import io.swagger.annotations.Api;
|
//import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
//import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
//import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.web.bind.annotation.*;
|
//import org.springframework.web.bind.annotation.*;
|
||||||
|
//
|
||||||
import javax.servlet.http.HttpServletResponse;
|
//import javax.servlet.http.HttpServletResponse;
|
||||||
import javax.validation.Valid;
|
//import javax.validation.Valid;
|
||||||
import java.util.List;
|
//import java.util.List;
|
||||||
|
//
|
||||||
/**
|
///**
|
||||||
* 企业基本信息Controller
|
// * 企业基本信息Controller
|
||||||
*
|
// *
|
||||||
* @author ruoyi
|
// * @author ruoyi
|
||||||
* @date 2023-09-09
|
// * @date 2023-09-09
|
||||||
*/
|
// */
|
||||||
@RestController
|
//@RestController
|
||||||
@RequestMapping("/pharmaceuticals/info")
|
//@RequestMapping("/pharmaceuticals/info")
|
||||||
@Api(tags = "企业基本信息")
|
//@Api(tags = "企业基本信息")
|
||||||
@Transactional(rollbackFor = Exception.class)
|
//@Transactional(rollbackFor = Exception.class)
|
||||||
public class SzEntBasicInfoController extends BaseController {
|
//public class SzEntBasicInfoController extends BaseController {
|
||||||
@Autowired
|
// @Autowired
|
||||||
private ISzEntBasicInfoService szEntBasicInfoService;
|
// private ISzEntBasicInfoService szEntBasicInfoService;
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 分页查询企业基本信息列表
|
// * 分页查询企业基本信息列表
|
||||||
*
|
// *
|
||||||
* @Parm req 请求类
|
// * @Parm req 请求类
|
||||||
*/
|
// */
|
||||||
@ApiOperation(value = "分页查询企业基本信息列表", response = SzEntBasicInfoPageResponse.class)
|
// @ApiOperation(value = "分页查询企业基本信息列表", response = SzEntBasicInfoPageResponse.class)
|
||||||
@GetMapping("/list")
|
// @GetMapping("/list")
|
||||||
public AjaxResult page(@Valid SzEntBasicInfoPageRequest req) {
|
// public AjaxResult page(@Valid SzEntBasicInfoPageRequest req) {
|
||||||
return success(szEntBasicInfoService.page(req));
|
// return success(szEntBasicInfoService.page(req));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 导出企业基本信息列表
|
// * 导出企业基本信息列表
|
||||||
*/
|
// */
|
||||||
@PostMapping("/export")
|
// @PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, SzEntBasicInfo szEntBasicInfo) {
|
// public void export(HttpServletResponse response, SzEntBasicInfo szEntBasicInfo) {
|
||||||
List<SzEntBasicInfo> list = szEntBasicInfoService.selectSzEntBasicInfoList(szEntBasicInfo);
|
// List<SzEntBasicInfo> list = szEntBasicInfoService.selectSzEntBasicInfoList(szEntBasicInfo);
|
||||||
ExcelUtil<SzEntBasicInfo> util = new ExcelUtil<SzEntBasicInfo>(SzEntBasicInfo.class);
|
// ExcelUtil<SzEntBasicInfo> util = new ExcelUtil<SzEntBasicInfo>(SzEntBasicInfo.class);
|
||||||
util.exportExcel(response, list, "企业基本信息数据");
|
// util.exportExcel(response, list, "企业基本信息数据");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 获取企业基本信息详细信息
|
// * 获取企业基本信息详细信息
|
||||||
*/
|
// */
|
||||||
|
//
|
||||||
@GetMapping(value = "/{id}")
|
// @GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") String ID) {
|
// public AjaxResult getInfo(@PathVariable("id") String ID) {
|
||||||
return success(szEntBasicInfoService.selectSzEntBasicInfoByID(ID));
|
// return success(szEntBasicInfoService.selectSzEntBasicInfoByID(ID));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 新增企业基本信息
|
// * 新增企业基本信息
|
||||||
*/
|
// */
|
||||||
|
//
|
||||||
@PostMapping
|
// @PostMapping
|
||||||
public AjaxResult add(@RequestBody SzEntBasicInfo szEntBasicInfo) {
|
// public AjaxResult add(@RequestBody SzEntBasicInfo szEntBasicInfo) {
|
||||||
return toAjax(szEntBasicInfoService.insertSzEntBasicInfo(szEntBasicInfo));
|
// return toAjax(szEntBasicInfoService.insertSzEntBasicInfo(szEntBasicInfo));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 修改企业基本信息
|
// * 修改企业基本信息
|
||||||
*/
|
// */
|
||||||
|
//
|
||||||
@PutMapping
|
// @PutMapping
|
||||||
public AjaxResult edit(@RequestBody SzEntBasicInfo szEntBasicInfo) {
|
// public AjaxResult edit(@RequestBody SzEntBasicInfo szEntBasicInfo) {
|
||||||
return toAjax(szEntBasicInfoService.updateSzEntBasicInfo(szEntBasicInfo));
|
// return toAjax(szEntBasicInfoService.updateSzEntBasicInfo(szEntBasicInfo));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 删除企业基本信息
|
// * 删除企业基本信息
|
||||||
*/
|
// */
|
||||||
|
//
|
||||||
@DeleteMapping("/{ids}")
|
// @DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable String[] IDs) {
|
// public AjaxResult remove(@PathVariable String[] IDs) {
|
||||||
return toAjax(szEntBasicInfoService.deleteSzEntBasicInfoByIDs(IDs));
|
// return toAjax(szEntBasicInfoService.deleteSzEntBasicInfoByIDs(IDs));
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
Loading…
Reference in new issue