From f2be4ed3f71f85f15f2c6bb6ab1d0263c1bd5f3a Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期六, 11 十一月 2023 22:13:47 +0800 Subject: [PATCH] 1、完善一些代码 2、实现了片区管理 3、增加了apache的BeanUtils实现对象转Map --- pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java index 9e342c8..07963e0 100644 --- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java +++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java @@ -5,6 +5,8 @@ import com.dy.pipIrrGlobal.pojoBa.BaPrivilege; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + @Mapper public interface BaDistrictMapper extends BaseMapper<BaPrivilege> { /** @@ -13,6 +15,13 @@ * @return deleteCount */ int deleteByPrimaryKey(Long id); + + /** + * 閫昏緫鍒犻櫎 + * @param id primaryKey + * @return update count + */ + int deleteLogicById(Long id); /** * insert record to table @@ -36,6 +45,20 @@ BaDistrict selectByPrimaryKey(Long id); /** + * 鏌ヨ鏌愪竴琛屾斂绾у埆鐨勮鏀垮尯鍒� + * @param level 琛屾斂鍖哄垝绾у埆 + * @return 鏌愪竴琛屾斂绾у埆鐨勮鏀垮尯鍒� + */ + List<BaDistrict> selectByLevel(byte level) ; + + /** + * 鏌ヨ鏌愪竴琛屾斂绾у埆鐨勪笅绾ц鏀垮尯 + * @param supperId 涓婄骇琛屾斂鍖篒D + * @return 鏌愪竴琛屾斂绾у埆鐨勪笅绾ц鏀垮尯 + */ + List<BaDistrict> selectBySupperId(Long supperId) ; + + /** * update record selective * @param record the updated record * @return update count -- Gitblit v1.8.0