!41 全局修改物理删除为逻辑删除,同时修改查询语句过滤删除标识
Merge pull request !41 from 乾坤平台/master
This commit is contained in:
@@ -2,8 +2,10 @@ package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.constants.ExceptionConstants;
|
||||
import com.jsh.erp.datasource.entities.App;
|
||||
import com.jsh.erp.datasource.entities.UserBusiness;
|
||||
import com.jsh.erp.exception.BusinessRunTimeException;
|
||||
import com.jsh.erp.service.app.AppService;
|
||||
import com.jsh.erp.service.userBusiness.UserBusinessService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
@@ -225,4 +227,26 @@ public class AppController {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
/**
|
||||
* create by: qiankunpingtai
|
||||
* website:http://39.105.146.63/symphony/
|
||||
* description:
|
||||
* 批量删除应用信息
|
||||
* create time: 2019/3/29 11:15
|
||||
* @Param: ids
|
||||
* @return java.lang.Object
|
||||
*/
|
||||
@RequestMapping(value = "/batchDeleteAppByIds")
|
||||
public Object batchDeleteAppByIds(@RequestParam("ids") String ids) throws Exception {
|
||||
|
||||
JSONObject result = ExceptionConstants.standardSuccess();
|
||||
int i= appService.batchDeleteAppByIds(ids);
|
||||
if(i<1){
|
||||
logger.error("异常码[{}],异常提示[{}],参数,ids[{}]",
|
||||
ExceptionConstants.APP_DELETE_FAILED_CODE,ExceptionConstants.APP_DELETE_FAILED_MSG,ids);
|
||||
throw new BusinessRunTimeException(ExceptionConstants.APP_DELETE_FAILED_CODE,
|
||||
ExceptionConstants.APP_DELETE_FAILED_MSG);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user