获取路线,获取料号规格
This commit is contained in:
parent
b6c81caf6e
commit
797ef39bdb
@ -174,4 +174,14 @@ public class LogisticsRouteController extends JeecgController<LogisticsRoute, IL
|
|||||||
return super.importExcel(request, response, LogisticsRoute.class);
|
return super.importExcel(request, response, LogisticsRoute.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询城市
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping(value = "/getCity")
|
||||||
|
public Result<?> getStartCity() {
|
||||||
|
List<LogisticsRoute> list = logisticsRouteService.list();
|
||||||
|
List<String> strings = list.stream().map(s -> s.getStartCity() + "&-" + s.getTargetCity()).distinct().collect(Collectors.toList());
|
||||||
|
return Result.OK(strings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.common.api.vo.Result;
|
||||||
import org.jeecg.common.system.query.QueryGenerator;
|
import org.jeecg.common.system.query.QueryGenerator;
|
||||||
import org.jeecg.common.util.oConvertUtils;
|
import org.jeecg.common.util.oConvertUtils;
|
||||||
|
import org.jeecg.modules.tms.basicdata.logisticsroute.entity.LogisticsRoute;
|
||||||
import org.jeecg.modules.tms.basicdata.vehicleproduct.entity.TmsVehicleProduct;
|
import org.jeecg.modules.tms.basicdata.vehicleproduct.entity.TmsVehicleProduct;
|
||||||
import org.jeecg.modules.tms.basicdata.vehicleproduct.service.ITmsVehicleProductService;
|
import org.jeecg.modules.tms.basicdata.vehicleproduct.service.ITmsVehicleProductService;
|
||||||
|
|
||||||
@ -174,4 +175,10 @@ public class TmsVehicleProductController extends JeecgController<TmsVehicleProdu
|
|||||||
return super.importExcel(request, response, TmsVehicleProduct.class);
|
return super.importExcel(request, response, TmsVehicleProduct.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping(value = "/getPnSpecList")
|
||||||
|
public Result<?> getStartCity() {
|
||||||
|
List<TmsVehicleProduct> list = tmsVehicleProductService.list();
|
||||||
|
List<String> strings = list.stream().map(s -> s.getPn() + "&-" + s.getSpec()).distinct().collect(Collectors.toList());
|
||||||
|
return Result.OK(strings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user