diff --git a/ym-admin/src/main/java/com/cnbm/admin/config/SecurityConfig.java b/ym-admin/src/main/java/com/cnbm/admin/config/SecurityConfig.java index 2203625..2b39550 100644 --- a/ym-admin/src/main/java/com/cnbm/admin/config/SecurityConfig.java +++ b/ym-admin/src/main/java/com/cnbm/admin/config/SecurityConfig.java @@ -73,6 +73,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { "/webjars/**", "/websocket/**", "/influx/**", + "/basic/**", "/processInspection/**", "/captcha").anonymous() // .antMatchers("/testCors").hasAuthority("system:dept:list222") diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java index 02e7c41..e9267a5 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-13 */ @RestController -@RequestMapping("/code/factory") +@RequestMapping("/basic/factory") @Api(tags="工厂 表") public class FactoryController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java index e749ca8..869ae4a 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/MachineController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-15 */ @RestController -@RequestMapping("/code/machine") +@RequestMapping("/basic/machine") @Api(tags="机台表") public class MachineController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java index 42308fd..a65ef23 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/MeasureToolController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-13 */ @RestController -@RequestMapping("/code/measureTool") +@RequestMapping("/basic/measureTool") @Api(tags="量具表") public class MeasureToolController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java index a1a39f2..4a2b7de 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/PlatformController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-13 */ @RestController -@RequestMapping("/code/platform") +@RequestMapping("/basic/platform") @Api(tags="站点表") public class PlatformController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java index eb5be8c..34e1917 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductController.java @@ -13,6 +13,7 @@ import com.cnbm.common.validator.group.UpdateGroup; import com.cnbm.basic.dto.ProductDTO; import com.cnbm.basic.excel.ProductExcel; import com.cnbm.basic.service.IProductService; +import com.google.gson.internal.$Gson$Preconditions; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; @@ -34,7 +35,7 @@ import java.util.Map; * @since 2022-07-11 */ @RestController -@RequestMapping("/code/product") +@RequestMapping("/basic/product") @Api(tags="产品 表") public class ProductController { @Autowired @@ -68,13 +69,13 @@ public class ProductController { @ApiOperation("保存") @LogOperation("保存") //@PreAuthorize("@ex.hasAuthority('code:product:save')") - public Result save(@RequestBody ProductDTO dto){ + public Result save(@RequestBody ProductDTO dto){ //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); productService.save(dto); - return new Result(); + return new Result().ok(dto); } @PutMapping @@ -113,13 +114,12 @@ public class ProductController { ExcelUtils.exportExcelToTarget(response, null, list, ProductExcel.class); } - @GetMapping("status") + @GetMapping("status/{id}") @ApiOperation("改变状态") @LogOperation("改变状态") public Result changeStatus(@PathVariable("id") Long id){ - productService.changeStatus(id); - - return new Result(); + boolean b = productService.changeStatus(id); + return new Result().ok(b); } } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java index b3dc050..9f33d34 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFactoryRelationController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-27 */ @RestController -@RequestMapping("/code/productFactoryRelation") +@RequestMapping("/basic/productFactoryRelation") @Api(tags="产品-工厂 关系表") public class ProductFactoryRelationController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java index d771514..195468c 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-15 */ @RestController -@RequestMapping("/code/productFeatures") +@RequestMapping("/basic/productFeatures") @Api(tags="产品特性 表") public class ProductFeaturesController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java index 318b38b..3575fa2 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductFeaturesHisController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-15 */ @RestController -@RequestMapping("/code/productFeaturesHis") +@RequestMapping("/basic/productFeaturesHis") @Api(tags="产品特性 历史表") public class ProductFeaturesHisController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java index 8674bc9..b014140 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductTypeController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-06-30 */ @RestController -@RequestMapping("/code/productType") +@RequestMapping("/basic/productType") @Api(tags="产品类型 表") public class ProductTypeController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java index b3fdc72..d629308 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ProductWorkingprocedureRelationController.java @@ -35,7 +35,7 @@ import java.util.Map; * @since 2022-07-15 */ @RestController -@RequestMapping("/code/productWorkingprocedureRelation") +@RequestMapping("/basic/productWorkingprocedureRelation") @Api(tags="产品-工序 关系表") public class ProductWorkingprocedureRelationController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java index 948788c..56b2dca 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/ShiftController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-13 */ @RestController -@RequestMapping("/code/shift") +@RequestMapping("/basic/shift") @Api(tags="班次 表") public class ShiftController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java index 29684fa..4795316 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/TeamController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-13 */ @RestController -@RequestMapping("/code/team") +@RequestMapping("/basic/team") @Api(tags="班组 表") public class TeamController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java index c5b33f8..798631d 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/UnitController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-06-30 */ @RestController -@RequestMapping("/code/unit") +@RequestMapping("/basic/unit") @Api(tags="单位 表") public class UnitController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java index d417e6f..2d31fab 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-15 */ @RestController -@RequestMapping("/code/workingProcedure") +@RequestMapping("/basic/workingProcedure") @Api(tags="工序 表") public class WorkingProcedureController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java index 6d2d9b7..3398c8c 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/controller/WorkingProcedureTypeController.java @@ -34,7 +34,7 @@ import java.util.Map; * @since 2022-07-15 */ @RestController -@RequestMapping("/code/workingProcedureType") +@RequestMapping("/basic/workingProcedureType") @Api(tags="工序类型表 表") public class WorkingProcedureTypeController { @Autowired diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java index 456b45c..9713513 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/IProductService.java @@ -22,6 +22,6 @@ public interface IProductService extends CrudService { void update(ProductDTO dto); - void changeStatus(Long id); + boolean changeStatus(Long id); } \ No newline at end of file diff --git a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductServiceImpl.java b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductServiceImpl.java index a7e52a8..7a23bb8 100644 --- a/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductServiceImpl.java +++ b/ym-baisc/src/main/java/com/cnbm/basic/service/impl/ProductServiceImpl.java @@ -90,12 +90,12 @@ public class ProductServiceImpl extends CrudServiceImpl> page(@ApiIgnore @RequestParam Map params){ + PageData page = productService.page(params); + + return new Result>().ok(page); + } + + @GetMapping("{id}") + @ApiOperation("信息") + @PreAuthorize("@ex.hasAuthority('code:product:info')") + public Result get(@PathVariable("id") Long id){ + ProductDTO data = productService.get(id); + + return new Result().ok(data); + } + + @PostMapping + @ApiOperation("保存") + @LogOperation("保存") + @PreAuthorize("@ex.hasAuthority('code:product:save')") + public Result save(@RequestBody ProductDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + + productService.save(dto); + + return new Result(); + } + + @PutMapping + @ApiOperation("修改") + @LogOperation("修改") + @PreAuthorize("@ex.hasAuthority('code:product:update')") + public Result update(@RequestBody ProductDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + + productService.update(dto); + + return new Result(); + } + + @DeleteMapping + @ApiOperation("删除") + @LogOperation("删除") + @PreAuthorize("@ex.hasAuthority('code:product:delete')") + public Result delete(@RequestBody Long[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + + productService.delete(ids); + + return new Result(); + } + + @GetMapping("export") + @ApiOperation("导出") + @LogOperation("导出") + @PreAuthorize("@ex.hasAuthority('code:product:export')") + public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { + List list = productService.list(params); + + ExcelUtils.exportExcelToTarget(response, null, list, ProductExcel.class); + } + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/ProductDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ProductDTO.java new file mode 100644 index 0000000..7dd4c4b --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/ProductDTO.java @@ -0,0 +1,86 @@ +package com.cnbm.generator.code.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +import java.math.BigDecimal; + + +/** + * 产品 表 + * + * @author why + * @since 2022-08-01 + */ +@Data +@ApiModel(value = "产品 表DTO对象") +public class ProductDTO implements Serializable { + private static final long serialVersionUID = 1L; + + + + @ApiModelProperty(value = "") + private Long id; + + @ApiModelProperty(value = "产品 名") + private String name; + + @ApiModelProperty(value = "产品 编码") + private String code; + + @ApiModelProperty(value = "产品 规格") + private String specifications; + + @ApiModelProperty(value = "产品 图纸") + private String drawing; + + @ApiModelProperty(value = "描述") + private String descs; + + @ApiModelProperty(value = "") + private Long productTypeId; + + @ApiModelProperty(value = "") + private Long unitId; + + @ApiModelProperty(value = "检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;; 如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") + private String inspectionStage; + + @ApiModelProperty(value = "检验标准") + private String inspectionStandard; + + @ApiModelProperty(value = "1 可用,0 不可用") + private Integer status; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + @ApiModelProperty(value = "") + private Long creatorId; + + @ApiModelProperty(value = "创建人姓名") + private String creatorName; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "") + private Long updaterId; + + @ApiModelProperty(value = "更新人姓名") + private String updaterName; + + @ApiModelProperty(value = "更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty(value = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/Product.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/Product.java new file mode 100644 index 0000000..b3b028a --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/Product.java @@ -0,0 +1,79 @@ +package com.cnbm.generator.code.entity; + +import java.io.Serializable; +import java.time.LocalDateTime; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + *

