
9 changed files with 351 additions and 5 deletions
@ -0,0 +1,75 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.supervise.customer.biz.gdinstorage; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.EntityWithId; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt_supervise <br/> |
|||
* File: GdInstorage.java <br/> |
|||
* Class: com.yxt.supervise.portal.biz.gdinstorage.GdInstorage <br/> |
|||
* Description: <描述类的功能>. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022/12/3 0:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@TableName("gd_instorage") |
|||
public class GdInstorage extends EntityWithId { |
|||
|
|||
private String cola0; // 企业组织机构代码证
|
|||
private String colb1; // 仓库/门店编号
|
|||
private String colc2; // 仓库/门店名称
|
|||
private String cold3; // 入库时间
|
|||
private String colex; // 供应商编号
|
|||
private String cole4; // 供应商名称
|
|||
private String colf5; // 单据号
|
|||
private String colg6; // 单据类型
|
|||
private String colh7; // 货号
|
|||
private String coli8; // 商品名称
|
|||
private String colj9; // 商品生产日期
|
|||
private String colk10; // 商品保质期
|
|||
private String coll11; // 商品规格
|
|||
private String colm12; // 类别编号
|
|||
private String coln13; // 类别名称
|
|||
private String colo14; // 一级类别名称
|
|||
private String colp15; // 二级类别名称
|
|||
private String colq16; // 入库金额
|
|||
private String colr17; // 入库数量
|
|||
private String cols18; // 成本金额
|
|||
private String colt19; // 成本税额
|
|||
private String colu20; // 不含税成本
|
|||
private String colv21; // 进项税率
|
|||
private String orderDate; // 单据日期
|
|||
private String supplierCodeUnified; // 供货商编码统一
|
|||
private String inOrderNo; // 入库定单号
|
|||
} |
@ -0,0 +1,58 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.supervise.customer.biz.gdinstorage; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import org.apache.ibatis.annotations.Delete; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
/** |
|||
* Project: yxt_supervise <br/> |
|||
* File: GdInstorageMapper.java <br/> |
|||
* Class: com.yxt.supervise.portal.biz.gdinstorage.GdInstorageMapper <br/> |
|||
* Description: <描述类的功能>. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022/12/3 1:02 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface GdInstorageMapper extends BaseMapper<GdInstorage> { |
|||
|
|||
@Delete("delete from gd_instorage where orderDate=#{orderDate} ") |
|||
void clearByOrderDate(@Param("orderDate") String orderDate); |
|||
|
|||
@Select("select CONVERT(IFNULL(sum(colq16),0),DECIMAL(12,2)) as amount from gd_instorage where orderDate=#{orderDate}") |
|||
double amountOfDay(@Param("orderDate") String orderDate); |
|||
|
|||
@Select("select CONVERT(IFNULL(sum(colq16),0),DECIMAL(12,2)) as amount from gd_instorage where supplierCodeUnified=#{supplierCodeUnified}") |
|||
double amountOfSupplier(@Param("supplierCodeUnified") String supplierOnlyCode); |
|||
} |
@ -0,0 +1,58 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0/ = /0 * |
|||
* ___/`---'/___ * |
|||
* .' /| |// '. *
|
|||
* / /||| : |||// / *
|
|||
* / _||||| -:- |||||- / * |
|||
* | | // - /// | | *
|
|||
* | /_| ''/---/'' |_/ | * |
|||
* / .-/__ '-' ___/-. / * |
|||
* ___'. .' /--.--/ `. .'___ * |
|||
* ."" '< `.___/_<|>_/___.' >' "". * |
|||
* | | : `- /`.;`/ _ /`;.`/ - ` : | | * |
|||
* / / `_. /_ __/ /__ _/ .-` / / * |
|||
* =====`-.____`.___ /_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.supervise.customer.biz.gdinstorage; |
|||
|
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt_supervise <br/> |
|||
* File: GdInstorageRest.java <br/> |
|||
* Class: com.yxt.supervise.portal.biz.gdinstorage.GdInstorageRest <br/> |
|||
* Description: <描述类的功能>. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022/12/3 1:08 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@RestController("com.yxt.supervise.portal.biz.gdinstorage.GdInstorageRest") |
|||
@RequestMapping("/ruku") |
|||
public class GdInstorageRest { |
|||
|
|||
@Autowired |
|||
private GdInstorageService gdInstorageService; |
|||
|
|||
} |
@ -0,0 +1,85 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.supervise.customer.biz.gdinstorage; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import com.yxt.common.base.config.component.FileUploadComponent; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* Project: yxt_supervise <br/> |
|||
* File: GdInstorageService.java <br/> |
|||
* Class: com.yxt.supervise.portal.biz.gdinstorage.GdInstorageService <br/> |
|||
* Description: <描述类的功能>. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022/12/3 1:02 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class GdInstorageService extends ServiceImpl<GdInstorageMapper, GdInstorage> { |
|||
|
|||
@Autowired |
|||
private FileUploadComponent fileUploadComponent; |
|||
|
|||
public PagerVo<GdInstorage> listPageVo(PagerQuery<GdRukuQuery> pq) { |
|||
|
|||
GdRukuQuery query = pq.getParams(); |
|||
QueryWrapper<GdInstorage> qw = new QueryWrapper<>(); |
|||
qw.orderByDesc("orderDate"); |
|||
IPage<GdInstorage> page = PagerUtil.queryToPage(pq); |
|||
IPage<GdInstorage> pagging = baseMapper.selectPage(page, qw); |
|||
PagerVo<GdInstorage> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void clearByOrderDate(String orderDate) { |
|||
baseMapper.clearByOrderDate(orderDate); |
|||
} |
|||
|
|||
/** |
|||
* 112仓某一天的入库金额 |
|||
* |
|||
* @param orderDate |
|||
* @return |
|||
*/ |
|||
public double amountOfDay(String orderDate) { |
|||
return baseMapper.amountOfDay(orderDate); |
|||
} |
|||
|
|||
public double amountOfSupplier(String supplierOnlyCode) { |
|||
return baseMapper.amountOfSupplier(supplierOnlyCode); |
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.supervise.customer.biz.gdinstorage; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt_supervise <br/> |
|||
* File: GdRukuQuery.java <br/> |
|||
* Class: com.yxt.supervise.portal.biz.gdinstorage.GdRukuQuery <br/> |
|||
* Description: <描述类的功能>. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022/12/10 21:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
public class GdRukuQuery implements Query { |
|||
private String orderDate; |
|||
} |
Loading…
Reference in new issue