|
@@ -52,6 +52,40 @@ public class BusinessOpportunityController {
|
|
|
return bOservice.exportData(bo,request);
|
|
|
}
|
|
|
|
|
|
+ // 批量放入回收站
|
|
|
+ @RequestMapping("delete")
|
|
|
+ public Object delete(BusinessOpportunity bo) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ String ids1 = bo.getIds();
|
|
|
+ List<Integer> ids = new ArrayList<>();
|
|
|
+ if (!ids1.isEmpty()) {
|
|
|
+ for (String id : ids1.split(",")) {
|
|
|
+ ids.add(Integer.parseInt(id));
|
|
|
+ }
|
|
|
+ bOservice.isDelete(ids);
|
|
|
+ msg.setMsg("操作成功");
|
|
|
+ } else {
|
|
|
+ msg.setError("请选择线索");
|
|
|
+
|
|
|
+ }
|
|
|
+ return msg;
|
|
|
+ } @RequestMapping("rollBack")
|
|
|
+ public Object rollBack(BusinessOpportunity bo) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ String ids1 = bo.getIds();
|
|
|
+ List<Integer> ids = new ArrayList<>();
|
|
|
+ if (!ids1.isEmpty()) {
|
|
|
+ for (String id : ids1.split(",")) {
|
|
|
+ ids.add(Integer.parseInt(id));
|
|
|
+ }
|
|
|
+ bOservice.isRollBack(ids);
|
|
|
+ msg.setMsg("操作成功");
|
|
|
+ } else {
|
|
|
+ msg.setError("请选择线索");
|
|
|
+
|
|
|
+ }
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
@RequestMapping("insertAndUpdate")
|
|
|
public HttpRespMsg insertAndUpdate( BusinessOpportunity bo, HttpServletRequest request) {
|
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|