获取送货计划信息
This commit is contained in:
parent
d09d242854
commit
41bb747379
@ -1,5 +1,6 @@
|
||||
package org.jeecg.modules.tms.carinout.deliveryplan.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -26,6 +27,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.modules.tms.carinout.deliveryplandetail.entity.DeliveryPlanDetail;
|
||||
import org.jeecg.modules.tms.carinout.deliveryplandetail.service.IDeliveryPlanDetailService;
|
||||
import org.jeecg.modules.tms.outbound.vehicledemandcount.entity.VehicleDemandCount;
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
@ -228,4 +230,20 @@ public class DeliveryPlanController extends JeecgController<DeliveryPlan, IDeliv
|
||||
List<DeliveryPlanDetail> strings = deliveryPlanService.getByPo(po);
|
||||
return Result.OK(strings);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取送货计划信息
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getVdCountById")
|
||||
public Result<?> getVdCountById(@RequestParam(name="id",required=true) String id) {
|
||||
DeliveryPlan deliveryPlan = deliveryPlanService.getById(id);
|
||||
List<DeliveryPlan> deliveryPlans = new ArrayList<>();
|
||||
deliveryPlans.add(deliveryPlan);
|
||||
IPage<DeliveryPlan> page = new Page<>(1, 1);
|
||||
page.setRecords(deliveryPlans);
|
||||
page.setTotal(1);
|
||||
return Result.OK(page);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user