fix(模块): 删除判断问题
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ public class ProcessEsInspectPlanController extends JeroController<ProcessEsInsp
|
||||
@ApiOperation(value="企标稽查计划业务表-通过id删除", notes="企标稽查计划业务表-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<T> delete(@RequestBody IdMapBody map) {
|
||||
if (StringUtils.isNotBlank(map.getId())){
|
||||
if (StringUtils.isBlank(map.getId())){
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
processEsInspectPlanService.deleteById(map.getId());
|
||||
|
||||
+2
-2
@@ -127,7 +127,7 @@ public class ProcessEsInspectPlanOpinionController extends JeroController<Proces
|
||||
@ApiOperation(value="企标稽查计划业务_意见表-通过id删除", notes="企标稽查计划业务_意见表-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<T> delete(@RequestBody IdMapBody map) {
|
||||
if (StringUtils.isNotBlank(map.getId())){
|
||||
if (StringUtils.isBlank(map.getId())){
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
processEsInspectPlanOpinionService.deleteById(map.getId());
|
||||
@@ -144,7 +144,7 @@ public class ProcessEsInspectPlanOpinionController extends JeroController<Proces
|
||||
@ApiOperation(value="企标稽查计划业务_意见表-批量删除", notes="企标稽查计划业务_意见表-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
public Result<T> deleteBatch(@RequestBody IdsMapBody map) {
|
||||
if (StringUtils.isNotBlank(map.getIds())){
|
||||
if (StringUtils.isBlank(map.getIds())){
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
this.processEsInspectPlanOpinionService.deleteByIds(Arrays.asList(map.getIds().split(",")));
|
||||
|
||||
+2
-2
@@ -237,7 +237,7 @@ public class LawsCustomCompareInfoController {
|
||||
@PostMapping(value = "/delById")
|
||||
@RequiresPermissions("customComparison:delete")
|
||||
public Result<T> delById(@RequestBody IdMapBody map) {
|
||||
if (StringUtils.isNotBlank(map.getId())){
|
||||
if (StringUtils.isBlank(map.getId())){
|
||||
lawsCustomCompareInfoService.delById(map.getId());
|
||||
lawsCustomCompareInfoService.editCompareCreateTime(map.getId());
|
||||
}
|
||||
@@ -253,7 +253,7 @@ public class LawsCustomCompareInfoController {
|
||||
@PostMapping(value = "/delInventoryById")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<T> delInventoryById(@RequestBody IdMapBody map) {
|
||||
if (StringUtils.isNotBlank(map.getId())){
|
||||
if (StringUtils.isBlank(map.getId())){
|
||||
lawsCustomCompareInventoryService.removeById(map.getId());
|
||||
lawsCustomCompareInfoService.editCompareCreateTime(map.getId());
|
||||
}
|
||||
|
||||
+8
-7
@@ -16,6 +16,7 @@ import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitMenuEO;
|
||||
import com.jero.modules.split.service.ISarFileSplitInfoService;
|
||||
import com.jero.modules.system.vo.IdMapBody;
|
||||
import com.jero.modules.system.vo.IdsMapBody;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
@@ -190,7 +191,7 @@ public class DocumentSplitController {
|
||||
@RequiresPermissions("split:sarFileSplitInfo:delete")
|
||||
@ApiOperationSupport(order = 9)
|
||||
public Result<T> delete(@RequestBody IdMapBody map) {
|
||||
if (StringUtils.isNotBlank(map.getId())) {
|
||||
if (StringUtils.isBlank(map.getId())){
|
||||
String id = map.getId();
|
||||
documentSplitService.checkOutOperation(Collections.singletonList(id));
|
||||
sarFileSplitInfoService.deleteById(id);
|
||||
@@ -208,13 +209,13 @@ public class DocumentSplitController {
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
@RequiresPermissions("split:sarFileSplitInfo:deleteBatch")
|
||||
@ApiOperationSupport(order = 10)
|
||||
public Result<T> deleteBatch(@RequestBody Map<String, Object> map) {
|
||||
if (map.containsKey("ids")) {
|
||||
String ids = (String) map.get("ids");
|
||||
List<String> list = Arrays.asList(ids.split(","));
|
||||
documentSplitService.checkOutOperation(list);
|
||||
sarFileSplitInfoService.deleteByIds(list);
|
||||
public Result<T> deleteBatch(@RequestBody IdsMapBody map) {
|
||||
if (StringUtils.isBlank(map.getIds())) {
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
List<String> list = Arrays.asList(map.getIds().split(","));
|
||||
documentSplitService.checkOutOperation(list);
|
||||
sarFileSplitInfoService.deleteByIds(list);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.SUCCESSFULLY_DELETED_IN_BULK));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user