15 changed files with 464 additions and 15 deletions
@ -0,0 +1,187 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.excel; |
||||
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
|
||||
/** |
||||
* 司机信息导出 |
||||
* |
||||
* @author lmy |
||||
* @since 2023-05-15 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class BasicdataExportDriverArteryExcel implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
|
||||
|
||||
/** |
||||
* 司机姓名 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("司机姓名") |
||||
private String name; |
||||
/** |
||||
* 司机手机号码 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("司机手机号码") |
||||
private String phone; |
||||
/** |
||||
* 司机类型;1-自有,2-加盟,3-外调,4-临调 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("司机类型") |
||||
private String type; |
||||
/** |
||||
* 职务类型;1-干线,2-配送 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("职务类型") |
||||
private String jobType; |
||||
/** |
||||
* 准驾车型;1-A1,2-A2,3-A3,4-B1,5-B2,6-C1,7-C2 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("准驾车型") |
||||
private String drivingType; |
||||
/** |
||||
* 车辆信息 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("车辆信息") |
||||
private String bindVehicles; |
||||
|
||||
/** |
||||
* 合同开始时间 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("合同开始时间") |
||||
private String contractStartTime; |
||||
/** |
||||
* 合同结束时间 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("合同结束时间") |
||||
private String contractEndTime; |
||||
/** |
||||
* 身份证号 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("身份证号") |
||||
private String idCard; |
||||
/** |
||||
* 性别 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("性别") |
||||
private String gender; |
||||
/** |
||||
* 仓库 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("仓库") |
||||
private String warehouseName; |
||||
/** |
||||
* 居住地址 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("居住地址") |
||||
private String residentialAddress; |
||||
/** |
||||
* 银行类型;1-工商银行,2-建设银行,3-农业银行,4-邮政银行,5-中国银行,6-交通银行,7-其他 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("银行类型") |
||||
private String bankType; |
||||
/** |
||||
* 银行卡号 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("银行卡号") |
||||
private String bankCardNub; |
||||
/** |
||||
* 驾驶证号 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("驾驶证号") |
||||
private String driverLicenseNub; |
||||
/** |
||||
* 驾驶证发证机关 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("驾驶证发证机关") |
||||
private String driverLicenseOrgan; |
||||
/** |
||||
* 驾驶证起始日期 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("驾驶证起始日期") |
||||
private String driverLicenseStartTime; |
||||
/** |
||||
* 驾驶证到期日期 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("驾驶证到期日期") |
||||
private String driverLicenseEndTime; |
||||
/** |
||||
* 从业资格证编号 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("从业资格证编号") |
||||
private String employeeQualificationNub; |
||||
/** |
||||
* 道路经营许可证号 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("道路经营许可证号") |
||||
private String roadOperationLicenseNub; |
||||
/** |
||||
* 关联承运商Id |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("关联承运商") |
||||
private String carrierName; |
||||
/** |
||||
* 运输协议 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("运输协议") |
||||
private String transportationAgreement; |
||||
|
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ColumnWidth(40) |
||||
@ExcelProperty("备注") |
||||
private String notes; |
||||
|
||||
|
||||
} |
@ -0,0 +1,81 @@
|
||||
package com.logpm.distribution.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import com.logpm.basicdata.entity.BasicdataClientUserEntity; |
||||
import com.logpm.basicdata.feign.IBasicdataClientClient; |
||||
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
||||
import com.logpm.distribution.entity.DistributionStockArticleEntity; |
||||
import com.logpm.distribution.excel.DistributionStockArticleExcel; |
||||
import com.logpm.distribution.excel.DistributionStockListExcel; |
||||
import com.logpm.distribution.service.IDistributionStockArticleService; |
||||
import com.logpm.distribution.service.IDistributionStockListService; |
||||
import com.logpm.distribution.vo.DistributionStockArticleVO; |
||||
import com.logpm.distribution.vo.DistributionStockListVO; |
||||
import com.logpm.distribution.wrapper.DistributionStockArticleWrapper; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.secure.utils.AuthUtil; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
import javax.servlet.http.HttpServletResponse; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import java.util.stream.Collectors; |
||||
|
||||
/** |
||||
* 商家库存品控制器 |
||||
* @date 2019/07/01 |
||||
* @author pref |
||||
*/ |
||||
@RestController |
||||
@Slf4j |
||||
@AllArgsConstructor |
||||
@RequestMapping("/mall/stock") |
||||
@Api(value = "商场库存品", tags = "商场库存品") |
||||
public class MallStockController extends BladeController { |
||||
private final IDistributionStockArticleService distributionStockArticleService; |
||||
|
||||
private final IBasicdataClientClient basicdataClientClient; |
||||
|
||||
private final IDistributionStockListService distributionStockListService; |
||||
|
||||
private IBasicdataWarehouseClient warehouseClient; |
||||
/** |
||||
* 库存品管理 商城客户查询列表 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入distributionStockList") |
||||
public R<IPage<DistributionStockListVO>> page(@ApiIgnore @RequestParam Map<String, Object> distributionStockList, Query query) { |
||||
IPage<DistributionStockListVO> pages = distributionStockListService.pageClient(Condition.getPage(query), distributionStockList); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@GetMapping("/export-stock") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "导出在库库存品数据") |
||||
public void exportStock(@ApiIgnore @RequestParam Map<String, Object> distributionStockList, BladeUser bladeUser, HttpServletResponse response) { |
||||
|
||||
List<DistributionStockListExcel> list = distributionStockListService.exportStock(distributionStockList); |
||||
ExcelUtil.export(response, "商场库存品管理数据" + DateUtil.time(), "商场库存品管理数据表", list, DistributionStockListExcel.class); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue