mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 13:42:07 +08:00
bug575修改
This commit is contained in:
+7
-3
@@ -9,6 +9,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.cf.imes.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.validation.constraints.Pattern;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
@@ -22,16 +23,19 @@ import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH
|
||||
public class RemainPlatePageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "ID", example = "16628")
|
||||
private Long id;
|
||||
@Pattern(regexp = "^[0-9]*$",message = "余料号必须为数字")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "排单 ID", example = "16628")
|
||||
private Long planId;
|
||||
@Pattern(regexp = "^[0-9]*$",message = "排单号必须为数字")
|
||||
private String planId;
|
||||
|
||||
@Schema(description = "组织id", example = "1")
|
||||
private Long organId;
|
||||
|
||||
@Schema(description = "初始排单 ID", example = "6628")
|
||||
private Long initPlanId;
|
||||
@Pattern(regexp = "^[0-9]*$",message = "初始排单号必须为数字")
|
||||
private String initPlanId;
|
||||
|
||||
@Schema(description = "余料板状态,0未使用,1使用中", example = "0")
|
||||
@ValidCommonStatus
|
||||
|
||||
+3
-3
@@ -23,9 +23,9 @@ public interface RemainPlateMapper extends BaseMapperX<RemainPlateDO> {
|
||||
|
||||
default PageResult<RemainPlateDO> selectPage(RemainPlatePageReqVO reqVO) {
|
||||
LambdaQueryWrapperX<RemainPlateDO> wrapper = new LambdaQueryWrapperX<RemainPlateDO>()
|
||||
.likeIfPresent(RemainPlateDO::getId,reqVO.getId() != null ? reqVO.getId().toString() : null)
|
||||
.likeIfPresent(RemainPlateDO::getPlanId, reqVO.getPlanId() != null ? reqVO.getPlanId().toString() : null)
|
||||
.likeIfPresent(RemainPlateDO::getInitPlanId, reqVO.getInitPlanId() != null ? reqVO.getInitPlanId().toString() : null)
|
||||
.likeIfPresent(RemainPlateDO::getId,reqVO.getId() != null ? reqVO.getId() : null)
|
||||
.likeIfPresent(RemainPlateDO::getPlanId, reqVO.getPlanId() != null ? reqVO.getPlanId() : null)
|
||||
.likeIfPresent(RemainPlateDO::getInitPlanId, reqVO.getInitPlanId() != null ? reqVO.getInitPlanId() : null)
|
||||
.eqIfPresent(RemainPlateDO::getStatus, reqVO.getStatus())
|
||||
.eqIfPresent(RemainPlateDO::getGoodsId, reqVO.getGoodsId())
|
||||
.eqIfPresent(RemainPlateDO::getIsCutting, reqVO.getIsCutting())
|
||||
|
||||
Reference in New Issue
Block a user