|
@@ -126,7 +126,7 @@ public class BusinessOpportunityServiceImpl extends ServiceImpl<BusinessOpportun
|
|
|
}
|
|
|
businessOpportunity.setTaskList(tasks);
|
|
|
// List<BusinessItemProduct> businessItemProducts = bipMapper.selectList(new QueryWrapper<BusinessItemProduct>().eq("business_id", bo.getId()));
|
|
|
- List<BusinessItemProduct> businessItemProducts = bipMapper.getUnDelBIPListByBId(bo.getId());
|
|
|
+ List<BusinessItemProduct> businessItemProducts = bipMapper.getUnDelBIPListByBIdInfo(bo.getId());
|
|
|
if (businessItemProducts.size() > 0) {
|
|
|
|
|
|
List<Integer> productIds = businessItemProducts.stream()
|
|
@@ -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);
|
|
|
}
|
|
|
}
|