Merge remote-tracking branch 'origin/czks1.0' into czks1.0
commit
a64ca447ed
|
@ -2,6 +2,7 @@ package com.zcloud.controller.gf;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
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;
|
||||||
|
@ -82,6 +83,7 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation(isAdd = true,hasAnnex = true)
|
||||||
public Object add(
|
public Object add(
|
||||||
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
||||||
) throws Exception{
|
) throws Exception{
|
||||||
|
@ -116,11 +118,14 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
pd.put("APPLY_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
pd.put("APPLY_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("APPLY_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
pd.put("APPLY_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
}
|
}
|
||||||
|
map.put("dockData",JSON.toJSONString(pd));
|
||||||
GFblindboardService.save(pd);
|
GFblindboardService.save(pd);
|
||||||
|
|
||||||
GFblindBoardInfoService.delete(pd);
|
GFblindBoardInfoService.delete(pd);
|
||||||
if(pd.get("boardList")!=null){
|
if(pd.get("boardList")!=null){
|
||||||
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("boardList").toString());
|
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("boardList").toString());
|
||||||
|
HashMap<String, String> infoMap = new HashMap<String, String>();
|
||||||
|
int count = 1;
|
||||||
for (JSONObject json : list) {
|
for (JSONObject json : list) {
|
||||||
PageData board = new PageData();
|
PageData board = new PageData();
|
||||||
board.put("BLINDBOARDINFO_ID", this.get32UUID()); // 主键
|
board.put("BLINDBOARDINFO_ID", this.get32UUID()); // 主键
|
||||||
|
@ -130,13 +135,18 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
board.put("BOARD_SPECIFICATION", json.get("BOARD_SPECIFICATION"));
|
board.put("BOARD_SPECIFICATION", json.get("BOARD_SPECIFICATION"));
|
||||||
board.put("BOARD_NO", json.get("BOARD_NO"));
|
board.put("BOARD_NO", json.get("BOARD_NO"));
|
||||||
board.put("ISDELETE", 0);
|
board.put("ISDELETE", 0);
|
||||||
|
infoMap.put("other"+count, JSON.toJSONString(board));
|
||||||
|
count+=1;
|
||||||
GFblindBoardInfoService.save(board);
|
GFblindBoardInfoService.save(board);
|
||||||
}
|
}
|
||||||
|
map.put("infoMap",JSON.toJSONString(infoMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
GFblindBoardToMeasuresService.delete(pd);
|
GFblindBoardToMeasuresService.delete(pd);
|
||||||
if(pd.get("measuresList")!=null){
|
if(pd.get("measuresList")!=null){
|
||||||
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("measuresList").toString());
|
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("measuresList").toString());
|
||||||
|
HashMap<String, String> toMeasuresMap = new HashMap<String, String>();
|
||||||
|
int count = 1;
|
||||||
for (JSONObject json : list) {
|
for (JSONObject json : list) {
|
||||||
PageData measures = new PageData();
|
PageData measures = new PageData();
|
||||||
measures.put("BLINDBOARDTOMEASURES_ID", this.get32UUID()); // 主键
|
measures.put("BLINDBOARDTOMEASURES_ID", this.get32UUID()); // 主键
|
||||||
|
@ -145,8 +155,11 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
measures.put("STATUS", json.get("STATUS"));
|
measures.put("STATUS", json.get("STATUS"));
|
||||||
measures.put("CONFIRM_ID", pd.get("OPERATOR"));
|
measures.put("CONFIRM_ID", pd.get("OPERATOR"));
|
||||||
measures.put("CONFIRM_NAME", pd.get("ACTION_USER"));
|
measures.put("CONFIRM_NAME", pd.get("ACTION_USER"));
|
||||||
|
toMeasuresMap.put("count"+count, JSON.toJSONString(measures));
|
||||||
|
count+=1;
|
||||||
GFblindBoardToMeasuresService.save(measures);
|
GFblindBoardToMeasuresService.save(measures);
|
||||||
}
|
}
|
||||||
|
map.put("toMeasuresMap",JSON.toJSONString(toMeasuresMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pd.get("APPLY_STATUS").equals("1")) {
|
if(pd.get("APPLY_STATUS").equals("1")) {
|
||||||
|
@ -157,6 +170,7 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
log.put("CREATOR",pd.get("ACTION_USER"));
|
log.put("CREATOR",pd.get("ACTION_USER"));
|
||||||
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
||||||
GFblindBoardLogService.save(log);
|
GFblindBoardLogService.save(log);
|
||||||
|
map.put("logData", JSON.toJSONString(log));
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes = new PageData();
|
PageData mes = new PageData();
|
||||||
|
@ -201,6 +215,7 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
@RequestMapping(value="/uploadImg")
|
@RequestMapping(value="/uploadImg")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation(hasAnnex = true)
|
||||||
public Object uploadImg(
|
public Object uploadImg(
|
||||||
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
||||||
) throws Exception{
|
) throws Exception{
|
||||||
|
@ -229,6 +244,7 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
@RequestMapping(value="/deleteImg")
|
@RequestMapping(value="/deleteImg")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation
|
||||||
public Object deleteImg() throws Exception{
|
public Object deleteImg() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.zcloud.controller.gf;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.zcloud.aspect.DockAnnotation;
|
||||||
import com.zcloud.controller.base.BaseController;
|
import com.zcloud.controller.base.BaseController;
|
||||||
import com.zcloud.dto.TenCorpConst;
|
import com.zcloud.dto.TenCorpConst;
|
||||||
import com.zcloud.dto.TenCorpDto;
|
import com.zcloud.dto.TenCorpDto;
|
||||||
|
@ -84,6 +85,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@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";
|
||||||
|
@ -106,6 +108,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
pd.put("ISDELETE", "0"); //是否删除 1-是 0-否
|
pd.put("ISDELETE", "0"); //是否删除 1-是 0-否
|
||||||
GFconfinedspaceService.save(pd);
|
GFconfinedspaceService.save(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
|
|
||||||
if(pd.get("APPLY_STATUS").equals("1")) {
|
if(pd.get("APPLY_STATUS").equals("1")) {
|
||||||
PageData log = new PageData();
|
PageData log = new PageData();
|
||||||
|
@ -115,6 +118,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
log.put("CREATOR",pd.get("ACTION_USER"));
|
log.put("CREATOR",pd.get("ACTION_USER"));
|
||||||
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
||||||
GFconfinedspaceLogService.save(log);
|
GFconfinedspaceLogService.save(log);
|
||||||
|
map.put("logDockData",JSON.toJSONString(log));
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes = new PageData();
|
PageData mes = new PageData();
|
||||||
|
@ -184,12 +188,14 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/delete")
|
@RequestMapping(value="/delete")
|
||||||
@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";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
GFconfinedspaceService.delete(pd);
|
GFconfinedspaceService.delete(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo); //返回结果
|
map.put("result", errInfo); //返回结果
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -201,12 +207,14 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping(value="/cancel")
|
@PostMapping(value="/cancel")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public void cancel(@RequestBody PageData pd) throws Exception{
|
public void cancel(@RequestBody PageData pd) throws Exception{
|
||||||
Map<String,String> map = new HashMap<String,String>();
|
Map<String,String> map = new HashMap<String,String>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
System.out.println(JSONObject.toJSONString(pd));
|
System.out.println(JSONObject.toJSONString(pd));
|
||||||
PageData cpd = new PageData();
|
PageData cpd = new PageData();
|
||||||
cpd = GFconfinedspaceService.findById(pd);
|
cpd = GFconfinedspaceService.findById(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
if(cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") != null && cpd.getString("GUARDIAN_USER_SIGNER_TIME") != null){
|
if(cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") != null && cpd.getString("GUARDIAN_USER_SIGNER_TIME") != null){
|
||||||
// String WORK_START_DATE = pd.getString("WORK_START_DATE");
|
// String WORK_START_DATE = pd.getString("WORK_START_DATE");
|
||||||
// String ANALYZE_TIME = cpd.getString("ANALYZE_TIME");
|
// String ANALYZE_TIME = cpd.getString("ANALYZE_TIME");
|
||||||
|
@ -333,12 +341,14 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/edit")
|
@RequestMapping(value="/edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@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";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
GFconfinedspaceService.edit(pd);
|
GFconfinedspaceService.edit(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
if(pd.get("APPLY_STATUS").equals("1")) {
|
if(pd.get("APPLY_STATUS").equals("1")) {
|
||||||
PageData log = new PageData();
|
PageData log = new PageData();
|
||||||
log.put("CONFINEDSPACELOG_ID", this.get32UUID());
|
log.put("CONFINEDSPACELOG_ID", this.get32UUID());
|
||||||
|
@ -347,6 +357,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
log.put("CREATOR",pd.get("ACTION_USER"));
|
log.put("CREATOR",pd.get("ACTION_USER"));
|
||||||
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
||||||
GFconfinedspaceLogService.save(log);
|
GFconfinedspaceLogService.save(log);
|
||||||
|
map.put("logDockData", JSON.toJSONString(pd));
|
||||||
|
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
|
@ -398,6 +409,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/editGuardian")
|
@RequestMapping(value="/editGuardian")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation(hasAnnex = true)
|
||||||
public Object editGuardian(
|
public Object editGuardian(
|
||||||
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
||||||
) throws Exception{
|
) throws Exception{
|
||||||
|
@ -421,6 +433,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
// pd2.put("GUARDIAN_CONTENT", pd.get("CONTENT"));
|
// pd2.put("GUARDIAN_CONTENT", pd.get("CONTENT"));
|
||||||
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pd.get("APPLY_STATUS").equals("1")) {
|
if(pd.get("APPLY_STATUS").equals("1")) {
|
||||||
|
@ -431,6 +444,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
log.put("CREATOR",pd.get("ACTION_USER"));
|
log.put("CREATOR",pd.get("ACTION_USER"));
|
||||||
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
log.put("CREATTIME", DateUtil.date2Str(new Date()));
|
||||||
GFconfinedspaceLogService.save(log);
|
GFconfinedspaceLogService.save(log);
|
||||||
|
map.put("logDockData", JSON.toJSONString(log));
|
||||||
|
|
||||||
|
|
||||||
// // 发短信
|
// // 发短信
|
||||||
|
@ -473,6 +487,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/editConfess")
|
@RequestMapping(value="/editConfess")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation(hasAnnex = true)
|
||||||
public Object editConfess(
|
public Object editConfess(
|
||||||
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
||||||
) throws Exception{
|
) throws Exception{
|
||||||
|
@ -496,6 +511,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
// pd2.put("GUARDIAN_CONTENT", pd.get("CONTENT"));
|
// pd2.put("GUARDIAN_CONTENT", pd.get("CONTENT"));
|
||||||
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
}
|
}
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
|
@ -540,6 +556,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/editAcceptconfess")
|
@RequestMapping(value="/editAcceptconfess")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation
|
||||||
public Object editAcceptconfess(MultipartRequest request) throws Exception {
|
public Object editAcceptconfess(MultipartRequest request) throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -561,7 +578,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
saveImg(fileList.toArray(fileArr),signertime,pd.getString("CONFINEDSPACE_ID"),pd.getString("CORPINFO_ID"),pd.getString("ACCEPT_CONFESS_USER_ID"),pd.getString("ACCEPT_CONFESS_DEPARTMENT_ID"));
|
saveImg(fileList.toArray(fileArr),signertime,pd.getString("CONFINEDSPACE_ID"),pd.getString("CORPINFO_ID"),pd.getString("ACCEPT_CONFESS_USER_ID"),pd.getString("ACCEPT_CONFESS_DEPARTMENT_ID"));
|
||||||
fileList.clear();
|
fileList.clear();
|
||||||
}
|
}
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -594,6 +611,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/editAcceptStatus")
|
@RequestMapping(value="/editAcceptStatus")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation
|
||||||
public Object editAcceptStatus(MultipartRequest request) throws Exception{
|
public Object editAcceptStatus(MultipartRequest request) throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -637,6 +655,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("pd2", JSON.toJSONString(pd2));
|
||||||
log.put("ACTION", "验收通过");
|
log.put("ACTION", "验收通过");
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
|
@ -664,6 +683,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("pd2", JSON.toJSONString(pd2));
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes4 = new PageData();
|
PageData mes4 = new PageData();
|
||||||
|
@ -694,6 +714,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
GFconfinedspaceLogService.save(log);
|
GFconfinedspaceLogService.save(log);
|
||||||
|
map.put("log", JSON.toJSONString(log));
|
||||||
|
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
|
@ -733,6 +754,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/editStatus")
|
@RequestMapping(value="/editStatus")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@DockAnnotation
|
||||||
public Object editStatus(
|
public Object editStatus(
|
||||||
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
@RequestParam(value="FFILE",required=false) MultipartFile[] files
|
||||||
) throws Exception{
|
) throws Exception{
|
||||||
|
@ -783,6 +805,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("EDUCATE_USER", pd.get("EDUCATE_USER"));
|
pd2.put("EDUCATE_USER", pd.get("EDUCATE_USER"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
GFconfinedspaceToMeasuresService.delete(pd2);
|
GFconfinedspaceToMeasuresService.delete(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("measuresList").toString());
|
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.get("measuresList").toString());
|
||||||
for (JSONObject json : list) {
|
for (JSONObject json : list) {
|
||||||
PageData measures = new PageData();
|
PageData measures = new PageData();
|
||||||
|
@ -796,6 +819,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
measures.put("CONFIRM_ID", pd.get("OPERATOR"));
|
measures.put("CONFIRM_ID", pd.get("OPERATOR"));
|
||||||
measures.put("CONFIRM_NAME", pd.get("ACTION_USER"));
|
measures.put("CONFIRM_NAME", pd.get("ACTION_USER"));
|
||||||
GFconfinedspaceToMeasuresService.save(measures);
|
GFconfinedspaceToMeasuresService.save(measures);
|
||||||
|
map.put("measuresDockData", JSON.toJSONString(measures));
|
||||||
}
|
}
|
||||||
|
|
||||||
log.put("ACTION", "作业单位通过");
|
log.put("ACTION", "作业单位通过");
|
||||||
|
@ -854,6 +878,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
// pd2.put("GUARDIAN_CONTENT", pd.get("CONTENT"));
|
// pd2.put("GUARDIAN_CONTENT", pd.get("CONTENT"));
|
||||||
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
// pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
log.put("ACTION", "监护人确认通过");
|
log.put("ACTION", "监护人确认通过");
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
|
@ -981,6 +1006,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("APPROVE_CONTENT", pd.get("CONTENT"));
|
pd2.put("APPROVE_CONTENT", pd.get("CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
log.put("ACTION", "所在单位审批通过");
|
log.put("ACTION", "所在单位审批通过");
|
||||||
|
|
||||||
|
|
||||||
|
@ -1049,6 +1075,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
log.put("ACTION", "验收通过");
|
log.put("ACTION", "验收通过");
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
|
@ -1077,6 +1104,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("CONFIRM_CONTENT", pd.get("CONTENT"));
|
pd2.put("CONFIRM_CONTENT", pd.get("CONTENT"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes = new PageData();
|
PageData mes = new PageData();
|
||||||
|
@ -1168,6 +1196,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("APPROVE_CONTENT", pd.get("CONTENT"));
|
pd2.put("APPROVE_CONTENT", pd.get("CONTENT"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes3 = new PageData();
|
PageData mes3 = new PageData();
|
||||||
|
@ -1199,6 +1228,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
pd2.put("ACCEPT_CONTENT", pd.get("CONTENT"));
|
||||||
GFconfinedspaceService.edit(pd2);
|
GFconfinedspaceService.edit(pd2);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd2));
|
||||||
|
|
||||||
// 发短信
|
// 发短信
|
||||||
PageData mes4 = new PageData();
|
PageData mes4 = new PageData();
|
||||||
|
@ -1229,6 +1259,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
GFconfinedspaceLogService.save(log);
|
GFconfinedspaceLogService.save(log);
|
||||||
|
map.put("logDockData", JSON.toJSONString(log));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -1379,12 +1410,14 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/gas/delete")
|
@RequestMapping(value="/gas/delete")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object gasDel() throws Exception{
|
public Object gasDel() throws Exception{
|
||||||
Map<String,String> map = new HashMap<String,String>();
|
Map<String,String> map = new HashMap<String,String>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
GFconfinedspaceGasService.delete(pd);
|
GFconfinedspaceGasService.delete(pd);
|
||||||
|
map.put("dockData",JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo); //返回结果
|
map.put("result", errInfo); //返回结果
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -1395,6 +1428,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/gas/save")
|
@RequestMapping(value="/gas/save")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object gasSave() throws Exception{
|
public Object gasSave() throws Exception{
|
||||||
Map<String,String> map = new HashMap<String,String>();
|
Map<String,String> map = new HashMap<String,String>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -1405,6 +1439,7 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
GFconfinedspaceGasService.save(pd);
|
GFconfinedspaceGasService.save(pd);
|
||||||
confinedspacegaswhService.edittime(pd);
|
confinedspacegaswhService.edittime(pd);
|
||||||
|
map.put("dockData",JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo); //返回结果
|
map.put("result", errInfo); //返回结果
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package com.zcloud.controller.gf;
|
package com.zcloud.controller.gf;
|
||||||
|
|
||||||
|
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;
|
||||||
|
@ -38,6 +40,7 @@ public class AppGFConfinedSpaceGasWHController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/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";
|
||||||
|
@ -47,10 +50,12 @@ public class AppGFConfinedSpaceGasWHController extends BaseController {
|
||||||
pd2 = GFconfinedspacegaswhService.findById(pd);
|
pd2 = GFconfinedspacegaswhService.findById(pd);
|
||||||
if(pd2 != null && pd2.size()>0){
|
if(pd2 != null && pd2.size()>0){
|
||||||
GFconfinedspacegaswhService.edit(pd);
|
GFconfinedspacegaswhService.edit(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
}else{
|
}else{
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
pd.put("CONFINEDSPACEGASWH_ID", this.get32UUID()); //主键
|
pd.put("CONFINEDSPACEGASWH_ID", this.get32UUID()); //主键
|
||||||
GFconfinedspacegaswhService.save(pd);
|
GFconfinedspacegaswhService.save(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
}
|
}
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
|
@ -62,12 +67,14 @@ public class AppGFConfinedSpaceGasWHController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/delete")
|
@RequestMapping(value="/delete")
|
||||||
@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";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
GFconfinedspacegaswhService.delete(pd);
|
GFconfinedspacegaswhService.delete(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo); //返回结果
|
map.put("result", errInfo); //返回结果
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -78,6 +85,7 @@ public class AppGFConfinedSpaceGasWHController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/edit")
|
@RequestMapping(value="/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";
|
||||||
|
@ -85,6 +93,7 @@ public class AppGFConfinedSpaceGasWHController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
GFconfinedspacegaswhService.edit(pd);
|
GFconfinedspacegaswhService.edit(pd);
|
||||||
|
map.put("dockingData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -133,6 +142,7 @@ public class AppGFConfinedSpaceGasWHController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/deleteAll")
|
@RequestMapping(value="/deleteAll")
|
||||||
@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";
|
||||||
|
@ -142,6 +152,7 @@ public class AppGFConfinedSpaceGasWHController extends BaseController {
|
||||||
if(Tools.notEmpty(DATA_IDS)){
|
if(Tools.notEmpty(DATA_IDS)){
|
||||||
String ArrayDATA_IDS[] = DATA_IDS.split(",");
|
String ArrayDATA_IDS[] = DATA_IDS.split(",");
|
||||||
GFconfinedspacegaswhService.deleteAll(ArrayDATA_IDS);
|
GFconfinedspacegaswhService.deleteAll(ArrayDATA_IDS);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
errInfo = "success";
|
errInfo = "success";
|
||||||
}else{
|
}else{
|
||||||
errInfo = "error";
|
errInfo = "error";
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
package com.zcloud.controller.gf;
|
package com.zcloud.controller.gf;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
||||||
|
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;
|
||||||
|
@ -55,6 +57,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/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";
|
||||||
|
@ -68,6 +71,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
pd.put("ISDELETE", "0"); //是否删除
|
pd.put("ISDELETE", "0"); //是否删除
|
||||||
|
|
||||||
GFlimitspaceapproveService.save(pd);
|
GFlimitspaceapproveService.save(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
if(pd.get("STATUS")!= null && Tools.notEmpty(pd.get("STATUS").toString()) && pd.get("STATUS").toString().equals("2")) {//如果通过,发送短息能给现场负责人
|
if(pd.get("STATUS")!= null && Tools.notEmpty(pd.get("STATUS").toString()) && pd.get("STATUS").toString().equals("2")) {//如果通过,发送短息能给现场负责人
|
||||||
PageData corpinfo = new PageData();
|
PageData corpinfo = new PageData();
|
||||||
corpinfo.put("CORPINFO_ID", pd.getString("CORPINFO_ID"));
|
corpinfo.put("CORPINFO_ID", pd.getString("CORPINFO_ID"));
|
||||||
|
@ -145,12 +149,14 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/delete")
|
@RequestMapping(value="/delete")
|
||||||
@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";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
GFlimitspaceapproveService.delete(pd);
|
GFlimitspaceapproveService.delete(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo); //返回结果
|
map.put("result", errInfo); //返回结果
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -161,6 +167,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/edit")
|
@RequestMapping(value="/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";
|
||||||
|
@ -169,6 +176,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
pd.put("OPERATOR", pd.get("USER")); //修改人
|
pd.put("OPERATOR", pd.get("USER")); //修改人
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
GFlimitspaceapproveService.edit(pd);
|
GFlimitspaceapproveService.edit(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
pd = GFlimitspaceapproveService.findById(pd);
|
pd = GFlimitspaceapproveService.findById(pd);
|
||||||
if(pd.get("STATUS")!= null && Tools.notEmpty(pd.get("STATUS").toString()) && "2".equals(pd.get("STATUS").toString())) {
|
if(pd.get("STATUS")!= null && Tools.notEmpty(pd.get("STATUS").toString()) && "2".equals(pd.get("STATUS").toString())) {
|
||||||
PageData corpinfo = new PageData();
|
PageData corpinfo = new PageData();
|
||||||
|
@ -245,6 +253,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/editStatus")
|
@RequestMapping(value="/editStatus")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object editStatus() throws Exception{
|
public Object editStatus() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -256,6 +265,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
pd.put("OPERATOR", pd.get("USER")); //修改人
|
pd.put("OPERATOR", pd.get("USER")); //修改人
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
GFlimitspaceapproveService.editStatus(pd);
|
GFlimitspaceapproveService.editStatus(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
pd = GFlimitspaceapproveService.findById(pd);
|
pd = GFlimitspaceapproveService.findById(pd);
|
||||||
if(pd.get("STATUS")!= null && Tools.notEmpty(pd.get("STATUS").toString())) {//如果通过,发送短息能给现场负责人
|
if(pd.get("STATUS")!= null && Tools.notEmpty(pd.get("STATUS").toString())) {//如果通过,发送短息能给现场负责人
|
||||||
String status = pd.get("STATUS").toString();
|
String status = pd.get("STATUS").toString();
|
||||||
|
@ -510,6 +520,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/pigeonhole")
|
@RequestMapping(value="/pigeonhole")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@DockAnnotation
|
||||||
public Object pigeonhole() throws Exception{
|
public Object pigeonhole() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -520,6 +531,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
GFlimitspaceapproveService.editStatus(pd);
|
GFlimitspaceapproveService.editStatus(pd);
|
||||||
// 完成气体检测单
|
// 完成气体检测单
|
||||||
GFgasDetectionService.finish(pd);
|
GFgasDetectionService.finish(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -581,6 +593,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/deleteAll")
|
@RequestMapping(value="/deleteAll")
|
||||||
@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";
|
||||||
|
@ -590,6 +603,7 @@ public class AppGFLimitSpaceApproveController extends BaseController {
|
||||||
if(Tools.notEmpty(DATA_IDS)){
|
if(Tools.notEmpty(DATA_IDS)){
|
||||||
String ArrayDATA_IDS[] = DATA_IDS.split(",");
|
String ArrayDATA_IDS[] = DATA_IDS.split(",");
|
||||||
GFlimitspaceapproveService.deleteAll(ArrayDATA_IDS);
|
GFlimitspaceapproveService.deleteAll(ArrayDATA_IDS);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
errInfo = "success";
|
errInfo = "success";
|
||||||
}else{
|
}else{
|
||||||
errInfo = "error";
|
errInfo = "error";
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package com.zcloud.controller.gf;
|
package com.zcloud.controller.gf;
|
||||||
|
|
||||||
|
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 AppGFLimitSpaceController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/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";
|
||||||
|
@ -49,6 +52,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
pd.put("ISDELETE", "0"); //是否删除
|
pd.put("ISDELETE", "0"); //是否删除
|
||||||
GFlimitspaceService.save(pd);
|
GFlimitspaceService.save(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -60,6 +64,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/delete")
|
@RequestMapping(value="/delete")
|
||||||
@RequiresPermissions("limitspace:del")
|
@RequiresPermissions("limitspace: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";
|
||||||
|
@ -68,6 +73,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
pd.put("OPERATOR", Jurisdiction.getUsername()); //修改人
|
pd.put("OPERATOR", Jurisdiction.getUsername()); //修改人
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
GFlimitspaceService.delete(pd);
|
GFlimitspaceService.delete(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo); //返回结果
|
map.put("result", errInfo); //返回结果
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -78,6 +84,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/edit")
|
@RequestMapping(value="/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";
|
||||||
|
@ -86,6 +93,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
pd.put("OPERATOR", pd.get("USER")); //修改人
|
pd.put("OPERATOR", pd.get("USER")); //修改人
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
GFlimitspaceService.edit(pd);
|
GFlimitspaceService.edit(pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -124,6 +132,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
pd = GFlimitspaceService.findById(pd); //根据ID读取
|
pd = GFlimitspaceService.findById(pd); //根据ID读取
|
||||||
map.put("pd", pd);
|
map.put("pd", pd);
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -152,6 +161,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
@RequestMapping(value="/deleteAll")
|
@RequestMapping(value="/deleteAll")
|
||||||
@RequiresPermissions("limitspace:del")
|
@RequiresPermissions("limitspace: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";
|
||||||
|
@ -168,6 +178,7 @@ public class AppGFLimitSpaceController extends BaseController {
|
||||||
}else{
|
}else{
|
||||||
errInfo = "error";
|
errInfo = "error";
|
||||||
}
|
}
|
||||||
|
map.put("dockData", JSON.toJSONString(pd));
|
||||||
map.put("result", errInfo); //返回结果
|
map.put("result", errInfo); //返回结果
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue