|
|
@ -4,6 +4,7 @@ package com.ruoyi.programManagement.controller;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.bean.BeanUtils;
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import com.ruoyi.programManagement.entity.BPlanEnterprise;
|
|
|
|
import com.ruoyi.programManagement.entity.BPlanEnterprise;
|
|
|
|
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
|
|
|
|
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
|
|
|
@ -27,6 +28,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.validation.Valid;
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -125,14 +127,14 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 修改数据
|
|
|
|
* 修改数据
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param bPlanEnterprise 实体对象
|
|
|
|
* @param req 实体对象
|
|
|
|
* @return 修改结果
|
|
|
|
* @return 修改结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PutMapping
|
|
|
|
@PutMapping
|
|
|
|
@ApiOperation(value = "修改计划企业表")
|
|
|
|
@ApiOperation(value = "修改计划企业表")
|
|
|
|
public AjaxResult update(@RequestBody BPlanEnterpriseRequest bPlanEnterprise) {
|
|
|
|
public AjaxResult update(@RequestBody BPlanEnterpriseRequest req) {
|
|
|
|
|
|
|
|
bPlanEnterpriseService.updatePlan(req);
|
|
|
|
return success(bPlanEnterpriseService.updateById(bPlanEnterprise));
|
|
|
|
return success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -197,9 +199,10 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 批量更新状态
|
|
|
|
* 批量更新状态
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation(value = "查看计划明细")
|
|
|
|
@ApiOperation(value = "批量更新状态")
|
|
|
|
@PostMapping("/updateIdList")
|
|
|
|
@GetMapping("/updateIdList")
|
|
|
|
public AjaxResult updateIdList(String[] idList) {
|
|
|
|
public AjaxResult updateIdList(@RequestParam("idListStr") String idListStr) {
|
|
|
|
|
|
|
|
List<String> idList = Arrays.asList(idListStr.split(","));
|
|
|
|
bPlanEnterpriseService.updateIdList(idList);
|
|
|
|
bPlanEnterpriseService.updateIdList(idList);
|
|
|
|
return AjaxResult.success();
|
|
|
|
return AjaxResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|