parent
0a85eb9a64
commit
0b87584eb9
@ -1,86 +0,0 @@
|
||||
package com.ruoyi.programManagement.mapper;
|
||||
|
||||
import com.ruoyi.programManagement.entity.BAdministrative;
|
||||
import com.ruoyi.programManagement.entity.request.BAdministrativeTreeRequest;
|
||||
import com.ruoyi.programManagement.entity.response.BPlanEnterPriseTreeResponse;
|
||||
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 行政区划Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-11
|
||||
*/
|
||||
public interface BAdministrativeMapper {
|
||||
/**
|
||||
* 查询行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 行政区划
|
||||
*/
|
||||
public BAdministrative selectBAdministrativeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行政区划列表
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 行政区划集合
|
||||
*/
|
||||
public List<BAdministrative> selectBAdministrativeList(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 新增行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 修改行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 删除行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除行政区划
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeByIds(Long[] ids);
|
||||
|
||||
|
||||
/**
|
||||
* 行政获取县区
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<BAdministrativeTreeRequest> selectBAdministrativeTreeRequestList();
|
||||
|
||||
|
||||
/**
|
||||
* 行政获取乡镇
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<BAdministrativeTreeRequest> selectcascadingSelectDataList();
|
||||
|
||||
|
||||
List<BPlanEnterPriseTreeResponse> selectBPlanEnterPriseTreeRequestRequestList(@Param("req") BPlanEnterprisePageRequest req);
|
||||
|
||||
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
package com.ruoyi.programManagement.service;
|
||||
|
||||
import com.ruoyi.programManagement.entity.BAdministrative;
|
||||
import com.ruoyi.programManagement.entity.response.BPlanEnterPriseTreeResponse;
|
||||
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 行政区划Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-11
|
||||
*/
|
||||
public interface IBAdministrativeService {
|
||||
/**
|
||||
* 查询行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 行政区划
|
||||
*/
|
||||
public BAdministrative selectBAdministrativeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行政区划列表
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 行政区划集合
|
||||
*/
|
||||
public List<BAdministrative> selectBAdministrativeList(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 新增行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 修改行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBAdministrative(BAdministrative bAdministrative);
|
||||
|
||||
/**
|
||||
* 批量删除行政区划
|
||||
*
|
||||
* @param ids 需要删除的行政区划主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除行政区划信息
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBAdministrativeById(Long id);
|
||||
|
||||
|
||||
List<BPlanEnterPriseTreeResponse> selectBPlanEnterPriseTreeRequestRequestList(BPlanEnterprisePageRequest req);
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,101 +0,0 @@
|
||||
package com.ruoyi.programManagement.service.impl;
|
||||
|
||||
|
||||
import com.ruoyi.programManagement.entity.BAdministrative;
|
||||
import com.ruoyi.programManagement.entity.response.BPlanEnterPriseTreeResponse;
|
||||
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
|
||||
import com.ruoyi.programManagement.mapper.BAdministrativeMapper;
|
||||
import com.ruoyi.programManagement.service.IBAdministrativeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 行政区划Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-09-11
|
||||
*/
|
||||
@Service
|
||||
public class BAdministrativeServiceImpl implements IBAdministrativeService {
|
||||
@Autowired
|
||||
private BAdministrativeMapper bAdministrativeMapper;
|
||||
|
||||
/**
|
||||
* 查询行政区划
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 行政区划
|
||||
*/
|
||||
@Override
|
||||
public BAdministrative selectBAdministrativeById(Long id) {
|
||||
return bAdministrativeMapper.selectBAdministrativeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询行政区划列表
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 行政区划
|
||||
*/
|
||||
@Override
|
||||
public List<BAdministrative> selectBAdministrativeList(BAdministrative bAdministrative) {
|
||||
return bAdministrativeMapper.selectBAdministrativeList(bAdministrative);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBAdministrative(BAdministrative bAdministrative) {
|
||||
return bAdministrativeMapper.insertBAdministrative(bAdministrative);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改行政区划
|
||||
*
|
||||
* @param bAdministrative 行政区划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBAdministrative(BAdministrative bAdministrative) {
|
||||
return bAdministrativeMapper.updateBAdministrative(bAdministrative);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除行政区划
|
||||
*
|
||||
* @param ids 需要删除的行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBAdministrativeByIds(Long[] ids) {
|
||||
return bAdministrativeMapper.deleteBAdministrativeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除行政区划信息
|
||||
*
|
||||
* @param id 行政区划主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBAdministrativeById(Long id) {
|
||||
return bAdministrativeMapper.deleteBAdministrativeById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public List<BPlanEnterPriseTreeResponse> selectBPlanEnterPriseTreeRequestRequestList(BPlanEnterprisePageRequest req) {
|
||||
return bAdministrativeMapper.selectBPlanEnterPriseTreeRequestRequestList(req);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in new issue