任务描述
需求描述
需求背景:为了方便销售查看修改前后的资料,增加显示
需求实现:
在通用队列页面增加一个新的按钮,查看资料变化

点击后页面显示上传前后的资料,展示效果(只显示有修改的)

验收标准
暂无
需求背景:为了方便销售查看修改前后的资料,增加显示
需求实现:
在通用队列页面增加一个新的按钮,查看资料变化

点击后页面显示上传前后的资料,展示效果(只显示有修改的)

| 所属迭代 | 智能中心-智能刊登迭代 |
|---|---|
| 所属模块 | 智能中心-需求池 战略独立项目 智能刊登 |
| 相关需求 | 通用上架队列增加修改前后的资料对比 |
| 指派给 | 罗友军 于 2025-03-28 19:01:16 |
| 任务类型 | 后端 |
| 任务标签 | 初始 |
| 开发组 | |
| 任务状态 | 已完成 |
| 进度 | 100% |
| 优先级 | P2 |
| 关键词 | |
| 抄送给 |
| 由谁创建 | 罗友军 于 2025-03-24 11:16:21 |
|---|---|
| 由谁完成 | 钟国泽 于 2025-03-28 18:25:12 |
| 由谁取消 | 暂无 |
| 由谁关闭 | 暂无 |
| 关闭原因 | 暂无 |
| 最后编辑 | 梁秀丽 于 2025-04-07 11:42:14 |
| 团队 | 最初预计 | 总计消耗 | 预计剩余 |
|---|
| 最初预计 | 12工时 |
|---|---|
| 总计消耗 | 17工时 |
| 预计剩余 | 0工时 |
| 预计开始 | 2025-03-24 |
| 实际开始 | 2025-03-28 |
| 截止日期 | 2025-03-28 |
新增接口
/// <summary>
/// 获取数据修改前和修改后的资料
/// </summary>
/// <param name="inputs"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
public async Task<ReturnedDataView> GetInformationDifferent(List<GetInformationDifferent_InputModel> inputs)
{
//根据id查询指定数据
List<GetInformationDifferent_ViewModel> list = new List<GetInformationDifferent_ViewModel>();
var ids = inputs.Select(o => o.Id).ToList();
var aq_AmazonCommonQueue = await _aq_AmazonCommon_EsRepository.SearchAsyncById(ids);
//如果数据为空
if (aq_AmazonCommonQueue == null || aq_AmazonCommonQueue.Count() <= 0)
{
return ResultModel.ToResult(list);
}
//循环组装数据
foreach (var aq in aq_AmazonCommonQueue)
{
GetInformationDifferent_ViewModel different_ViewModel = new GetInformationDifferent_ViewModel()
{
Id = aq.Id,
OriginalTitle = aq.OriginalTitle,
OriginalKeyWord = aq.OriginalKeyWord,
OriginalProductDesc = aq.OriginalProductDesc,
OriginalBulletPoints = aq.OriginalBulletPoints,
};
var attrubutes = JsonHelper.ToObj<List<AttrubuteBase>>(aq.Attrubute);
List<string> bulletPoints = new List<string>();
foreach (var item in attrubutes)
{
if (item.AttributeFieldName == "item_name")
{
different_ViewModel.Title = item.AttributeValue;
}
if (item.AttributeFieldName == "generic_keywords")
{
different_ViewModel.KeyWord = item.AttributeValue;
}
if (item.AttributeFieldName == "product_description")
{
different_ViewModel.ProductDesc = item.AttributeValue;
}
if (item.AttributeFieldName.Contains("bullet_point"))
{
bulletPoints.Add(item.AttributeValue);
}
}
different_ViewModel.BulletPoints = bulletPoints;
list.Add(different_ViewModel);
}
return ResultModel.ToResult(list);
}
项目:ZhcxkjRiskWorker