重点工程部分代码
parent
04b47140a9
commit
a8b7161202
|
@ -43,7 +43,7 @@ public class DockingAspect {
|
||||||
public Object beforeApi(ProceedingJoinPoint joinPoint) throws Throwable {
|
public Object beforeApi(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||||
Map<String,String> proceed = (HashMap<String,String>)joinPoint.proceed();
|
Map<String,String> proceed = (HashMap<String,String>)joinPoint.proceed();
|
||||||
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
||||||
Method method = joinPoint.getTarget().getClass().getDeclaredMethod(signature.getName(), signature.getParameterTypes());
|
Method method = joinPoint.getTarget().getClass().getDeclaredMethod(signature.getName(), signature.getParameterTypes());
|
||||||
try {
|
try {
|
||||||
HttpServletRequest request = getRequest();
|
HttpServletRequest request = getRequest();
|
||||||
//获取资源映射路径:servlet路径
|
//获取资源映射路径:servlet路径
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package com.zcloud.controller.keyProjects;
|
package com.zcloud.controller.keyProjects;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.zcloud.aspect.DockAnnotation;
|
||||||
import com.zcloud.controller.base.BaseController;
|
import com.zcloud.controller.base.BaseController;
|
||||||
import com.zcloud.entity.Page;
|
import com.zcloud.entity.Page;
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
|
@ -39,6 +41,7 @@ public class VideoManagerController extends BaseController {
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/add")
|
||||||
@RequiresPermissions("videomanager:add")
|
@RequiresPermissions("videomanager:add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation(isAdd = true)
|
||||||
public Object add() throws Exception{
|
public Object add() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -50,6 +53,7 @@ public class VideoManagerController extends BaseController {
|
||||||
pd.put("OPUSER", Jurisdiction.getUsername()); //操作人
|
pd.put("OPUSER", Jurisdiction.getUsername()); //操作人
|
||||||
pd.put("ISDELETE", "0"); //是否删除
|
pd.put("ISDELETE", "0"); //是否删除
|
||||||
videomanagerService.save(pd);
|
videomanagerService.save(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -61,6 +65,7 @@ public class VideoManagerController extends BaseController {
|
||||||
@RequestMapping(value="/delete")
|
@RequestMapping(value="/delete")
|
||||||
@RequiresPermissions("videomanager:del")
|
@RequiresPermissions("videomanager:del")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object delete() throws Exception{
|
public Object delete() throws Exception{
|
||||||
Map<String,String> map = new HashMap<String,String>();
|
Map<String,String> map = new HashMap<String,String>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -78,12 +83,14 @@ public class VideoManagerController extends BaseController {
|
||||||
@RequestMapping(value="/edit")
|
@RequestMapping(value="/edit")
|
||||||
@RequiresPermissions("videomanager:edit")
|
@RequiresPermissions("videomanager:edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation(isAdd = true)
|
||||||
public Object edit() throws Exception{
|
public Object edit() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
videomanagerService.edit(pd);
|
videomanagerService.edit(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -211,6 +218,7 @@ public class VideoManagerController extends BaseController {
|
||||||
@RequestMapping(value="/deleteAll")
|
@RequestMapping(value="/deleteAll")
|
||||||
@RequiresPermissions("videomanager:del")
|
@RequiresPermissions("videomanager:del")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object deleteAll() throws Exception{
|
public Object deleteAll() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
|
|
@ -69,6 +69,7 @@ public class VideoResourcesController extends BaseController {
|
||||||
@RequestMapping(value = "/delete")
|
@RequestMapping(value = "/delete")
|
||||||
@RequiresPermissions("videomanager:del")
|
@RequiresPermissions("videomanager:del")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object delete() throws Exception {
|
public Object delete() throws Exception {
|
||||||
Map<String, String> map = new HashMap<String, String>();
|
Map<String, String> map = new HashMap<String, String>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -115,6 +116,7 @@ public class VideoResourcesController extends BaseController {
|
||||||
@RequestMapping(value = "/edit")
|
@RequestMapping(value = "/edit")
|
||||||
@RequiresPermissions("videomanager:edit")
|
@RequiresPermissions("videomanager:edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object edit() throws Exception {
|
public Object edit() throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -177,6 +179,7 @@ public class VideoResourcesController extends BaseController {
|
||||||
@RequestMapping(value = "/deleteAll")
|
@RequestMapping(value = "/deleteAll")
|
||||||
@RequiresPermissions("videomanager:del")
|
@RequiresPermissions("videomanager:del")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object deleteAll() throws Exception {
|
public Object deleteAll() throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
|
|
@ -156,7 +156,8 @@
|
||||||
<if test="pd.UNIT_USE != null and pd.UNIT_USE != ''">
|
<if test="pd.UNIT_USE != null and pd.UNIT_USE != ''">
|
||||||
and f.UNIT_USE like CONCAT(CONCAT('%', #{pd.UNIT_USE}),'%')
|
and f.UNIT_USE like CONCAT(CONCAT('%', #{pd.UNIT_USE}),'%')
|
||||||
</if>
|
</if>
|
||||||
GROUP BY f.OPERATTIME desc
|
group by f.VIDEO_RESOURCES_ID
|
||||||
|
order BY f.OPERATTIME desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 列表(全部) -->
|
<!-- 列表(全部) -->
|
||||||
|
|
Loading…
Reference in New Issue