|
@@ -50,7 +50,7 @@ public class CostIncomeFileServiceImpl extends ServiceImpl<CostIncomeFileMapper,
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public CostIncomeFile saveCostIncomeFile(List<List<Object>> list, User user, MultipartFile file, Long hospId, List<IncomeErrorMessage> incomeErrorMessageList, String uploadFile,Integer fileType) {
|
|
|
+ public CostIncomeFile saveCostIncomeFile(List<List<Object>> list, User user, MultipartFile file, Long hospId, List<IncomeErrorMessage> incomeErrorMessageList, String uploadFile,Integer fileType,Integer year,Integer month) {
|
|
|
CostIncomeFile costIncomeFile = new CostIncomeFile();
|
|
|
|
|
|
String substring = file.getOriginalFilename().substring(0, file.getOriginalFilename().lastIndexOf("."))+System.currentTimeMillis()+".xsl";
|
|
@@ -75,6 +75,8 @@ public class CostIncomeFileServiceImpl extends ServiceImpl<CostIncomeFileMapper,
|
|
|
costIncomeFile.setHospId(hospId);
|
|
|
costIncomeFile.setUserName(user.getName());
|
|
|
costIncomeFile.setUserId(user.getId());
|
|
|
+ costIncomeFile.setDateYear(year);
|
|
|
+ costIncomeFile.setDateMonth(month);
|
|
|
costIncomeFile.setCreateTime(System.currentTimeMillis());
|
|
|
this.save(costIncomeFile);
|
|
|
return costIncomeFile;
|
|
@@ -103,6 +105,7 @@ public class CostIncomeFileServiceImpl extends ServiceImpl<CostIncomeFileMapper,
|
|
|
}
|
|
|
i.setDateTime(DateUtil.format(DateUtil.date(i.getCreateTime()),"yyyy-MM-dd"));
|
|
|
});
|
|
|
+
|
|
|
PageUtils pageUtils = new PageUtils(page);
|
|
|
pageUtils.setList(costIncomeFileVOList);
|
|
|
return pageUtils;
|