+ * 产品 表 + *

+ * + * @author why + * @since 2022-08-01 + */ +@Data +@ApiModel(value = "Product对象", description = "产品 表") +public class Product implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + + @ApiModelProperty("产品 名") + private String name; + + @ApiModelProperty("产品 编码") + private String code; + + @ApiModelProperty("产品 规格") + private String specifications; + + @ApiModelProperty("产品 图纸") + private String drawing; + + @ApiModelProperty("描述") + private String descs; + + private Long productTypeId; + + private Long unitId; + + @ApiModelProperty("检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;; 如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") + private String inspectionStage; + + @ApiModelProperty("检验标准") + private String inspectionStandard; + + @ApiModelProperty("1 可用,0 不可用") + private Integer status; + + @ApiModelProperty("备注") + private String remark; + + @ApiModelProperty("删除标志,是否有效:1 可用 0不可用") + private Integer valid; + + private Long creatorId; + + @ApiModelProperty("创建人姓名") + private String creatorName; + + @ApiModelProperty("创建时间") + private LocalDateTime createTime; + + private Long updaterId; + + @ApiModelProperty("更新人姓名") + private String updaterName; + + @ApiModelProperty("更新时间") + private LocalDateTime updateTime; + + @ApiModelProperty("版本号") + private Integer version; + + +} diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/ProductExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ProductExcel.java new file mode 100644 index 0000000..11abc40 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/ProductExcel.java @@ -0,0 +1,60 @@ +package com.cnbm.generator.code.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.time.LocalDateTime; +import java.math.BigDecimal; + +import java.util.Date; + +/** + * 产品 表 + * + * @author why + * @since 2022-08-01 + */ +@Data +public class ProductExcel { + @Excel(name = "") + private Long id; + @Excel(name = "产品 名") + private String name; + @Excel(name = "产品 编码") + private String code; + @Excel(name = "产品 规格") + private String specifications; + @Excel(name = "产品 图纸") + private String drawing; + @Excel(name = "描述") + private String descs; + @Excel(name = "") + private Long productTypeId; + @Excel(name = "") + private Long unitId; + @Excel(name = "检验阶段;1 进货检验、 2 过程检验、 3 成品检验、 4 出货检验;; 如果有多个用逗号隔开,比如 1,4 就代表选中了进货检验和出货检验") + private String inspectionStage; + @Excel(name = "检验标准") + private String inspectionStandard; + @Excel(name = "1 可用,0 不可用") + private Integer status; + @Excel(name = "备注") + private String remark; + @Excel(name = "删除标志,是否有效:1 可用 0不可用") + private Integer valid; + @Excel(name = "") + private Long creatorId; + @Excel(name = "创建人姓名") + private String creatorName; + @Excel(name = "创建时间") + private LocalDateTime createTime; + @Excel(name = "") + private Long updaterId; + @Excel(name = "更新人姓名") + private String updaterName; + @Excel(name = "更新时间") + private LocalDateTime updateTime; + @Excel(name = "版本号") + private Integer version; + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductMapper.java new file mode 100644 index 0000000..de28f2f --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductMapper.java @@ -0,0 +1,16 @@ +package com.cnbm.generator.code.mapper; + +import com.cnbm.common.dao.BaseDao; +import com.cnbm.generator.code.entity.Product; +import org.apache.ibatis.annotations.Mapper; + +/** + * 产品 表 + * + * @author why + * @since 2022-08-01 + */ +@Mapper +public interface ProductMapper extends BaseDao { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductMapper.xml new file mode 100644 index 0000000..e6b190c --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/ProductMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/IProductService.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/IProductService.java new file mode 100644 index 0000000..81e68b5 --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/IProductService.java @@ -0,0 +1,15 @@ +package com.cnbm.generator.code.service; + +import com.cnbm.common.service.CrudService; +import com.cnbm.generator.code.dto.ProductDTO; +import com.cnbm.generator.code.entity.Product; + +/** + * 产品 表 + * + * @author why + * @since 2022-08-01 + */ +public interface IProductService extends CrudService { + +} \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ProductServiceImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ProductServiceImpl.java new file mode 100644 index 0000000..c288a5c --- /dev/null +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/ProductServiceImpl.java @@ -0,0 +1,34 @@ +package com.cnbm.generator.code.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.cnbm.common.service.impl.CrudServiceImpl; +import com.cnbm.generator.code.dto.ProductDTO; +import com.cnbm.generator.code.mapper.ProductMapper; +import com.cnbm.generator.code.entity.Product; +import com.cnbm.generator.code.service.IProductService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * 产品 表 + * + * @author why + * @since 2022-08-01 + */ +@Service +public class ProductServiceImpl extends CrudServiceImpl implements IProductService { + + @Override + public QueryWrapper getWrapper(Map params){ + String id = (String)params.get("id"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), "id", id); + + return wrapper; + } + + +} \ No newline at end of file