yanyang #6
@ -2,6 +2,7 @@ package com.cnbm.packing.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.cnbm.admin.utils.CodeGeneratorHelper;
|
||||
import com.cnbm.common.page.PageData;
|
||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||
@ -37,6 +38,14 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper,
|
||||
|
||||
QueryWrapper<PrintModel> wrapper = new QueryWrapper<>();
|
||||
wrapper.like(StringUtils.isNotBlank(name), PrintModel.NAME, name);
|
||||
if(params.get("type")!=null) {
|
||||
Integer type = Integer.parseInt(params.get("type").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(type), PrintModel.LINE_BODY, type);
|
||||
}
|
||||
if(params.get("lineBody")!=null) {
|
||||
Integer lineBody = Integer.parseInt(params.get("lineBody").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(lineBody), PrintModel.LINE_BODY, lineBody);
|
||||
}
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
@ -51,11 +51,11 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
||||
Integer lineBody = Integer.parseInt(params.get("lineBody").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(lineBody), WoPackagingBox.LINE_BODY, lineBody);
|
||||
}
|
||||
if(params.get("lineBody")!=null) {
|
||||
if(params.get("printStatus")!=null) {
|
||||
Integer printStatus = Integer.parseInt(params.get("printStatus").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(printStatus), WoPackagingBox.PRINT_STATUS, printStatus);
|
||||
}
|
||||
if(params.get("lineBody")!=null) {
|
||||
if(params.get("model")!=null) {
|
||||
Integer model = Integer.parseInt(params.get("model").toString());
|
||||
wrapper.eq(ObjectUtils.isNotNull(model), WoPackagingBox.MODEL, model);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user