|
@@ -12,10 +12,8 @@ import com.management.platform.service.FinanceService;
|
|
|
import com.management.platform.util.ExcelUtil;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
import com.management.platform.util.UserNotFoundException;
|
|
|
-import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -24,6 +22,7 @@ import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.io.IOException;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -144,5 +143,16 @@ public class FinanceController {
|
|
|
|
|
|
return msg;
|
|
|
}
|
|
|
+ @RequestMapping("/batchRemove")
|
|
|
+ public HttpRespMsg batchRemove(String ids){
|
|
|
+ HttpRespMsg msg=new HttpRespMsg();
|
|
|
+ String[] split = ids.split(",");
|
|
|
+ List<String> list = Arrays.asList(split);
|
|
|
+ if(financeService.removeByIds(list)){
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
+ msg.setError("删除失败");
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|
|
|
|