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