@ -113,7 +113,7 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
// 供应商到货汇总表
writer . setSheet ( 0 ) ;
writer . writeCellValue ( 0 , 1 , "编号:gysdhhzb" + dfmt1 ) ;
writer . writeCellValue ( 2 , 1 , "上报时间:" + dfmt2 ) ;
writer . writeCellValue ( 2 , 1 , "上报时间:" + dfmt + " 11:00" ) ;
List < Map < String , Object > > list1 = baseMapper . gysdhhzb ( ) ;
if ( list1 = = null | | list1 . isEmpty ( ) )
return rb . setMsg ( "供应商到货汇总表 数据为空!" ) ;
@ -144,7 +144,7 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
// 商品到货明细表
writer . setSheet ( 1 ) ;
writer . writeCellValue ( 0 , 1 , "编号:spdhmxb" + dfmt1 ) ;
writer . writeCellValue ( 2 , 1 , "上报时间:" + dfmt2 ) ;
writer . writeCellValue ( 2 , 1 , "上报时间:" + dfmt ) ;
List < Map < String , Object > > list2 = baseMapper . spdhmxb ( ) ;
if ( list2 = = null | | list2 . isEmpty ( ) )
return rb . setMsg ( "商品到货明细表 数据为空!" ) ;
@ -184,7 +184,7 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
// 订单明细表
writer . setSheet ( 2 ) ;
writer . writeCellValue ( 0 , 1 , "编号:ddmxb" + dfmt1 ) ;
writer . writeCellValue ( 2 , 1 , "数据 时间:" + dfmt ) ;
writer . writeCellValue ( 4 , 1 , "上报 时间:" + dfmt ) ;
List < Map < String , Object > > list3 = baseMapper . ddmxb ( ) ;
if ( list3 = = null | | list3 . isEmpty ( ) )
return rb . setMsg ( "订单明细表 数据为空!" ) ;
@ -209,7 +209,7 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
// 烟草商品到货明细表
writer . setSheet ( 3 ) ;
writer . writeCellValue ( 0 , 1 , "编号:ycspdhmxb" + dfmt1 ) ;
writer . writeCellValue ( 4 , 1 , "上报时间:" + dfmt2 ) ;
writer . writeCellValue ( 4 , 1 , "上报时间:" + dfmt ) ;
List < Map < String , Object > > list4 = baseMapper . ycspdhmxb ( ) ;
if ( list4 ! = null & & ! list4 . isEmpty ( ) ) {
int size4 = list4 . size ( ) ;
@ -218,15 +218,15 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
for ( int y = 3 ; y < countRow4 ; y + + ) {
Map < String , Object > map = list4 . get ( y - 3 ) ;
writer . writeCellValue ( 0 , y , "市烟草" ) ;
writer . writeCellValue ( 1 , y , map . get ( "xsqd " ) ) ;
writer . writeCellValue ( 1 , y , map . get ( "storeName " ) ) ;
writer . writeCellValue ( 2 , y , map . get ( "ddspjz" ) ) ;
ccddspjz = ccddspjz + ExcelTool . toDouble ( map . get ( "ddspjz" ) ) ;
writer . writeCellValue ( 3 , y , map . get ( "sjdhjz " ) ) ;
cccolq16 = cccolq16 + ExcelTool . toDouble ( map . get ( "sjdhjz " ) ) ;
writer . writeCellValue ( 4 , y , map . get ( "zthjz " ) ) ;
ccztprodValue1 = ccztprodValue1 + ExcelTool . toDouble ( map . get ( "zthjz " ) ) ;
writer . writeCellValue ( 5 , y , map . get ( "cchj z" ) ) ;
ccztprodValue2 = ccztprodValue2 + ExcelTool . toDouble ( map . get ( "cchj z" ) ) ;
writer . writeCellValue ( 3 , y , map . get ( "colq16 " ) ) ;
cccolq16 = cccolq16 + ExcelTool . toDouble ( map . get ( "colq16 " ) ) ;
writer . writeCellValue ( 4 , y , map . get ( "ztprodValue1 " ) ) ;
ccztprodValue1 = ccztprodValue1 + ExcelTool . toDouble ( map . get ( "ztprodValue1 " ) ) ;
writer . writeCellValue ( 5 , y , map . get ( "ztprodValue2 " ) ) ;
ccztprodValue2 = ccztprodValue2 + ExcelTool . toDouble ( map . get ( "ztprodValue2 " ) ) ;
}
writer . writeCellValue ( 1 , countRow4 , "合计" ) ;
writer . writeCellValue ( 2 , countRow4 , ccddspjz ) ;
@ -238,7 +238,7 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
// 烟草订单明细表
writer . setSheet ( 4 ) ;
writer . writeCellValue ( 0 , 1 , "编号:ycddmxb" + dfmt1 ) ;
writer . writeCellValue ( 7 , 1 , "数据 时间:" + dfmt ) ;
writer . writeCellValue ( 7 , 1 , "上报 时间:" + dfmt ) ;
List < Map < String , Object > > list5 = baseMapper . ycddmxb ( ) ;
if ( list5 ! = null & & ! list5 . isEmpty ( ) ) {
int size5 = list5 . size ( ) ;
@ -255,7 +255,7 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
writer . writeCellValue ( 4 , y , map . get ( "ddje" ) ) ;
cPrice = cPrice + ExcelTool . toDouble ( map . get ( "ddje" ) ) ;
writer . writeCellValue ( 5 , y , map . get ( "purchasedate" ) ) ;
writer . writeCellValue ( 6 , y , map . get ( "arrivalD ate" ) ) ;
writer . writeCellValue ( 6 , y , map . get ( "arrivald ate" ) ) ;
writer . writeCellValue ( 7 , y , map . get ( "dddhjz" ) ) ;
cghje = cghje + ExcelTool . toDouble ( map . get ( "dddhjz" ) ) ;
writer . writeCellValue ( 8 , y , map . get ( "zthjz" ) ) ;
@ -285,9 +285,9 @@ public class GdInstorageCountService extends ServiceImpl<GdInstorageCountMapper,
public double amountZaituYc ( ) {
double wdhjz = 0 ;
List < Map < String , Object > > list = baseMapper . ycdd mxb ( ) ;
List < Map < String , Object > > list = baseMapper . ycspdh mxb ( ) ;
for ( Map < String , Object > map : list ) {
wdhjz = wdhjz + ExcelTool . toDouble ( map . get ( "zthjz " ) ) ;
wdhjz = wdhjz + ExcelTool . toDouble ( map . get ( "ztprodValue1 " ) ) ;
}
return wdhjz ;
}