diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java index 4664ba6..a4570f1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java @@ -225,8 +225,13 @@ public class BPlanEnterpriseController extends BaseController { /** - * 批量更新 + * 批量更新状态 */ - + @ApiOperation(value = "查看计划明细") + @PostMapping("/updateIdList") + public AjaxResult updateIdList(String[] idList) { + bPlanEnterpriseService.updateIdList(idList); + return AjaxResult.success(); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java index b244275..ee73afe 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java @@ -176,7 +176,7 @@ public class BPlanEnterprise implements Serializable { * 0:草稿 1:正式 */ @ApiModelProperty(value = "0:草稿 1:正式") - private Integer status =0; + private Integer status ; /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java index 8193000..97aa085 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java @@ -98,5 +98,13 @@ public interface BPlanEnterpriseMapper extends BaseMapper { */ ListgetShouYeMxList(@Param("req") BPlanEnterprisePageRequest req); + + + /** + * 批量更新状态 + * @param idList + */ + void updateIdList(String[] idList); + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java index 9b73a12..debc8a9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java @@ -93,5 +93,12 @@ public interface BPlanEnterpriseService extends IService { */ List getShouyeList(BPlanEnterprisePageRequest req); + + /** + * 批量更新状态 + * @param idList + */ + void updateIdList(String[] idList); + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java index d99a528..376971a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java @@ -104,6 +104,11 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl + + + UPDATE b_plan_enterprise + SET status = 1 + WHERE id in + + #{item} + + + + \ No newline at end of file