|
@@ -44,10 +44,21 @@ public class DbStatisticsController extends BaseController {
|
|
|
//入库集合
|
|
//入库集合
|
|
|
bo.setType(1);
|
|
bo.setType(1);
|
|
|
List<DbInOutRecordVo> inList = dbInOutRecordService.selectInOutListCount(bo);
|
|
List<DbInOutRecordVo> inList = dbInOutRecordService.selectInOutListCount(bo);
|
|
|
|
|
+ if(inList!=null && inList.size()>0){
|
|
|
|
|
+ for (DbInOutRecordVo vo:inList) {
|
|
|
|
|
+ vo.setRecordMonth(Integer.valueOf(vo.getYearMonth().split("-")[1]) + "月");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//出库集合
|
|
//出库集合
|
|
|
bo.setType(2);
|
|
bo.setType(2);
|
|
|
List<DbInOutRecordVo> outList = dbInOutRecordService.selectInOutListCount(bo);
|
|
List<DbInOutRecordVo> outList = dbInOutRecordService.selectInOutListCount(bo);
|
|
|
|
|
+ if(outList!=null && outList.size()>0){
|
|
|
|
|
+ for (DbInOutRecordVo vo:outList) {
|
|
|
|
|
+ vo.setRecordMonth(Integer.valueOf(vo.getYearMonth().split("-")[1]) + "月");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
map.put("inList",inList);
|
|
map.put("inList",inList);
|
|
|
map.put("outList",outList);
|
|
map.put("outList",outList);
|
|
@@ -99,4 +110,9 @@ public class DbStatisticsController extends BaseController {
|
|
|
return ResultData.success(list);
|
|
return ResultData.success(list);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
|
+ String[] str = "01月".split("月");
|
|
|
|
|
+ System.out.println(Integer.valueOf(str[0]));
|
|
|
|
|
+ System.out.println(str[0]+"||"+str[0]);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|