This commit is contained in:
parent
57f9910b13
commit
134f759589
|
|
@ -840,7 +840,8 @@ namespace BLL
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(item.RdpId) && !string.IsNullOrWhiteSpace(item.fileid))
|
if (!string.IsNullOrWhiteSpace(item.RdpId) && !string.IsNullOrWhiteSpace(item.fileid))
|
||||||
{
|
{
|
||||||
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.StockId == item.RdpId && x.ThirdId == item.fileid);
|
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.IdpfileId == item.uuid);
|
||||||
|
//IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.StockId == item.RdpId && x.ThirdId == item.fileid);
|
||||||
//IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.StockId == item.RdpId && x.FormatFileCode == item.doc_no && x.FormatFileName == item.maintitle);
|
//IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.StockId == item.RdpId && x.FormatFileCode == item.doc_no && x.FormatFileName == item.maintitle);
|
||||||
if (newItem != null)
|
if (newItem != null)
|
||||||
{
|
{
|
||||||
|
|
@ -934,7 +935,8 @@ namespace BLL
|
||||||
responseData = responseData.GroupBy(p => new { p.item_id, p.folderNo, p.isUpgrade }).Select(g => g.First()).ToList();
|
responseData = responseData.GroupBy(p => new { p.item_id, p.folderNo, p.isUpgrade }).Select(g => g.First()).ToList();
|
||||||
foreach (var item in responseData)
|
foreach (var item in responseData)
|
||||||
{
|
{
|
||||||
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.ProjectCode == item.item_id && x.FormatFileCode == item.folderNo && x.FileVersion == item.isUpgrade);
|
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.ProjectCode == item.item_id && (x.Doc_no == item.folderNo || x.FormatFileCode == item.folderNo) && x.FileVersion == item.isUpgrade);
|
||||||
|
//IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.ProjectCode == item.item_id && x.FormatFileCode == item.folderNo && x.FileVersion == item.isUpgrade);
|
||||||
if (newItem == null)
|
if (newItem == null)
|
||||||
{
|
{
|
||||||
err++;
|
err++;
|
||||||
|
|
@ -1012,7 +1014,8 @@ namespace BLL
|
||||||
responseData = responseData.GroupBy(p => new { p.item_id, p.folderNo, p.isUpgrade }).Select(g => g.First()).ToList();
|
responseData = responseData.GroupBy(p => new { p.item_id, p.folderNo, p.isUpgrade }).Select(g => g.First()).ToList();
|
||||||
foreach (var item in responseData)
|
foreach (var item in responseData)
|
||||||
{
|
{
|
||||||
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.ProjectCode == item.item_id && x.FormatFileCode == item.folderNo && x.FileVersion == item.isUpgrade);
|
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.ProjectCode == item.item_id && (x.Doc_no == item.folderNo || x.FormatFileCode == item.folderNo) && x.FileVersion == item.isUpgrade);
|
||||||
|
//IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.ProjectCode == item.item_id && x.FormatFileCode == item.folderNo && x.FileVersion == item.isUpgrade);
|
||||||
if (newItem == null)
|
if (newItem == null)
|
||||||
{
|
{
|
||||||
err++;
|
err++;
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,11 @@ namespace Model
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class OADesignDrawingDataItem
|
public partial class OADesignDrawingDataItem
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 图纸唯一主键uuid
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("uuid")]
|
||||||
|
public string uuid { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 数字档案馆RdpId
|
/// 数字档案馆RdpId
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue