
7 changed files with 243 additions and 6 deletions
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.supervise.report.ds.supplychain; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
|||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.EntityWithId; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
/** |
|||
* Project: yxt_supervise <br/> |
|||
* File: GdInventoryOk.java <br/> |
|||
* Class: com.yxt.supervise.portal.biz.gdinventory.GdInventoryOk <br/> |
|||
* Description: <描述类的功能>. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022/11/30 20:17 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Getter |
|||
@Setter |
|||
@EqualsAndHashCode |
|||
//@ContentRowHeight(10)
|
|||
//@HeadRowHeight(20)
|
|||
@ColumnWidth(15) |
|||
public class GdInventory2Excel { |
|||
@ExcelProperty("门店编号") |
|||
private String warehouseCode; // 仓库/门店编号
|
|||
|
|||
@ColumnWidth(20) |
|||
@ExcelProperty("门店名称") |
|||
private String warehouseName; // 仓库/门店名称
|
|||
@ExcelProperty("商品编码") |
|||
private String prodCode; // 商品编码
|
|||
@ExcelProperty("商品条码") |
|||
private String prodBarCode; // 商品条码
|
|||
|
|||
@ColumnWidth(30) |
|||
@ExcelProperty("商品名称") |
|||
private String prodName; // 商品名称
|
|||
@ExcelProperty("商品数量") |
|||
private int prodNum; // 商品数量
|
|||
@ExcelProperty("商品货值") |
|||
private double prodValue; // 商品货值
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.supervise.report.ds.supplychain; |
|||
|
|||
import com.baomidou.dynamic.datasource.annotation.DS; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
import java.util.List; |
|||
|
|||
@DS("supplychain") |
|||
@Mapper |
|||
public interface GdInventoryMapper extends BaseMapper<GdInventoryOk> { |
|||
|
|||
@Select("select warehouseCode, warehouseName, prodCode, prodBarCode, prodName, prodNum, prodValue " + |
|||
"from gd_inventory_ok " + |
|||
"where warehouseType=2 " + |
|||
"order by warehouseCode ") |
|||
List<GdInventory2Excel> xlsxInventoryOk(); |
|||
|
|||
@Select("select warehouseCode, warehouseName, prodCode, prodBarCode, prodName, prodNum, prodValue " + |
|||
"from gd_inventory_yc " + |
|||
"where warehouseType=2 " + |
|||
"order by warehouseCode ") |
|||
List<GdInventory2Excel> xlsxInventoryYc(); |
|||
} |
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.supervise.report.ds.supplychain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.EntityWithId; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt_supervise <br/> |
|||
* File: GdInventoryOk.java <br/> |
|||
* Class: com.yxt.supervise.portal.biz.gdinventory.GdInventoryOk <br/> |
|||
* Description: <描述类的功能>. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022/11/30 20:17 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@TableName("gd_inventory_ok") |
|||
public class GdInventoryOk extends EntityWithId { |
|||
private String orgCode; // 企业组织机构代码证
|
|||
private String warehouseCode; // 仓库/门店编号
|
|||
private String warehouseName; // 仓库/门店名称
|
|||
private String prodCode; // 商品编码
|
|||
private String prodBarCode; // 商品条码
|
|||
private String prodName; // 商品名称
|
|||
private int warehouseType; // 仓库类型
|
|||
private int prodNum; // 商品数量
|
|||
private double prodValue; // 商品货值
|
|||
private String suppliderName; // 供应商
|
|||
private String datadate; // 数据日期
|
|||
private String typeCode; // 类别编号
|
|||
private String typeName; // 类别名称
|
|||
private String typeOne; // 一级类别名称
|
|||
private String typeTwo; // 二级类别名称
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.yxt.supervise.report.scheduling; |
|||
|
|||
import com.yxt.supervise.report.biz.reportinventory.ReportInventoryService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.scheduling.annotation.Scheduled; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
public class InventoryTask { |
|||
|
|||
@Autowired |
|||
private ReportInventoryService reportInventoryService; |
|||
|
|||
@Scheduled(cron = "0 0 23 * * ?") |
|||
public void kctj_mdspkc() { |
|||
reportInventoryService.xlsxMdspkc(); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue