This commit is contained in:
parent
c619bc1997
commit
c5550d1b3a
|
|
@ -10,9 +10,7 @@ import com.bonus.common.core.page.TableDataInfo;
|
||||||
import com.bonus.common.enums.BusinessType;
|
import com.bonus.common.enums.BusinessType;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
@ -54,9 +52,9 @@ public class DocumentController extends BaseController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('tb:document:add')")
|
@PreAuthorize("@ss.hasPermi('tb:document:add')")
|
||||||
@GetMapping("/addDocument")
|
@PostMapping("/addDocument")
|
||||||
@Log(title = "新增文件夹", businessType = BusinessType.INSERT)
|
@Log(title = "新增文件夹", businessType = BusinessType.INSERT)
|
||||||
public AjaxResult addDocument(TbDocumentFolder vo) {
|
public AjaxResult addDocument(@RequestBody TbDocumentFolder vo) {
|
||||||
return service.addDocument(vo);
|
return service.addDocument(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -67,9 +65,9 @@ public class DocumentController extends BaseController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('tb:document:update')")
|
@PreAuthorize("@ss.hasPermi('tb:document:update')")
|
||||||
@GetMapping("/updateDocument")
|
@PostMapping("/updateDocument")
|
||||||
@Log(title = "新增文件夹", businessType = BusinessType.INSERT)
|
@Log(title = "新增文件夹", businessType = BusinessType.INSERT)
|
||||||
public AjaxResult updateDocument(TbDocumentFolder vo) {
|
public AjaxResult updateDocument(@RequestBody TbDocumentFolder vo) {
|
||||||
return service.updateDocument(vo);
|
return service.updateDocument(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -80,9 +78,9 @@ public class DocumentController extends BaseController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('tb:document:del')")
|
@PreAuthorize("@ss.hasPermi('tb:document:del')")
|
||||||
@GetMapping("/delDocument")
|
@PostMapping("/delDocument")
|
||||||
@Log(title = "删除文件夹", businessType = BusinessType.DELETE)
|
@Log(title = "删除文件夹", businessType = BusinessType.DELETE)
|
||||||
public AjaxResult delDocument(TbDocumentFolder vo) {
|
public AjaxResult delDocument(@RequestBody TbDocumentFolder vo) {
|
||||||
return service.delDocument(vo);
|
return service.delDocument(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,12 +59,6 @@ public interface DocumentMapper {
|
||||||
*/
|
*/
|
||||||
void deleteAuth(TbDocumentFolder vo);
|
void deleteAuth(TbDocumentFolder vo);
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询 子节点数据
|
|
||||||
* @param vo
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// int getChilderNum(TbDocumentFolder vo);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除数据及子节点
|
* 删除数据及子节点
|
||||||
|
|
|
||||||
|
|
@ -64,10 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</if>
|
</if>
|
||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
<select id="getChildNum" resultType="java.lang.Integer">
|
|
||||||
|
|
||||||
|
|
||||||
</select>
|
|
||||||
<select id="getUserListData" resultType="com.bonus.business.domain.TbDocumentFolder">
|
<select id="getUserListData" resultType="com.bonus.business.domain.TbDocumentFolder">
|
||||||
select user_id userId,user_name useName
|
select user_id userId,user_name useName
|
||||||
from sys_user
|
from sys_user
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue