|
@@ -13,6 +13,7 @@ import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.jeecg.modules.scas.dto.SupplierCapacityDto;
|
|
|
import org.jeecg.modules.scas.entity.SupplierCapacity;
|
|
|
import org.jeecg.modules.scas.entity.vo.SupplierCapacityVo1;
|
|
@@ -72,13 +73,13 @@ public class SupplierCapacityController extends JeecgController<SupplierCapacity
|
|
|
//System.out.println("结束年份"+new SimpleDateFormat("yyyy").format(supplierCapacityDto.getEndDate()));
|
|
|
Result<IPage<SupplierCapacity>> result = new Result<IPage<SupplierCapacity>>();
|
|
|
QueryWrapper<SupplierCapacityDto> queryWrapper = new QueryWrapper<>();//初始化
|
|
|
- if(supplierCapacityDto.getCsrccode()!=null&& !supplierCapacityDto.getCsrccode().trim().equals("") &&StringUtils.isNotEmpty(supplierCapacityDto.getCsrccode())){
|
|
|
+ if(oConvertUtils.isNotEmpty(supplierCapacityDto.getCsrccode())){
|
|
|
queryWrapper.eq("p.csrccode",supplierCapacityDto.getCsrccode());;//订单号
|
|
|
}
|
|
|
- if(supplierCapacityDto.getVenName()!=null&& !supplierCapacityDto.getVenName().trim().equals("") &&StringUtils.isNotEmpty(supplierCapacityDto.getVenName())){
|
|
|
+ if(oConvertUtils.isNotEmpty(supplierCapacityDto.getVenName())){
|
|
|
queryWrapper.eq("p.cVenCode",supplierCapacityDto.getVenName());//供应商名称
|
|
|
}
|
|
|
- if(supplierCapacityDto.getPlanLotNumber()!=null&& !supplierCapacityDto.getPlanLotNumber().trim().equals("") &&StringUtils.isNotEmpty(supplierCapacityDto.getPlanLotNumber())){
|
|
|
+ if(oConvertUtils.isNotEmpty(supplierCapacityDto.getPlanLotNumber())){
|
|
|
queryWrapper.eq("p.cPlanLotNumber",supplierCapacityDto.getPlanLotNumber());//计划单号
|
|
|
}
|
|
|
/*if(supplierCapacityDto.getStartDate()!=null&&StringUtils.isNotBlank(supplierCapacityDto.getStartDate().toString())){
|
|
@@ -91,13 +92,13 @@ public class SupplierCapacityController extends JeecgController<SupplierCapacity
|
|
|
queryWrapper.le("month(p.dArriveDate)",supplierCapacityDto.getEndDate().getMonth()+1);
|
|
|
queryWrapper.le("year(p.dArriveDate)",new SimpleDateFormat("yyyy").format(supplierCapacityDto.getEndDate()));
|
|
|
}*/
|
|
|
- if(supplierCapacityDto.getStartDate()!=null&&StringUtils.isNotEmpty(supplierCapacityDto.getStartDate().toString())){//起始日期
|
|
|
+ if(oConvertUtils.isNotEmpty(supplierCapacityDto.getStartDate().toString())){//起始日期
|
|
|
queryWrapper.ge("p.dArriveDate",supplierCapacityDto.getStartDate());
|
|
|
}
|
|
|
- if(supplierCapacityDto.getEndDate()!=null&&StringUtils.isNotEmpty(supplierCapacityDto.getEndDate().toString())){//结束日期
|
|
|
+ if(oConvertUtils.isNotEmpty(supplierCapacityDto.getEndDate().toString())){//结束日期
|
|
|
queryWrapper.le("p.dArriveDate",supplierCapacityDto.getEndDate());
|
|
|
}
|
|
|
- if(supplierCapacityDto.getOrderType()!=null&& !supplierCapacityDto.getOrderType().trim().equals("") && StringUtils.isNotEmpty(supplierCapacityDto.getOrderType())){//订单类型
|
|
|
+ if(oConvertUtils.isNotEmpty(supplierCapacityDto.getOrderType())){//订单类型
|
|
|
queryWrapper.eq("p.iOrderType",supplierCapacityDto.getOrderType());//订单类型iOrderType
|
|
|
}
|
|
|
Page<SupplierCapacity> page = new Page<SupplierCapacity>(pageNo, pageSize);
|