2018年10月

Swiper使用方法 - Swiper中文网
API文档

结构

<div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide">Slide 1</div>
        <div class="swiper-slide">Slide 2</div>
        <div class="swiper-slide">Slide 3</div>
    </div>
    <!-- 如果需要分页器 -->
    <div class="swiper-pagination"></div>
    
    <!-- 如果需要导航按钮 -->
    <div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div>
    
    <!-- 如果需要滚动条 -->
    <div class="swiper-scrollbar"></div>
</div>
导航等组件可以放在container之外

统计出口分布

---所有分布
use oa 
select tradeCountry as 国家,SUM(usdMoney) 美元,SUM(rmbMoney) as 人民币 from az_entry_bill where dDate between '20170101' and '20170930'  group by tradeCountry
---美国占比
select SUM(CASE WHEN tradeCountry ='美国' then rmbMoney else 0 end)/SUM(rmbMoney) as 美国占比 from az_entry_bill where dDate between '20170101' and '20170930'  

到货单列表

use UFDATA_003_2018

Select * From pu_ArrHead where ddate >= N'2018-10-01' and   ddate <= N'2018-10-26' and cmaker='杜玉君' order by id asc

Select * From pu_ArrHead with(nolock) inner join pu_ArrBody with(nolock) on pu_ArrHead.id=pu_ArrBody.id  Where 1=1  And ( 1=1   And ((cInvCode >= N'20100002') And (cInvCode <= N'20100002')) And ((ddate >= N'2018-10-01') And (ddate <= N'2018-10-26'))) order by pu_ArrHead.id asc

select * from RdRecord01 inner join rdrecords01 on rdrecord01.ID=rdrecords01.ID Where 1=1  And ( 1=1   And ((cInvCode >= N'20100002') And (cInvCode <= N'20100002')) And ((ddate >= N'2018-10-01') And (ddate <= N'2018-10-26'))) order by ipurarriveid asc

问题背景

  • 项目上传的文件目录为 /upload/
  • 路由有个控制器路径也是/upload/
    悲剧就出现了,怎么访问都是报错,明明文件有啊,怎么找都不行,最后突然灵机一动改了路由测试一下,
    访问报错
    改了路由
    访问成功

    项目结构和路由

    项目结构 路由

    反思

    在整个过程中我也尝试看看有没有路由问题,就是没测试改一下看看,主要是我本地机器访问正常,这个太坑了,其实这是一个很基础的问题,路由的路径一定不能和存在的文件和目录重名,这个是经验也是教训