|
@@ -5,11 +5,13 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.management.platform.entity.SpecialDateSet;
|
|
|
import com.management.platform.service.SpecialDateSetService;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -64,9 +66,12 @@ public class SpecialDateSetController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/deleteSpecial")
|
|
|
- private HttpRespMsg deleteSpecial(Integer id){
|
|
|
+ private HttpRespMsg deleteSpecial(String ids){
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
- specialDateSetService.removeById(id);
|
|
|
+ if (StringUtils.isNotEmpty(ids)){
|
|
|
+ String[] idArray = ids.split(",");
|
|
|
+ specialDateSetService.removeByIds(Arrays.asList(idArray));
|
|
|
+ }
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
|