|
|
|
@ -1,148 +1,148 @@
|
|
|
|
|
/* */ package com.archive.project.dasz.basecolumn.controller
|
|
|
|
|
package com.archive.project.dasz.basecolumn.controller
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
/* */
|
|
|
|
|
/* */ import com.archive.common.utils.poi.ExcelUtil;
|
|
|
|
|
/* */ import com.archive.framework.aspectj.lang.annotation.Log;
|
|
|
|
|
/* */ import com.archive.framework.aspectj.lang.enums.BusinessType;
|
|
|
|
|
/* */ import com.archive.framework.web.controller.BaseController;
|
|
|
|
|
/* */ import com.archive.framework.web.domain.AjaxResult;
|
|
|
|
|
/* */ import com.archive.framework.web.page.TableDataInfo;
|
|
|
|
|
/* */ import com.archive.project.dasz.basecolumn.domain.ColumnDocument;
|
|
|
|
|
/* */ import com.archive.project.dasz.basecolumn.service.IColumnDocumentService;
|
|
|
|
|
/* */ import com.archive.project.system.dict.domain.DictType;
|
|
|
|
|
/* */ import com.archive.project.system.dict.service.IDictTypeService;
|
|
|
|
|
/* */ import java.util.List;
|
|
|
|
|
/* */ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
/* */ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
/* */ import org.springframework.stereotype.Controller;
|
|
|
|
|
/* */ import org.springframework.ui.ModelMap;
|
|
|
|
|
/* */ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
/* */ import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
/* */ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
/* */ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
/* */ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @Controller
|
|
|
|
|
/* */ @RequestMapping({"/dasz/basecolumn/columndocument"})
|
|
|
|
|
/* */ public class ColumnDocumentController
|
|
|
|
|
/* */ extends BaseController
|
|
|
|
|
/* */ {
|
|
|
|
|
/* 34 */ private String prefix = "dasz/basecolumn/columndocument";
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @Autowired
|
|
|
|
|
/* */ private IColumnDocumentService columnDocumentService;
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @Autowired
|
|
|
|
|
/* */ private IDictTypeService dictTypeService;
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @RequiresPermissions({"dasz:columndocument:view"})
|
|
|
|
|
/* */ @GetMapping
|
|
|
|
|
/* */ public String document(ModelMap mmap) {
|
|
|
|
|
/* 46 */ DictType dictType = new DictType();
|
|
|
|
|
/* 47 */ dictType.setLabel("column_bind");
|
|
|
|
|
/* 48 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
|
|
|
|
|
/* 49 */ mmap.put("dictList", list);
|
|
|
|
|
/* 50 */ return this.prefix + "/document";
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @RequiresPermissions({"dasz:columndocument:list"})
|
|
|
|
|
/* */ @PostMapping({"/list"})
|
|
|
|
|
/* */ @ResponseBody
|
|
|
|
|
/* */ public TableDataInfo list(ColumnDocument columnDocument) {
|
|
|
|
|
/* 61 */ startPage();
|
|
|
|
|
/* 62 */ List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument);
|
|
|
|
|
/* 63 */ return getDataTable(list);
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @RequiresPermissions({"dasz:columndocument:export"})
|
|
|
|
|
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.EXPORT)
|
|
|
|
|
/* */ @PostMapping({"/export"})
|
|
|
|
|
/* */ @ResponseBody
|
|
|
|
|
/* */ public AjaxResult export(ColumnDocument columnDocument) {
|
|
|
|
|
/* 75 */ List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument);
|
|
|
|
|
/* 76 */ ExcelUtil<ColumnDocument> util = new ExcelUtil(ColumnDocument.class);
|
|
|
|
|
/* 77 */ return util.exportExcel(list, "document");
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @GetMapping({"/add"})
|
|
|
|
|
/* */ public String add(ModelMap mmap) {
|
|
|
|
|
/* 86 */ DictType dictType = new DictType();
|
|
|
|
|
/* 87 */ dictType.setLabel("column_bind");
|
|
|
|
|
/* 88 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
|
|
|
|
|
/* 89 */ mmap.put("dictList", list);
|
|
|
|
|
/* 90 */ return this.prefix + "/add";
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @RequiresPermissions({"dasz:columndocument:add"})
|
|
|
|
|
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.INSERT)
|
|
|
|
|
/* */ @PostMapping({"/add"})
|
|
|
|
|
/* */ @ResponseBody
|
|
|
|
|
/* */ public AjaxResult addSave(ColumnDocument columnDocument) {
|
|
|
|
|
/* 102 */ return toAjax(this.columnDocumentService.insertColumnDocument(columnDocument));
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @GetMapping({"/edit/{id}"})
|
|
|
|
|
/* */ public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
|
|
|
|
/* 111 */ ColumnDocument columnDocument = this.columnDocumentService.selectColumnDocumentById(id);
|
|
|
|
|
/* 112 */ mmap.put("columnDocument", columnDocument);
|
|
|
|
|
/* 113 */ DictType dictType = new DictType();
|
|
|
|
|
/* 114 */ dictType.setLabel("column_bind");
|
|
|
|
|
/* 115 */ List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
|
|
|
|
|
/* 116 */ mmap.put("dictList", list);
|
|
|
|
|
/* 117 */ return this.prefix + "/edit";
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @RequiresPermissions({"dasz:columndocument:edit"})
|
|
|
|
|
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.UPDATE)
|
|
|
|
|
/* */ @PostMapping({"/edit"})
|
|
|
|
|
/* */ @ResponseBody
|
|
|
|
|
/* */ public AjaxResult editSave(ColumnDocument columnDocument) {
|
|
|
|
|
/* 129 */ return toAjax(this.columnDocumentService.updateColumnDocument(columnDocument));
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */
|
|
|
|
|
/* */ @RequiresPermissions({"dasz:columndocument:remove"})
|
|
|
|
|
/* */ @Log(title = "电子文件基础字段", businessType = BusinessType.DELETE)
|
|
|
|
|
/* */ @PostMapping({"/remove"})
|
|
|
|
|
/* */ @ResponseBody
|
|
|
|
|
/* */ public AjaxResult remove(String ids) {
|
|
|
|
|
/* 141 */ return toAjax(this.columnDocumentService.deleteColumnDocumentByIds(ids));
|
|
|
|
|
/* */ }
|
|
|
|
|
/* */ }
|
|
|
|
|
|
|
|
|
|
import com.archive.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.archive.framework.aspectj.lang.annotation.Log;
|
|
|
|
|
import com.archive.framework.aspectj.lang.enums.BusinessType;
|
|
|
|
|
import com.archive.framework.web.controller.BaseController;
|
|
|
|
|
import com.archive.framework.web.domain.AjaxResult;
|
|
|
|
|
import com.archive.framework.web.page.TableDataInfo;
|
|
|
|
|
import com.archive.project.dasz.basecolumn.domain.ColumnDocument;
|
|
|
|
|
import com.archive.project.dasz.basecolumn.service.IColumnDocumentService;
|
|
|
|
|
import com.archive.project.system.dict.domain.DictType;
|
|
|
|
|
import com.archive.project.system.dict.service.IDictTypeService;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
@RequestMapping({"/dasz/basecolumn/columndocument"})
|
|
|
|
|
public class ColumnDocumentController
|
|
|
|
|
extends BaseController
|
|
|
|
|
{
|
|
|
|
|
private String prefix = "dasz/basecolumn/columndocument";
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IColumnDocumentService columnDocumentService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IDictTypeService dictTypeService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions({"dasz:columndocument:view"})
|
|
|
|
|
@GetMapping
|
|
|
|
|
public String document(ModelMap mmap) {
|
|
|
|
|
DictType dictType = new DictType();
|
|
|
|
|
dictType.setLabel("column_bind");
|
|
|
|
|
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
|
|
|
|
|
mmap.put("dictList", list);
|
|
|
|
|
return this.prefix + "/document";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions({"dasz:columndocument:list"})
|
|
|
|
|
@PostMapping({"/list"})
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public TableDataInfo list(ColumnDocument columnDocument) {
|
|
|
|
|
startPage();
|
|
|
|
|
List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions({"dasz:columndocument:export"})
|
|
|
|
|
@Log(title = "电子文件基础字段", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping({"/export"})
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult export(ColumnDocument columnDocument) {
|
|
|
|
|
List<ColumnDocument> list = this.columnDocumentService.selectColumnDocumentList(columnDocument);
|
|
|
|
|
ExcelUtil<ColumnDocument> util = new ExcelUtil(ColumnDocument.class);
|
|
|
|
|
return util.exportExcel(list, "document");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping({"/add"})
|
|
|
|
|
public String add(ModelMap mmap) {
|
|
|
|
|
DictType dictType = new DictType();
|
|
|
|
|
dictType.setLabel("column_bind");
|
|
|
|
|
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
|
|
|
|
|
mmap.put("dictList", list);
|
|
|
|
|
return this.prefix + "/add";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions({"dasz:columndocument:add"})
|
|
|
|
|
@Log(title = "电子文件基础字段", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping({"/add"})
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult addSave(ColumnDocument columnDocument) {
|
|
|
|
|
return toAjax(this.columnDocumentService.insertColumnDocument(columnDocument));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping({"/edit/{id}"})
|
|
|
|
|
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
|
|
|
|
ColumnDocument columnDocument = this.columnDocumentService.selectColumnDocumentById(id);
|
|
|
|
|
mmap.put("columnDocument", columnDocument);
|
|
|
|
|
DictType dictType = new DictType();
|
|
|
|
|
dictType.setLabel("column_bind");
|
|
|
|
|
List<DictType> list = this.dictTypeService.selectDictTypeList(dictType);
|
|
|
|
|
mmap.put("dictList", list);
|
|
|
|
|
return this.prefix + "/edit";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions({"dasz:columndocument:edit"})
|
|
|
|
|
@Log(title = "电子文件基础字段", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PostMapping({"/edit"})
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult editSave(ColumnDocument columnDocument) {
|
|
|
|
|
return toAjax(this.columnDocumentService.updateColumnDocument(columnDocument));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions({"dasz:columndocument:remove"})
|
|
|
|
|
@Log(title = "电子文件基础字段", businessType = BusinessType.DELETE)
|
|
|
|
|
@PostMapping({"/remove"})
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult remove(String ids) {
|
|
|
|
|
return toAjax(this.columnDocumentService.deleteColumnDocumentByIds(ids));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Location: C:\Users\Administrator\Desktop\extracted.zip!\extracted\BOOT-INF\classes\com\archive\project\dasz\basecolumn\controller\ColumnDocumentController.class
|
|
|
|
|