
30 changed files with 960 additions and 41 deletions
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.supervise.crm.api.loanbankinformation; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:04 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "贷款银行信息", description = "贷款银行信息") |
||||
|
@TableName("loan_bank_information") |
||||
|
public class LoanBankInformation extends BaseEntity { |
||||
|
@ApiModelProperty("银行名称") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("银行简称") |
||||
|
private String bankAbbreviation; |
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; |
||||
|
@ApiModelProperty("省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("区") |
||||
|
private String county; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; |
||||
|
@ApiModelProperty("上级sid") |
||||
|
private String pSid; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.supervise.crm.api.loanbankinformation; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:07 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "贷款银行信息 视图数据详情", description = "贷款银行信息 视图数据详情") |
||||
|
public class LoanBankInformationDetailsVo implements Vo { |
||||
|
@ApiModelProperty("id") |
||||
|
private Integer id; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("银行名称") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("银行简称") |
||||
|
private String bankAbbreviation; |
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; |
||||
|
@ApiModelProperty("省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("区") |
||||
|
private String county; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; |
||||
|
@ApiModelProperty("上级sid") |
||||
|
private String pSid; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.supervise.crm.api.loanbankinformation; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:07 |
||||
|
*/ |
||||
|
@ApiModel(value = "贷款银行信息 数据传输对象", description = "贷款银行信息 数据传输对象") |
||||
|
@Data |
||||
|
public class LoanBankInformationDto implements Dto { |
||||
|
@ApiModelProperty("id") |
||||
|
private Integer id; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("银行名称") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("银行简称") |
||||
|
private String bankAbbreviation; |
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; |
||||
|
@ApiModelProperty("省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("区") |
||||
|
private String county; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; |
||||
|
@ApiModelProperty("上级sid") |
||||
|
private String pSid; |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.supervise.crm.api.loanbankinformation; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationFeignFallback; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationQuery; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:08 |
||||
|
*/ |
||||
|
@Api(tags = "贷款银行信息") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-crm-LoanBankInformation", |
||||
|
name = "supervise-crm", |
||||
|
path = "v1/loanbankinformation", |
||||
|
fallback = LoanBankInformationFeignFallback.class) |
||||
|
public interface LoanBankInformationFeign { |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanBankInformationVo>> listPage(@RequestBody PagerQuery<LoanBankInformationQuery> pq); |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.yxt.supervise.crm.api.loanbankinformation; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationQuery; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:08 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class LoanBankInformationFeignFallback implements LoanBankInformationFeign{ |
||||
|
@Override |
||||
|
public ResultBean<PagerVo<LoanBankInformationVo>> listPage(PagerQuery<LoanBankInformationQuery> pq) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.supervise.crm.api.loanbankinformation; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:08 |
||||
|
*/ |
||||
|
@ApiModel(value = "贷款银行信息 查询条件", description = "贷款银行信息 查询条件") |
||||
|
@Data |
||||
|
public class LoanBankInformationQuery implements Query { |
||||
|
@ApiModelProperty("id") |
||||
|
private Integer id; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("银行名称") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("银行简称") |
||||
|
private String bankAbbreviation; |
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; |
||||
|
@ApiModelProperty("省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("区") |
||||
|
private String county; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; |
||||
|
@ApiModelProperty("上级sid") |
||||
|
private String pSid; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.supervise.crm.api.loanbankinformation; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:08 |
||||
|
*/ |
||||
|
@ApiModel(value = "贷款银行信息 视图数据对象", description = "贷款银行信息 视图数据对象") |
||||
|
@Data |
||||
|
public class LoanBankInformationVo implements Vo { |
||||
|
@ApiModelProperty("id") |
||||
|
private Integer id; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("银行名称") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("银行简称") |
||||
|
private String bankAbbreviation; |
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; |
||||
|
@ApiModelProperty("省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("区") |
||||
|
private String county; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; |
||||
|
@ApiModelProperty("上级sid") |
||||
|
private String pSid; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.supervise.crm.biz.loanbankinformation; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.supervise.crm.api.crmcustomertemp.CrmCustomerTemp; |
||||
|
import com.yxt.supervise.crm.api.crmcustomertemp.CrmCustomerTempVo; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformation; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:14 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface LoanBankInformationMapper extends BaseMapper<LoanBankInformation> { |
||||
|
IPage<LoanBankInformationVo> selectPageVo(IPage<LoanBankInformation> page, @Param(Constants.WRAPPER) Wrapper<LoanBankInformation> qw); |
||||
|
LoanBankInformationVo getBankInformation( @Param("sid") String sid); |
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.crm.biz.loanbankinformation.LoanBankInformationMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationVo"> |
||||
|
SELECT * |
||||
|
FROM loan_bank_information |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
<!--根据客户的微信号以及当前登录者所在部门的sid和登录者所关联的员工sid查询--> |
||||
|
<select id="getBankInformation" resultType="com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationVo"> |
||||
|
SELECT * |
||||
|
FROM loan_bank_information |
||||
|
WHERE sid=#{sid} |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,54 @@ |
|||||
|
package com.yxt.supervise.crm.biz.loanbankinformation; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:14 |
||||
|
*/ |
||||
|
@Api(tags = "贷款银行信息") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/loanbankinformation") |
||||
|
public class LoanBankInformationRest implements LoanBankInformationFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
LoanBankInformationService loanBankInformationService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanBankInformationVo>> listPage(@RequestBody PagerQuery<LoanBankInformationQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<LoanBankInformationVo> pv = loanBankInformationService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody LoanBankInformationDto dto) { |
||||
|
return loanBankInformationService.save(dto); |
||||
|
} |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/update") |
||||
|
public ResultBean update(@RequestBody LoanBankInformationDto dto) { |
||||
|
return loanBankInformationService.update(dto); |
||||
|
} |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@GetMapping("/getBankInfBySid/{sid}") |
||||
|
public ResultBean getBankInformation(@PathVariable String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
LoanBankInformationVo loanBankInformationVo=loanBankInformationService.getBankInformation(sid); |
||||
|
return rb.success().setData(loanBankInformationVo); |
||||
|
} |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@DeleteMapping("/delete/{sid}") |
||||
|
public ResultBean delete(@PathVariable String sid) { |
||||
|
return loanBankInformationService.delete(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
package com.yxt.supervise.crm.biz.loanbankinformation; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformation; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationDto; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationQuery; |
||||
|
import com.yxt.supervise.crm.api.loanbankinformation.LoanBankInformationVo; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:14 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class LoanBankInformationService extends MybatisBaseService<LoanBankInformationMapper, LoanBankInformation> { |
||||
|
public PagerVo<LoanBankInformationVo> listPageVo(PagerQuery<LoanBankInformationQuery> pq) { |
||||
|
LoanBankInformationQuery query = pq.getParams(); |
||||
|
QueryWrapper<LoanBankInformation> qw = new QueryWrapper<>(); |
||||
|
if(StringUtils.isNotBlank(query.getBankName())){ |
||||
|
qw.like("bankName",query.getBankName()); |
||||
|
} |
||||
|
if(StringUtils.isNotBlank(query.getTelephone())){ |
||||
|
qw.like("telephone",query.getTelephone()); |
||||
|
} |
||||
|
|
||||
|
IPage<LoanBankInformation> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<LoanBankInformationVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<LoanBankInformationVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
public ResultBean save(LoanBankInformationDto dto) { |
||||
|
ResultBean rb=new ResultBean(); |
||||
|
if(dto.getPSid().equals("")){ |
||||
|
dto.setSid("0"); |
||||
|
} |
||||
|
LoanBankInformation entity=new LoanBankInformation(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
return rb.success().setMsg("修改模板信息成功"); |
||||
|
} |
||||
|
public ResultBean update(LoanBankInformationDto dto) { |
||||
|
ResultBean rb=new ResultBean(); |
||||
|
LoanBankInformation entity=new LoanBankInformation(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
return rb.success().setMsg("修改模板信息成功"); |
||||
|
} |
||||
|
public LoanBankInformationVo getBankInformation(String sid){ |
||||
|
|
||||
|
return baseMapper.getBankInformation(sid); |
||||
|
} |
||||
|
public ResultBean delete(String sid) { |
||||
|
ResultBean rb=new ResultBean(); |
||||
|
baseMapper.delete(new QueryWrapper<LoanBankInformation>().eq("sid",sid)); |
||||
|
return rb.success().setMsg("修改模板信息成功"); |
||||
|
} |
||||
|
} |
@ -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; |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
package com.yxt.supervise.portal.api.wechattemplate; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/10 18:23 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class content { |
||||
|
private String key; |
||||
|
private String value; |
||||
|
} |
Loading…
Reference in new issue