重点工程部分代码
parent
fbc6be15c1
commit
0679647cfd
|
@ -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;
|
||||||
|
@ -37,6 +39,7 @@ public class PersonnelManagementController extends BaseController {
|
||||||
@RequestMapping(value = "/add")
|
@RequestMapping(value = "/add")
|
||||||
@RequiresPermissions("personnelmanagement:add")
|
@RequiresPermissions("personnelmanagement: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 PersonnelManagementController extends BaseController {
|
||||||
pd.put("PASSWORD", new SimpleHash("SHA-1", pd.getString("PHONENUM"), Const.DEFAULT_PASSWORD).toString());
|
pd.put("PASSWORD", new SimpleHash("SHA-1", pd.getString("PHONENUM"), Const.DEFAULT_PASSWORD).toString());
|
||||||
personnelmanagementService.save(pd);
|
personnelmanagementService.save(pd);
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
@ -41,6 +43,7 @@ public class UnitsController extends BaseController {
|
||||||
@RequestMapping(value = "/add")
|
@RequestMapping(value = "/add")
|
||||||
@RequiresPermissions("units:add")
|
@RequiresPermissions("units:add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation(isAdd = true)
|
||||||
public Object add(@RequestParam(value = "file", required = false) MultipartFile file) throws Exception {
|
public Object add(@RequestParam(value = "file", required = false) MultipartFile file) 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 +72,7 @@ public class UnitsController extends BaseController {
|
||||||
}
|
}
|
||||||
// List<PageData> list = unitsService.listAll(pd);
|
// List<PageData> list = unitsService.listAll(pd);
|
||||||
unitsService.save(pd);
|
unitsService.save(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -82,6 +86,7 @@ public class UnitsController extends BaseController {
|
||||||
@RequestMapping(value = "/delete")
|
@RequestMapping(value = "/delete")
|
||||||
@RequiresPermissions("units:del")
|
@RequiresPermissions("units: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";
|
||||||
|
@ -108,6 +113,7 @@ public class UnitsController extends BaseController {
|
||||||
@RequestMapping(value = "/edit")
|
@RequestMapping(value = "/edit")
|
||||||
@RequiresPermissions("units:edit")
|
@RequiresPermissions("units:edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation(isAdd = true)
|
||||||
public Object edit(@RequestParam(value = "file", required = false) MultipartFile file) throws Exception {
|
public Object edit(@RequestParam(value = "file", required = false) MultipartFile file) throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -236,6 +242,7 @@ public class UnitsController extends BaseController {
|
||||||
@RequestMapping(value = "/deleteAll")
|
@RequestMapping(value = "/deleteAll")
|
||||||
@RequiresPermissions("units:del")
|
@RequiresPermissions("units: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";
|
||||||
|
|
Loading…
Reference in New Issue