|
|
|
@ -8,6 +8,8 @@ import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.jjh.declaration.entity.BmsEnterpriseDirectory;
|
|
|
|
|
import com.ruoyi.jjh.declaration.service.IBmsEnterpriseDirectoryService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
@ -27,6 +29,7 @@ import java.util.List;
|
|
|
|
|
* @author farben
|
|
|
|
|
* @date 2023-08-31
|
|
|
|
|
*/
|
|
|
|
|
@Api(tags = "企业名录")
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/system/enterpriseDirectory")
|
|
|
|
|
public class BmsEnterpriseDirectoryController extends BaseController {
|
|
|
|
@ -37,6 +40,7 @@ public class BmsEnterpriseDirectoryController extends BaseController {
|
|
|
|
|
* 查询企业名录列表
|
|
|
|
|
*/
|
|
|
|
|
// @RequiresPermissions("system:enterpriseDirectory:list")
|
|
|
|
|
@ApiOperation(value = "查询企业名录列表")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(BmsEnterpriseDirectory bmsEnterpriseDirectory) {
|
|
|
|
|
startPage();
|
|
|
|
@ -48,9 +52,10 @@ public class BmsEnterpriseDirectoryController extends BaseController {
|
|
|
|
|
* 导出企业名录列表
|
|
|
|
|
*/
|
|
|
|
|
// @RequiresPermissions("system:enterpriseDirectory:export")
|
|
|
|
|
@ApiOperation(value = "导出企业名录列表")
|
|
|
|
|
@Log(title = "企业名录", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, BmsEnterpriseDirectory bmsEnterpriseDirectory) {
|
|
|
|
|
public void export(HttpServletResponse response,@RequestBody BmsEnterpriseDirectory bmsEnterpriseDirectory) {
|
|
|
|
|
List<BmsEnterpriseDirectory> list = bmsEnterpriseDirectoryService.selectBmsEnterpriseDirectoryList(bmsEnterpriseDirectory);
|
|
|
|
|
ExcelUtil<BmsEnterpriseDirectory> util = new ExcelUtil<BmsEnterpriseDirectory>(BmsEnterpriseDirectory.class);
|
|
|
|
|
util.exportExcel(response, list, "企业名录数据");
|
|
|
|
|