|
@@ -468,6 +468,7 @@ public class BusinessOpportunityServiceImpl extends ServiceImpl<BusinessOpportun
|
|
|
public HttpRespMsg importData(MultipartFile multipartFile) {
|
|
|
System.out.println("=====开始进行商机导入=====");
|
|
|
HttpRespMsg msg=new HttpRespMsg();
|
|
|
+ String str = getString();
|
|
|
if(!multipartFile.getOriginalFilename().endsWith(".xlsx")){
|
|
|
msg.setError("文件格式错误,请使用.xlsx格式的Excel文件进行导入");
|
|
|
return msg;
|
|
@@ -697,10 +698,11 @@ public class BusinessOpportunityServiceImpl extends ServiceImpl<BusinessOpportun
|
|
|
// List<ActionLog> ads = new ArrayList<>();
|
|
|
for (BusinessOpportunity bo : importProductList) {
|
|
|
ActionLog actionLog = new ActionLog();
|
|
|
- actionLog.setName("新增了商机");
|
|
|
+ actionLog.setName("新增了"+str);
|
|
|
actionLog.setItemId(bo.getId());
|
|
|
actionLog.setCode("business");
|
|
|
actionLog.setUserId(user.getId());
|
|
|
+ actionLog.setCreatTime(new Date());
|
|
|
actionLogMapper.insert(actionLog);
|
|
|
}
|
|
|
}
|