选品广场接口
This commit is contained in:
parent
fb6e657848
commit
4d42753847
|
|
@ -129,10 +129,18 @@ public class CustomerSelectionController extends BaseController
|
|||
}else {
|
||||
workId = workList.get(0).getWorkerId();
|
||||
}
|
||||
// 判断是否有历史数据 - 有则删除
|
||||
customerSelection.getDeptCategoryIds().forEach(selection->{
|
||||
customerSelection.setWorkId(workId);
|
||||
customerSelection.setDeptCategoryId(selection);
|
||||
customerSelectionService.insertCustomerSelection(customerSelection);
|
||||
CustomerSelection param = new CustomerSelection();
|
||||
param.setDeptCategoryId(selection);
|
||||
param.setSelectionType(customerSelection.getSelectionType());
|
||||
param.setCustomerId(customerSelection.getCustomerId());
|
||||
List<CustomerSelection> customerSelections = customerSelectionService.selectCustomerSelectionList(param);
|
||||
if(CollectionUtils.isEmpty(customerSelections)){
|
||||
customerSelectionService.insertCustomerSelection(customerSelection);
|
||||
}
|
||||
});
|
||||
return AjaxResult.success("新增成功");
|
||||
}catch (Exception e){
|
||||
|
|
|
|||
Loading…
Reference in New Issue