|
@@ -1867,7 +1867,7 @@ namespace SiteCore
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- string info_sql = string.Format("SELECT ctid,ProductId,seller_memo FROM [dbo].[CE_ErpTradeCell] WHERE tid ='{0}'", tid);
|
|
|
|
|
|
|
+ string info_sql = string.Format("SELECT ctid,ProductId,seller_memo FROM [dbo].[CE_ErpTradeCell] WHERE tid ='{0}' AND OrderState < 5", tid);
|
|
|
DataTable data = DbHelper.DbConn.ExecuteDataset(info_sql).Tables[0];
|
|
DataTable data = DbHelper.DbConn.ExecuteDataset(info_sql).Tables[0];
|
|
|
string check_info = "无订单信息";
|
|
string check_info = "无订单信息";
|
|
|
if (data.Rows.Count > 0)
|
|
if (data.Rows.Count > 0)
|
|
@@ -1880,7 +1880,7 @@ namespace SiteCore
|
|
|
|
|
|
|
|
if (cell != null)
|
|
if (cell != null)
|
|
|
{
|
|
{
|
|
|
- if (cell.DesignUserId == 0 || cell.DispatchSort == 2 || cell.seller_memo.Contains("S_"))
|
|
|
|
|
|
|
+ if (cell.DesignUserId == 0 || cell.DispatchSort == 2 || cell.ctid.Contains("S_"))
|
|
|
{
|
|
{
|
|
|
designApiResponseVo result = checkOrderDesignInfo(cell, "", data);
|
|
designApiResponseVo result = checkOrderDesignInfo(cell, "", data);
|
|
|
check_info = result.msg;
|
|
check_info = result.msg;
|
|
@@ -1899,7 +1899,7 @@ namespace SiteCore
|
|
|
|
|
|
|
|
if (need_send && !has_design)
|
|
if (need_send && !has_design)
|
|
|
{
|
|
{
|
|
|
- string sql_pay = "update CE_ErpTradeCell with(rowlock) set DispatchSort=2 where tid='" + tid + "';";
|
|
|
|
|
|
|
+ string sql_pay = "update CE_ErpTradeCell with(rowlock) set DispatchSort=2 where tid='" + tid + "' AND OrderState < 5;";
|
|
|
CeErpTradeCell.ExecuteNonQuery(sql_pay.ToString());
|
|
CeErpTradeCell.ExecuteNonQuery(sql_pay.ToString());
|
|
|
return new designApiResponseVo(200, "");
|
|
return new designApiResponseVo(200, "");
|
|
|
}
|
|
}
|
|
@@ -1932,7 +1932,7 @@ namespace SiteCore
|
|
|
|
|
|
|
|
if ((post != "SysAdmin" && post != "Summarize"))
|
|
if ((post != "SysAdmin" && post != "Summarize"))
|
|
|
{
|
|
{
|
|
|
- if (ceErpTradeCell.DesignUserId != 0 && (ceErpTradeCell.DispatchSort != 2 && !ceErpTradeCell.seller_memo.Contains("S_")))
|
|
|
|
|
|
|
+ if (ceErpTradeCell.DesignUserId != 0 && (ceErpTradeCell.DispatchSort != 2 && !ceErpTradeCell.ctid.Contains("S_")))
|
|
|
{
|
|
{
|
|
|
return new designApiResponseVo(-1, "已有设计师无法指派");
|
|
return new designApiResponseVo(-1, "已有设计师无法指派");
|
|
|
}
|
|
}
|
|
@@ -2726,7 +2726,7 @@ namespace SiteCore
|
|
|
CeErpTradeCell ceErpTradeCell = CeErpTradeCell.GetByCtid(ceErpTradeCellExtend.ctid);
|
|
CeErpTradeCell ceErpTradeCell = CeErpTradeCell.GetByCtid(ceErpTradeCellExtend.ctid);
|
|
|
string result = designHelper.API_CheckOrderTo(ceErpTradeCellExtend.ctid, ceErpTradeCellExtend.spu_id, ceErpTradeCell.ShopId);
|
|
string result = designHelper.API_CheckOrderTo(ceErpTradeCellExtend.ctid, ceErpTradeCellExtend.spu_id, ceErpTradeCell.ShopId);
|
|
|
ceErpTradeCellExtend.ToType = result;
|
|
ceErpTradeCellExtend.ToType = result;
|
|
|
- List<int> products = new List<int>() { 4, 13, 19, 24, 28, 32, 40, 51, 57, 1971, 2319, 2377, 2521, 2524, 2533, 2538, 2542, 2554, 2556, 2557, 2558, 2559, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2568, 2569, 2570, 2571, 2572, 2619, 2625, 2634, 2636, 2637, 2638, 2645, 2646 };
|
|
|
|
|
|
|
+ List<int> products = new List<int>() { 4, 13, 19, 24, 28, 32, 40, 51, 57, 1971, 2319, 2377, 2521, 2524, 2533, 2538, 2542, 2554, 2556, 2557, 2559, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2568, 2569, 2570, 2571, 2572, 2619, 2625, 2634, 2636, 2637, 2638, 2645, 2646 };
|
|
|
List<int> shopIds = new List<int>() { 5, 6, 8, 10, 11, 12, 14, 15, 16, 17, 18, 21, 23, 24, 27, 28, 31, 32, 56, 61, 63, 64, 66, 124, 126, 127, 128 };
|
|
List<int> shopIds = new List<int>() { 5, 6, 8, 10, 11, 12, 14, 15, 16, 17, 18, 21, 23, 24, 27, 28, 31, 32, 56, 61, 63, 64, 66, 124, 126, 127, 128 };
|
|
|
if (products.Contains(ceErpTradeCell.ProductId) || ceErpTradeCell.seller_memo.IndexOf("手绘") > -1 || ceErpTradeCell.seller_memo.IndexOf("电子稿") > -1 || ceErpTradeCell.isDianziOrder > 0)
|
|
if (products.Contains(ceErpTradeCell.ProductId) || ceErpTradeCell.seller_memo.IndexOf("手绘") > -1 || ceErpTradeCell.seller_memo.IndexOf("电子稿") > -1 || ceErpTradeCell.isDianziOrder > 0)
|
|
|
{
|
|
{
|