|
|
|
@ -349,17 +349,29 @@ namespace D7MqClient
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO)) BSNO = feeback.FeedbackData.BSNO;
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.MBLNO)) MBLNO = feeback.FeedbackData.MBLNO;
|
|
|
|
|
|
|
|
|
|
var cdc =new DSWeb.Common.DB.CommonDataContext();
|
|
|
|
|
var 当前的已放舱业务状态 = cdc.op_status.Where(x => x.BSNO == BSNO && x.STATUS == "STATUS").ToList();
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(BSNO))
|
|
|
|
|
{
|
|
|
|
|
//环海运通 要求,同时增加业务状态“已放舱” 如客户不需要可屏蔽
|
|
|
|
|
InsertOpStatus(null, BSNO, dbcon,null, "已放舱");
|
|
|
|
|
//20240320 如果已有 就不添加
|
|
|
|
|
if (当前的已放舱业务状态 == null || 当前的已放舱业务状态.Count == 0) {
|
|
|
|
|
InsertOpStatus(null, BSNO, dbcon, null, "已放舱");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.MBLNO))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//环海运通 要求,同时增加业务状态“已放舱” 如客户不需要可屏蔽
|
|
|
|
|
InsertOpStatus(null, BSNO, dbcon, MBLNO, "已放舱");
|
|
|
|
|
//20240320 如果已有 就不添加
|
|
|
|
|
if (当前的已放舱业务状态 == null || 当前的已放舱业务状态.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
InsertOpStatus(null, BSNO, dbcon, null, "已放舱");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|