|
@@ -7,12 +7,13 @@ import org.dromara.common.core.utils.StringUtils;
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
import org.dromara.productionManagement.domain.ProductionPlan;
|
|
|
-import org.dromara.productionManagement.domain.bo.ProductionPlanBo;
|
|
|
import org.dromara.productionManagement.domain.vo.ProductionPlanVo;
|
|
|
import org.dromara.productionManagement.mapper.ProductionPlanMapper;
|
|
|
import org.dromara.productionManagement.service.ProductionPlanService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
/**
|
|
|
* 生产计划服务层实现
|
|
|
*/
|
|
@@ -23,11 +24,30 @@ public class ProductionPlanServiceImpl implements ProductionPlanService {
|
|
|
private final ProductionPlanMapper productionPlanMapper;
|
|
|
|
|
|
@Override
|
|
|
- public TableDataInfo<ProductionPlanVo> selectVoPage(ProductionPlanBo productionPlanBo, PageQuery pageQuery) {
|
|
|
+ public TableDataInfo<ProductionPlanVo> selectVoPage(Map<String,Object> params, PageQuery pageQuery) {
|
|
|
QueryWrapper<ProductionPlan> qw = new QueryWrapper<>();
|
|
|
- qw.eq("p.craft_status",productionPlanBo.getCraftStatus());
|
|
|
- qw.eq(null != productionPlanBo.getUserId(),"p.user_id", productionPlanBo.getUserId());
|
|
|
- qw.eq(StringUtils.isNotBlank(productionPlanBo.getGarmentFactory()),"gi.garment_factory", productionPlanBo.getGarmentFactory());
|
|
|
+ qw.eq("p.craft_status",params.get("craftStatus"));
|
|
|
+ qw.eq(null != params.get("userId"),"p.user_id", params.get("userId"));
|
|
|
+ qw.eq(StringUtils.isNotBlank((CharSequence) params.get("garmentFactory")),"gi.garment_factory", params.get("garmentFactory"));
|
|
|
+ qw.like(StringUtils.isNotBlank((CharSequence) params.get("scNo")),"p.sc_no", params.get("scNo"));
|
|
|
+ qw.eq(StringUtils.isNotBlank((CharSequence) params.get("bulkNumber")),"gi.goods_type_extend_1_id", params.get("bulkNumber"));
|
|
|
+ qw.eq(StringUtils.isNotBlank((CharSequence) params.get("baseCloth")),"gi.base_cloth", params.get("baseCloth"));
|
|
|
+ qw.eq(StringUtils.isNotBlank((CharSequence) params.get("itemNumber")),"gi.item_number", params.get("itemNumber"));
|
|
|
+ qw.between((params.get("beginTime") != null && params.get("endTime") != null),"p.purchase_time", params.get("beginTime"), params.get("endTime"));
|
|
|
+ qw.eq(null != params.get("isFirstProcessing"), "p.is_first_processing", params.get("isFirstProcessing"));
|
|
|
+ qw.eq(null != params.get("isFirstOrder"), "p.is_first_order", params.get("isFirstOrder"));
|
|
|
+ qw.eq(null != params.get("isMulticolor"), "p.is_multicolor", params.get("isMulticolor"));
|
|
|
+ qw.eq(null != params.get("isQuickReturn"), "p.is_quick_return", params.get("isQuickReturn"));
|
|
|
+ qw.eq(null != params.get("isBurnFlowers"), "p.is_burn_flowers", params.get("isBurnFlowers"));
|
|
|
+ qw.eq(null != params.get("printStatus"), "p.print_status", params.get("printStatus"));
|
|
|
+ qw.eq(null != params.get("isBuHuo"), "p.is_buhuo", params.get("isBuHuo"));
|
|
|
+ qw.eq(null != params.get("isUrgent"), "p.is_urgent", params.get("isUrgent"));
|
|
|
+ qw.eq(StringUtils.isNotBlank((CharSequence) params.get("isSys")), "p.is_sys", params.get("isSys"));
|
|
|
+ qw.eq(null != params.get("craftAttrBo"), "gi.goods_type_extend_3_attr", params.get("craftAttrBo"));//构建完整的工艺扩展信息对象的JSON数据
|
|
|
+ qw.eq(StringUtils.isNotBlank((CharSequence) params.get("brandGroup")),"gi.brand_group", params.get("brandGroup"));
|
|
|
+ qw.eq(null != params.get("outFactoryId"),"p.out_factory_id", params.get("outFactoryId"));
|
|
|
+ qw.eq(null != params.get("shFactoryId"),"p.sh_factory_id", params.get("shFactoryId"));
|
|
|
+
|
|
|
Page<ProductionPlanVo> page = productionPlanMapper.selectProductionPlanVo(pageQuery.build(), qw);
|
|
|
return TableDataInfo.build(page);
|
|
|
}
|