bug修改
This commit is contained in:
@@ -2,6 +2,7 @@ package com.zt.plat.module.erp.controller.admin.erp.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
@@ -82,6 +83,7 @@ public class ErpMaterialSaveReqVO {
|
||||
private String gradeUnit;
|
||||
|
||||
@Schema(description = "小数位数")
|
||||
@Min(value = 1, message = "数值必须大于0")
|
||||
private Long decimalValue;
|
||||
|
||||
}
|
||||
@@ -20,7 +20,7 @@ public interface ErpMaterialMapper extends BaseMapperX<ErpMaterialDO> {
|
||||
|
||||
default PageResult<ErpMaterialDO> selectPage(ErpMaterialPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<ErpMaterialDO>()
|
||||
.eqIfPresent(ErpMaterialDO::getDownCenterNumber, reqVO.getDownCenterNumber())
|
||||
.likeIfPresent(ErpMaterialDO::getDownCenterNumber, reqVO.getDownCenterNumber())
|
||||
.eqIfPresent(ErpMaterialDO::getCenterNumber, reqVO.getCenterNumber())
|
||||
.betweenIfPresent(ErpMaterialDO::getCreateDate, reqVO.getCreateDate())
|
||||
.eqIfPresent(ErpMaterialDO::getMaterialType, reqVO.getMaterialType())
|
||||
|
||||
Reference in New Issue
Block a user