有关逻辑删除(不做删库)

@PostMapping("/delete-sys-replenish")
    public AjaxResult deleteResidents(@RequestBody String[] residentIds) {

        if(Objects.isNull(residentIds) || residentIds.length <= 0){
            return AjaxResult.error("删除数据有误");
        }
        return toAjax(sysResidentReplenishService.deleteByIds(Arrays.asList(residentIds)));
    }



int deleteByIds(List list);





    // 删除融合补充表(逻辑删除)
    @Override
    public int deleteByIds(List list) {
        return sysResidentReplenishMapper.deleteByIds(list);
    }





  // 删除居民医防融合(逻辑删除)
    int deleteByIds(@Param("ids") List list);


 
        update sys_resident_replenish set del_flag = 1 where resident_id in
        
            #{item}
        
    

嗷嗷..........

你可能感兴趣的:(java,前端,数据库)