...
|
...
|
@@ -13,6 +13,7 @@ import com.agent.vo.agent.SecurityDeclarationVo; |
|
|
import com.agent.xml.XmlBuildTask;
|
|
|
import com.framework.core.Servlets;
|
|
|
import com.framework.mail.MailSenderService;
|
|
|
import com.framework.shiro.SessionUtil;
|
|
|
import com.framework.util.MessageKit;
|
|
|
import com.framework.util.MessageType;
|
|
|
import com.framework.util.StringUtils;
|
...
|
...
|
@@ -23,6 +24,7 @@ import org.apache.shiro.SecurityUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import tools.Tools;
|
...
|
...
|
@@ -512,6 +514,28 @@ public class SecurityDeclarationController { |
|
|
return "declaration/edit";
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/doDelete")
|
|
|
@ResponseBody
|
|
|
public ResponseModel doDelete(Long id){
|
|
|
|
|
|
ResponseModel model = new ResponseModel();
|
|
|
|
|
|
UserEntity user = SessionUtil.getUser();
|
|
|
if (user.getId() == 1){
|
|
|
|
|
|
if (securityDeclarationService.sdDelete(id)>0){
|
|
|
|
|
|
model.setStatus(200);
|
|
|
}
|
|
|
|
|
|
return model;
|
|
|
}else {
|
|
|
model.setStatus(201);
|
|
|
return model;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 安检申报修改
|
|
|
* @param request
|
...
|
...
|
|