1
This commit is contained in:
@@ -41,15 +41,15 @@ import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.RegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.RegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.RegionsInfoExcel;
|
||||
import org.springblade.modules.common.wrapper.RegionsInfoWrapper;
|
||||
import org.springblade.modules.common.service.IRegionsInfoService;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonRegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.CommonRegionsInfoExcel;
|
||||
import org.springblade.modules.common.wrapper.CommonRegionsInfoWrapper;
|
||||
import org.springblade.modules.common.service.ICommonRegionsInfoService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
import org.springblade.core.excel.util.ExcelUtil;
|
||||
import org.springblade.core.tool.constant.BladeConstant;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
@@ -64,9 +64,9 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("blade-regionsinfo/regionsInfo")
|
||||
@Tag(name = "地区详情表", description = "地区详情表接口")
|
||||
public class RegionsInfoController extends BladeController {
|
||||
public class CommonRegionsInfoController extends BladeController {
|
||||
|
||||
private final IRegionsInfoService regionsInfoService;
|
||||
private final ICommonRegionsInfoService regionsInfoService;
|
||||
|
||||
/**
|
||||
* 地区详情表 详情
|
||||
@@ -74,9 +74,9 @@ public class RegionsInfoController extends BladeController {
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入regionsInfo")
|
||||
public R<RegionsInfoVO> detail(RegionsInfoEntity regionsInfo) {
|
||||
RegionsInfoEntity detail = regionsInfoService.getOne(Condition.getQueryWrapper(regionsInfo));
|
||||
return R.data(RegionsInfoWrapper.build().entityVO(detail));
|
||||
public R<CommonRegionsInfoVO> detail(CommonRegionsInfoEntity regionsInfo) {
|
||||
CommonRegionsInfoEntity detail = regionsInfoService.getOne(Condition.getQueryWrapper(regionsInfo));
|
||||
return R.data(CommonRegionsInfoWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 地区详情表 分页
|
||||
@@ -84,9 +84,9 @@ public class RegionsInfoController extends BladeController {
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入regionsInfo")
|
||||
public R<IPage<RegionsInfoVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> regionsInfo, Query query) {
|
||||
IPage<RegionsInfoEntity> pages = regionsInfoService.page(Condition.getPage(query), Condition.getQueryWrapper(regionsInfo, RegionsInfoEntity.class));
|
||||
return R.data(RegionsInfoWrapper.build().pageVO(pages));
|
||||
public R<IPage<CommonRegionsInfoVO>> list(CommonRegionsInfoEntity regionsInfo, Query query) {
|
||||
IPage<CommonRegionsInfoEntity> pages = regionsInfoService.page(Condition.getPage(query), Condition.getQueryWrapper(regionsInfo).orderByDesc("id"));
|
||||
return R.data(CommonRegionsInfoWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,8 +95,8 @@ public class RegionsInfoController extends BladeController {
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入regionsInfo")
|
||||
public R<IPage<RegionsInfoVO>> page(RegionsInfoVO regionsInfo, Query query) {
|
||||
IPage<RegionsInfoVO> pages = regionsInfoService.selectRegionsInfoPage(Condition.getPage(query), regionsInfo);
|
||||
public R<IPage<CommonRegionsInfoVO>> page(CommonRegionsInfoVO regionsInfo, Query query) {
|
||||
IPage<CommonRegionsInfoVO> pages = regionsInfoService.selectRegionsInfoPage(Condition.getPage(query), regionsInfo);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class RegionsInfoController extends BladeController {
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入regionsInfo")
|
||||
public R save(@Valid @RequestBody RegionsInfoEntity regionsInfo) {
|
||||
public R save(@Valid @RequestBody CommonRegionsInfoEntity regionsInfo) {
|
||||
return R.status(regionsInfoService.save(regionsInfo));
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ public class RegionsInfoController extends BladeController {
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入regionsInfo")
|
||||
public R update(@Valid @RequestBody RegionsInfoEntity regionsInfo) {
|
||||
public R update(@Valid @RequestBody CommonRegionsInfoEntity regionsInfo) {
|
||||
return R.status(regionsInfoService.updateById(regionsInfo));
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ public class RegionsInfoController extends BladeController {
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入regionsInfo")
|
||||
public R submit(@Valid @RequestBody RegionsInfoEntity regionsInfo) {
|
||||
public R submit(@Valid @RequestBody CommonRegionsInfoEntity regionsInfo) {
|
||||
return R.status(regionsInfoService.saveOrUpdate(regionsInfo));
|
||||
}
|
||||
|
||||
@@ -149,13 +149,13 @@ public class RegionsInfoController extends BladeController {
|
||||
@ApiOperationSupport(order = 9)
|
||||
@Operation(summary = "导出数据", description = "传入regionsInfo")
|
||||
public void exportRegionsInfo(@Parameter(hidden = true) @RequestParam Map<String, Object> regionsInfo, BladeUser bladeUser, HttpServletResponse response) {
|
||||
QueryWrapper<RegionsInfoEntity> queryWrapper = Condition.getQueryWrapper(regionsInfo, RegionsInfoEntity.class);
|
||||
QueryWrapper<CommonRegionsInfoEntity> queryWrapper = Condition.getQueryWrapper(regionsInfo, CommonRegionsInfoEntity.class);
|
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(RegionsInfo::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(RegionsInfoEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<RegionsInfoExcel> list = regionsInfoService.exportRegionsInfo(queryWrapper);
|
||||
ExcelUtil.export(response, "地区详情表数据" + DateUtil.time(), "地区详情表数据表", list, RegionsInfoExcel.class);
|
||||
List<CommonRegionsInfoExcel> list = regionsInfoService.exportRegionsInfo(queryWrapper);
|
||||
ExcelUtil.export(response, "地区详情表数据" + DateUtil.time(), "地区详情表数据表", list, CommonRegionsInfoExcel.class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -41,15 +41,15 @@ import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.UserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.UserAddressVO;
|
||||
import org.springblade.modules.common.excel.UserAddressExcel;
|
||||
import org.springblade.modules.common.wrapper.UserAddressWrapper;
|
||||
import org.springblade.modules.common.service.IUserAddressService;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserAddressVO;
|
||||
import org.springblade.modules.common.excel.CommonUserAddressExcel;
|
||||
import org.springblade.modules.common.wrapper.CommonUserAddressWrapper;
|
||||
import org.springblade.modules.common.service.ICommonUserAddressService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
import org.springblade.core.excel.util.ExcelUtil;
|
||||
import org.springblade.core.tool.constant.BladeConstant;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
@@ -64,9 +64,9 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("blade-useraddress/userAddress")
|
||||
@Tag(name = "用户地址表", description = "用户地址表接口")
|
||||
public class UserAddressController extends BladeController {
|
||||
public class CommonUserAddressController extends BladeController {
|
||||
|
||||
private final IUserAddressService userAddressService;
|
||||
private final ICommonUserAddressService userAddressService;
|
||||
|
||||
/**
|
||||
* 用户地址表 详情
|
||||
@@ -74,9 +74,9 @@ public class UserAddressController extends BladeController {
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入userAddress")
|
||||
public R<UserAddressVO> detail(UserAddressEntity userAddress) {
|
||||
UserAddressEntity detail = userAddressService.getOne(Condition.getQueryWrapper(userAddress));
|
||||
return R.data(UserAddressWrapper.build().entityVO(detail));
|
||||
public R<CommonUserAddressVO> detail(CommonUserAddressEntity userAddress) {
|
||||
CommonUserAddressEntity detail = userAddressService.getOne(Condition.getQueryWrapper(userAddress));
|
||||
return R.data(CommonUserAddressWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户地址表 分页
|
||||
@@ -84,9 +84,9 @@ public class UserAddressController extends BladeController {
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入userAddress")
|
||||
public R<IPage<UserAddressVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> userAddress, Query query) {
|
||||
IPage<UserAddressEntity> pages = userAddressService.page(Condition.getPage(query), Condition.getQueryWrapper(userAddress, UserAddressEntity.class));
|
||||
return R.data(UserAddressWrapper.build().pageVO(pages));
|
||||
public R<IPage<CommonUserAddressVO>> list(CommonUserAddressEntity userAddress, Query query) {
|
||||
IPage<CommonUserAddressEntity> pages = userAddressService.page(Condition.getPage(query), Condition.getQueryWrapper(userAddress).orderByDesc("id"));
|
||||
return R.data(CommonUserAddressWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,8 +95,8 @@ public class UserAddressController extends BladeController {
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入userAddress")
|
||||
public R<IPage<UserAddressVO>> page(UserAddressVO userAddress, Query query) {
|
||||
IPage<UserAddressVO> pages = userAddressService.selectUserAddressPage(Condition.getPage(query), userAddress);
|
||||
public R<IPage<CommonUserAddressVO>> page(CommonUserAddressVO userAddress, Query query) {
|
||||
IPage<CommonUserAddressVO> pages = userAddressService.selectUserAddressPage(Condition.getPage(query), userAddress);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class UserAddressController extends BladeController {
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入userAddress")
|
||||
public R save(@Valid @RequestBody UserAddressEntity userAddress) {
|
||||
public R save(@Valid @RequestBody CommonUserAddressEntity userAddress) {
|
||||
return R.status(userAddressService.save(userAddress));
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ public class UserAddressController extends BladeController {
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入userAddress")
|
||||
public R update(@Valid @RequestBody UserAddressEntity userAddress) {
|
||||
public R update(@Valid @RequestBody CommonUserAddressEntity userAddress) {
|
||||
return R.status(userAddressService.updateById(userAddress));
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ public class UserAddressController extends BladeController {
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入userAddress")
|
||||
public R submit(@Valid @RequestBody UserAddressEntity userAddress) {
|
||||
public R submit(@Valid @RequestBody CommonUserAddressEntity userAddress) {
|
||||
return R.status(userAddressService.saveOrUpdate(userAddress));
|
||||
}
|
||||
|
||||
@@ -149,13 +149,13 @@ public class UserAddressController extends BladeController {
|
||||
@ApiOperationSupport(order = 9)
|
||||
@Operation(summary = "导出数据", description = "传入userAddress")
|
||||
public void exportUserAddress(@Parameter(hidden = true) @RequestParam Map<String, Object> userAddress, BladeUser bladeUser, HttpServletResponse response) {
|
||||
QueryWrapper<UserAddressEntity> queryWrapper = Condition.getQueryWrapper(userAddress, UserAddressEntity.class);
|
||||
QueryWrapper<CommonUserAddressEntity> queryWrapper = Condition.getQueryWrapper(userAddress, CommonUserAddressEntity.class);
|
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(UserAddress::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(UserAddressEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<UserAddressExcel> list = userAddressService.exportUserAddress(queryWrapper);
|
||||
ExcelUtil.export(response, "用户地址表数据" + DateUtil.time(), "用户地址表数据表", list, UserAddressExcel.class);
|
||||
List<CommonUserAddressExcel> list = userAddressService.exportUserAddress(queryWrapper);
|
||||
ExcelUtil.export(response, "用户地址表数据" + DateUtil.time(), "用户地址表数据表", list, CommonUserAddressExcel.class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -28,7 +28,6 @@ package org.springblade.modules.common.excel;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import cn.idev.excel.annotation.ExcelProperty;
|
||||
import cn.idev.excel.annotation.write.style.ColumnWidth;
|
||||
import cn.idev.excel.annotation.write.style.ContentRowHeight;
|
||||
@@ -47,7 +46,7 @@ import java.io.Serial;
|
||||
@ColumnWidth(25)
|
||||
@HeadRowHeight(20)
|
||||
@ContentRowHeight(18)
|
||||
public class RegionsInfoExcel implements Serializable {
|
||||
public class CommonRegionsInfoExcel implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -28,7 +28,6 @@ package org.springblade.modules.common.excel;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import cn.idev.excel.annotation.ExcelProperty;
|
||||
import cn.idev.excel.annotation.write.style.ColumnWidth;
|
||||
import cn.idev.excel.annotation.write.style.ContentRowHeight;
|
||||
@@ -47,7 +46,7 @@ import java.io.Serial;
|
||||
@ColumnWidth(25)
|
||||
@HeadRowHeight(20)
|
||||
@ContentRowHeight(18)
|
||||
public class UserAddressExcel implements Serializable {
|
||||
public class CommonUserAddressExcel implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -25,9 +25,9 @@
|
||||
*/
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.RegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.RegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.RegionsInfoExcel;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonRegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.CommonRegionsInfoExcel;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -40,7 +40,7 @@ import java.util.List;
|
||||
* @author BladeX
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public interface RegionsInfoMapper extends BaseMapper<RegionsInfoEntity> {
|
||||
public interface CommonRegionsInfoMapper extends BaseMapper<CommonRegionsInfoEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
@@ -49,7 +49,7 @@ public interface RegionsInfoMapper extends BaseMapper<RegionsInfoEntity> {
|
||||
* @param regionsInfo 查询参数
|
||||
* @return List<RegionsInfoVO>
|
||||
*/
|
||||
List<RegionsInfoVO> selectRegionsInfoPage(IPage page, RegionsInfoVO regionsInfo);
|
||||
List<CommonRegionsInfoVO> selectRegionsInfoPage(IPage page, CommonRegionsInfoVO regionsInfo);
|
||||
|
||||
|
||||
/**
|
||||
@@ -58,6 +58,6 @@ public interface RegionsInfoMapper extends BaseMapper<RegionsInfoEntity> {
|
||||
* @param queryWrapper 查询条件
|
||||
* @return List<RegionsInfoExcel>
|
||||
*/
|
||||
List<RegionsInfoExcel> exportRegionsInfo(@Param("ew") Wrapper<RegionsInfoEntity> queryWrapper);
|
||||
List<CommonRegionsInfoExcel> exportRegionsInfo(@Param("ew") Wrapper<CommonRegionsInfoEntity> queryWrapper);
|
||||
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.RegionsInfoMapper">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonRegionsInfoMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="regionsInfoResultMap" type="org.springblade.modules.common.pojo.entity.RegionsInfoEntity">
|
||||
<resultMap id="regionsInfoResultMap" type="org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity">
|
||||
<result column="pid" property="pid"/>
|
||||
<result column="id" property="id"/>
|
||||
<result column="name" property="name"/>
|
||||
@@ -26,7 +26,7 @@
|
||||
</select>
|
||||
|
||||
|
||||
<select id="exportRegionsInfo" resultType="org.springblade.modules.common.excel.RegionsInfoExcel">
|
||||
<select id="exportRegionsInfo" resultType="org.springblade.modules.common.excel.CommonRegionsInfoExcel">
|
||||
SELECT * FROM regions_info ${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
*/
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.UserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.UserAddressVO;
|
||||
import org.springblade.modules.common.excel.UserAddressExcel;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserAddressVO;
|
||||
import org.springblade.modules.common.excel.CommonUserAddressExcel;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -40,7 +40,7 @@ import java.util.List;
|
||||
* @author BladeX
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public interface UserAddressMapper extends BaseMapper<UserAddressEntity> {
|
||||
public interface CommonUserAddressMapper extends BaseMapper<CommonUserAddressEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
@@ -49,7 +49,7 @@ public interface UserAddressMapper extends BaseMapper<UserAddressEntity> {
|
||||
* @param userAddress 查询参数
|
||||
* @return List<UserAddressVO>
|
||||
*/
|
||||
List<UserAddressVO> selectUserAddressPage(IPage page, UserAddressVO userAddress);
|
||||
List<CommonUserAddressVO> selectUserAddressPage(IPage page, CommonUserAddressVO userAddress);
|
||||
|
||||
|
||||
/**
|
||||
@@ -58,6 +58,6 @@ public interface UserAddressMapper extends BaseMapper<UserAddressEntity> {
|
||||
* @param queryWrapper 查询条件
|
||||
* @return List<UserAddressExcel>
|
||||
*/
|
||||
List<UserAddressExcel> exportUserAddress(@Param("ew") Wrapper<UserAddressEntity> queryWrapper);
|
||||
List<CommonUserAddressExcel> exportUserAddress(@Param("ew") Wrapper<CommonUserAddressEntity> queryWrapper);
|
||||
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.UserAddressMapper">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonUserAddressMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="userAddressResultMap" type="org.springblade.modules.common.pojo.entity.UserAddressEntity">
|
||||
<resultMap id="userAddressResultMap" type="org.springblade.modules.common.pojo.entity.CommonUserAddressEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="regions_info_id" property="regionsInfoId"/>
|
||||
@@ -30,7 +30,7 @@
|
||||
</select>
|
||||
|
||||
|
||||
<select id="exportUserAddress" resultType="org.springblade.modules.common.excel.UserAddressExcel">
|
||||
<select id="exportUserAddress" resultType="org.springblade.modules.common.excel.CommonUserAddressExcel">
|
||||
SELECT * FROM user_address ${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.RegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
@@ -38,7 +38,7 @@ import java.io.Serial;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RegionsInfoDTO extends RegionsInfoEntity {
|
||||
public class CommonRegionsInfoDTO extends CommonRegionsInfoEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.UserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
@@ -38,7 +38,7 @@ import java.io.Serial;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class UserAddressDTO extends UserAddressEntity {
|
||||
public class CommonUserAddressDTO extends CommonUserAddressEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -42,7 +42,7 @@ import java.io.Serial;
|
||||
@TableName("common_regions_info")
|
||||
@Schema(description = "RegionsInfo对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RegionsInfoEntity extends BaseEntity {
|
||||
public class CommonRegionsInfoEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -42,7 +42,7 @@ import java.io.Serial;
|
||||
@TableName("user_address")
|
||||
@Schema(description = "UserAddress对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class UserAddressEntity extends BaseEntity {
|
||||
public class CommonUserAddressEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.RegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
@@ -38,7 +38,7 @@ import java.io.Serial;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RegionsInfoVO extends RegionsInfoEntity {
|
||||
public class CommonRegionsInfoVO extends CommonRegionsInfoEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.UserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
@@ -38,7 +38,7 @@ import java.io.Serial;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class UserAddressVO extends UserAddressEntity {
|
||||
public class CommonUserAddressVO extends CommonUserAddressEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import org.springblade.modules.common.pojo.entity.RegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.RegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.RegionsInfoExcel;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonRegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.CommonRegionsInfoExcel;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
import java.util.List;
|
||||
@@ -39,7 +39,7 @@ import java.util.List;
|
||||
* @author BladeX
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public interface IRegionsInfoService extends BaseService<RegionsInfoEntity> {
|
||||
public interface ICommonRegionsInfoService extends BaseService<CommonRegionsInfoEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
@@ -47,7 +47,7 @@ public interface IRegionsInfoService extends BaseService<RegionsInfoEntity> {
|
||||
* @param regionsInfo 查询参数
|
||||
* @return IPage<RegionsInfoVO>
|
||||
*/
|
||||
IPage<RegionsInfoVO> selectRegionsInfoPage(IPage<RegionsInfoVO> page, RegionsInfoVO regionsInfo);
|
||||
IPage<CommonRegionsInfoVO> selectRegionsInfoPage(IPage<CommonRegionsInfoVO> page, CommonRegionsInfoVO regionsInfo);
|
||||
|
||||
|
||||
/**
|
||||
@@ -56,6 +56,6 @@ public interface IRegionsInfoService extends BaseService<RegionsInfoEntity> {
|
||||
* @param queryWrapper 查询条件
|
||||
* @return List<RegionsInfoExcel>
|
||||
*/
|
||||
List<RegionsInfoExcel> exportRegionsInfo(Wrapper<RegionsInfoEntity> queryWrapper);
|
||||
List<CommonRegionsInfoExcel> exportRegionsInfo(Wrapper<CommonRegionsInfoEntity> queryWrapper);
|
||||
|
||||
}
|
||||
@@ -26,9 +26,9 @@
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import org.springblade.modules.common.pojo.entity.UserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.UserAddressVO;
|
||||
import org.springblade.modules.common.excel.UserAddressExcel;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserAddressVO;
|
||||
import org.springblade.modules.common.excel.CommonUserAddressExcel;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
import java.util.List;
|
||||
@@ -39,7 +39,7 @@ import java.util.List;
|
||||
* @author BladeX
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public interface IUserAddressService extends BaseService<UserAddressEntity> {
|
||||
public interface ICommonUserAddressService extends BaseService<CommonUserAddressEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
@@ -47,7 +47,7 @@ public interface IUserAddressService extends BaseService<UserAddressEntity> {
|
||||
* @param userAddress 查询参数
|
||||
* @return IPage<UserAddressVO>
|
||||
*/
|
||||
IPage<UserAddressVO> selectUserAddressPage(IPage<UserAddressVO> page, UserAddressVO userAddress);
|
||||
IPage<CommonUserAddressVO> selectUserAddressPage(IPage<CommonUserAddressVO> page, CommonUserAddressVO userAddress);
|
||||
|
||||
|
||||
/**
|
||||
@@ -56,6 +56,6 @@ public interface IUserAddressService extends BaseService<UserAddressEntity> {
|
||||
* @param queryWrapper 查询条件
|
||||
* @return List<UserAddressExcel>
|
||||
*/
|
||||
List<UserAddressExcel> exportUserAddress(Wrapper<UserAddressEntity> queryWrapper);
|
||||
List<CommonUserAddressExcel> exportUserAddress(Wrapper<CommonUserAddressEntity> queryWrapper);
|
||||
|
||||
}
|
||||
@@ -25,11 +25,11 @@
|
||||
*/
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.RegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.RegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.RegionsInfoExcel;
|
||||
import org.springblade.modules.common.mapper.RegionsInfoMapper;
|
||||
import org.springblade.modules.common.service.IRegionsInfoService;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonRegionsInfoVO;
|
||||
import org.springblade.modules.common.excel.CommonRegionsInfoExcel;
|
||||
import org.springblade.modules.common.mapper.CommonRegionsInfoMapper;
|
||||
import org.springblade.modules.common.service.ICommonRegionsInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -43,17 +43,17 @@ import java.util.List;
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class RegionsInfoServiceImpl extends BaseServiceImpl<RegionsInfoMapper, RegionsInfoEntity> implements IRegionsInfoService {
|
||||
public class CommonRegionsInfoServiceImpl extends BaseServiceImpl<CommonRegionsInfoMapper, CommonRegionsInfoEntity> implements ICommonRegionsInfoService {
|
||||
|
||||
@Override
|
||||
public IPage<RegionsInfoVO> selectRegionsInfoPage(IPage<RegionsInfoVO> page, RegionsInfoVO regionsInfo) {
|
||||
public IPage<CommonRegionsInfoVO> selectRegionsInfoPage(IPage<CommonRegionsInfoVO> page, CommonRegionsInfoVO regionsInfo) {
|
||||
return page.setRecords(baseMapper.selectRegionsInfoPage(page, regionsInfo));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<RegionsInfoExcel> exportRegionsInfo(Wrapper<RegionsInfoEntity> queryWrapper) {
|
||||
List<RegionsInfoExcel> regionsInfoList = baseMapper.exportRegionsInfo(queryWrapper);
|
||||
public List<CommonRegionsInfoExcel> exportRegionsInfo(Wrapper<CommonRegionsInfoEntity> queryWrapper) {
|
||||
List<CommonRegionsInfoExcel> regionsInfoList = baseMapper.exportRegionsInfo(queryWrapper);
|
||||
//regionsInfoList.forEach(regionsInfo -> {
|
||||
// regionsInfo.setTypeName(DictCache.getValue(DictEnum.YES_NO, RegionsInfo.getType()));
|
||||
//});
|
||||
@@ -25,11 +25,11 @@
|
||||
*/
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.UserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.UserAddressVO;
|
||||
import org.springblade.modules.common.excel.UserAddressExcel;
|
||||
import org.springblade.modules.common.mapper.UserAddressMapper;
|
||||
import org.springblade.modules.common.service.IUserAddressService;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserAddressVO;
|
||||
import org.springblade.modules.common.excel.CommonUserAddressExcel;
|
||||
import org.springblade.modules.common.mapper.CommonUserAddressMapper;
|
||||
import org.springblade.modules.common.service.ICommonUserAddressService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
@@ -43,17 +43,17 @@ import java.util.List;
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class UserAddressServiceImpl extends BaseServiceImpl<UserAddressMapper, UserAddressEntity> implements IUserAddressService {
|
||||
public class CommonUserAddressServiceImpl extends BaseServiceImpl<CommonUserAddressMapper, CommonUserAddressEntity> implements ICommonUserAddressService {
|
||||
|
||||
@Override
|
||||
public IPage<UserAddressVO> selectUserAddressPage(IPage<UserAddressVO> page, UserAddressVO userAddress) {
|
||||
public IPage<CommonUserAddressVO> selectUserAddressPage(IPage<CommonUserAddressVO> page, CommonUserAddressVO userAddress) {
|
||||
return page.setRecords(baseMapper.selectUserAddressPage(page, userAddress));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<UserAddressExcel> exportUserAddress(Wrapper<UserAddressEntity> queryWrapper) {
|
||||
List<UserAddressExcel> userAddressList = baseMapper.exportUserAddress(queryWrapper);
|
||||
public List<CommonUserAddressExcel> exportUserAddress(Wrapper<CommonUserAddressEntity> queryWrapper) {
|
||||
List<CommonUserAddressExcel> userAddressList = baseMapper.exportUserAddress(queryWrapper);
|
||||
//userAddressList.forEach(userAddress -> {
|
||||
// userAddress.setTypeName(DictCache.getValue(DictEnum.YES_NO, UserAddress.getType()));
|
||||
//});
|
||||
@@ -27,8 +27,8 @@ package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.RegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.RegionsInfoVO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonRegionsInfoVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -37,15 +37,15 @@ import java.util.Objects;
|
||||
* @author BladeX
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public class RegionsInfoWrapper extends BaseEntityWrapper<RegionsInfoEntity, RegionsInfoVO> {
|
||||
public class CommonRegionsInfoWrapper extends BaseEntityWrapper<CommonRegionsInfoEntity, CommonRegionsInfoVO> {
|
||||
|
||||
public static RegionsInfoWrapper build() {
|
||||
return new RegionsInfoWrapper();
|
||||
public static CommonRegionsInfoWrapper build() {
|
||||
return new CommonRegionsInfoWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RegionsInfoVO entityVO(RegionsInfoEntity regionsInfo) {
|
||||
RegionsInfoVO regionsInfoVO = Objects.requireNonNull(BeanUtil.copyProperties(regionsInfo, RegionsInfoVO.class));
|
||||
public CommonRegionsInfoVO entityVO(CommonRegionsInfoEntity regionsInfo) {
|
||||
CommonRegionsInfoVO regionsInfoVO = Objects.requireNonNull(BeanUtil.copyProperties(regionsInfo, CommonRegionsInfoVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(regionsInfo.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(regionsInfo.getUpdateUser());
|
||||
@@ -27,8 +27,8 @@ package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.UserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.UserAddressVO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserAddressVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -37,15 +37,15 @@ import java.util.Objects;
|
||||
* @author BladeX
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
public class UserAddressWrapper extends BaseEntityWrapper<UserAddressEntity, UserAddressVO> {
|
||||
public class CommonUserAddressWrapper extends BaseEntityWrapper<CommonUserAddressEntity, CommonUserAddressVO> {
|
||||
|
||||
public static UserAddressWrapper build() {
|
||||
return new UserAddressWrapper();
|
||||
public static CommonUserAddressWrapper build() {
|
||||
return new CommonUserAddressWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserAddressVO entityVO(UserAddressEntity userAddress) {
|
||||
UserAddressVO userAddressVO = Objects.requireNonNull(BeanUtil.copyProperties(userAddress, UserAddressVO.class));
|
||||
public CommonUserAddressVO entityVO(CommonUserAddressEntity userAddress) {
|
||||
CommonUserAddressVO userAddressVO = Objects.requireNonNull(BeanUtil.copyProperties(userAddress, CommonUserAddressVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(userAddress.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(userAddress.getUpdateUser());
|
||||
@@ -117,6 +117,11 @@ public class MallCategoryController extends BladeController {
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入mallCategory")
|
||||
public R update(@Valid @RequestBody MallCategoryEntity mallCategory) {
|
||||
if (mallCategory.getPid() == null){
|
||||
mallCategory.setLevel(1);
|
||||
}else {
|
||||
mallCategory.setLevel(2);
|
||||
}
|
||||
return R.status(mallCategoryService.updateById(mallCategory));
|
||||
}
|
||||
|
||||
@@ -158,4 +163,15 @@ public class MallCategoryController extends BladeController {
|
||||
ExcelUtil.export(response, "商品分类数据" + DateUtil.time(), "商品分类数据表", list, MallCategoryExcel.class);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/select-parent")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入mallCategory")
|
||||
public R<List<MallCategoryVO>> list() {
|
||||
List<MallCategoryEntity> pages = mallCategoryService.selectParent();
|
||||
return R.data(MallCategoryWrapper.build().listVO(pages));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<result column="spu_sn" property="spuSn"/>
|
||||
<result column="spu_name" property="spuName"/>
|
||||
<result column="main_img" property="mainImg"/>
|
||||
<result column="detail_img" property="detailImg"/>
|
||||
<result column="top_img" property="topImg"/>
|
||||
<result column="detail_img" property="detailImg" typeHandler="org.springblade.common.handler.TextArrayTypeHandler"/>
|
||||
<result column="top_img" property="topImg" typeHandler="org.springblade.common.handler.TextArrayTypeHandler"/>
|
||||
<result column="attribute" property="attribute"/>
|
||||
<result column="unit" property="unit"/>
|
||||
<result column="category_id" property="categoryId"/>
|
||||
|
||||
@@ -25,13 +25,16 @@
|
||||
*/
|
||||
package org.springblade.modules.mall.pojo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springblade.common.handler.TextArrayTypeHandler;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import java.io.Serial;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商城商品 实体类
|
||||
@@ -40,7 +43,7 @@ import java.io.Serial;
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Data
|
||||
@TableName("mall_product")
|
||||
@TableName(value = "mall_product" , autoResultMap = true)
|
||||
@Schema(description = "MallProduct对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class MallProductEntity extends BaseEntity {
|
||||
@@ -66,13 +69,15 @@ public class MallProductEntity extends BaseEntity {
|
||||
/**
|
||||
* 详情图(多图,逗号分割)
|
||||
*/
|
||||
@Schema(description = "详情图(多图,逗号分割)")
|
||||
private String detailImg;
|
||||
@TableField(typeHandler = TextArrayTypeHandler.class)
|
||||
@Schema(description = "详情图")
|
||||
private List<String> detailImg;
|
||||
/**
|
||||
* 顶图(多图,逗号分割)
|
||||
*/
|
||||
@Schema(description = "顶图(多图,逗号分割)")
|
||||
private String topImg;
|
||||
@TableField(typeHandler = TextArrayTypeHandler.class)
|
||||
@Schema(description = "详情页顶图")
|
||||
private List<String> topImg;
|
||||
/**
|
||||
* 规格详情
|
||||
*/
|
||||
|
||||
@@ -58,4 +58,5 @@ public interface IMallCategoryService extends BaseService<MallCategoryEntity> {
|
||||
*/
|
||||
List<MallCategoryExcel> exportMallCategory(Wrapper<MallCategoryEntity> queryWrapper);
|
||||
|
||||
List<MallCategoryEntity> selectParent();
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
*/
|
||||
package org.springblade.modules.mall.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import org.springblade.modules.mall.pojo.entity.MallCategoryEntity;
|
||||
import org.springblade.modules.mall.pojo.vo.MallCategoryVO;
|
||||
import org.springblade.modules.mall.excel.MallCategoryExcel;
|
||||
@@ -60,4 +61,13 @@ public class MallCategoryServiceImpl extends BaseServiceImpl<MallCategoryMapper,
|
||||
return mallCategoryList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MallCategoryEntity> selectParent() {
|
||||
|
||||
return list(
|
||||
Wrappers.lambdaQuery(MallCategoryEntity.class)
|
||||
.eq(MallCategoryEntity::getLevel, 1)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user