|
|
|
@ -80,6 +80,7 @@ namespace D7MqClient
|
|
|
|
|
strSql2.Append("update op_seae set IRCODE='" + IRCODE + "' where BSNO='" + BSNO + "' AND ISNULL(IRCODE,'')=''");
|
|
|
|
|
SqlCommand cmd2 = new SqlCommand(strSql2.ToString(), dbcon);
|
|
|
|
|
cmd2.ExecuteNonQuery();
|
|
|
|
|
logger.Debug($"执行语句1:{strSql2.ToString()}");
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrEmpty(CUSTNO))
|
|
|
|
|
{
|
|
|
|
@ -87,6 +88,7 @@ namespace D7MqClient
|
|
|
|
|
strSql.Append("update op_seae set IRCODE='" + IRCODE + "' where CUSTNO='" + CUSTNO + "' AND ISNULL(IRCODE,'')=''");
|
|
|
|
|
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
|
|
|
|
|
cmd.ExecuteNonQuery();
|
|
|
|
|
logger.Debug($"执行语句1:{strSql.ToString()}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -98,33 +100,46 @@ namespace D7MqClient
|
|
|
|
|
strSql.Append("update t_op_seae set IRCODE='" + IRCODE + "' where 业务编号='" + feeback.FeedbackData.BSNO + "'");
|
|
|
|
|
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
|
|
|
|
|
cmd.ExecuteNonQuery();
|
|
|
|
|
}
|
|
|
|
|
logger.Debug($"执行语句1:{strSql.ToString()}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (feeback.FeedbackType == "MBLNO")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO) && !string.IsNullOrEmpty(feeback.FeedbackData.MBLNO))
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.MBLNO))
|
|
|
|
|
{
|
|
|
|
|
if (DSVER == "7")
|
|
|
|
|
{
|
|
|
|
|
var CUSTNO = "";
|
|
|
|
|
var BSNO = "";
|
|
|
|
|
var IRCODE = "";
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO)) BSNO = feeback.FeedbackData.BSNO;
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.FR)) CUSTNO = feeback.FeedbackData.FR;
|
|
|
|
|
if (!string.IsNullOrEmpty(feeback.FeedbackData.IRCode)) IRCODE = feeback.FeedbackData.IRCode;
|
|
|
|
|
if (!string.IsNullOrEmpty(BSNO))
|
|
|
|
|
{
|
|
|
|
|
var strSql2 = new StringBuilder();
|
|
|
|
|
strSql2.Append("update op_seae set MBLNO='" + feeback.FeedbackData.MBLNO + "' where BSNO='" + BSNO + "' AND ISNULL(MBLNO,'')=''");
|
|
|
|
|
SqlCommand cmd2 = new SqlCommand(strSql2.ToString(), dbcon);
|
|
|
|
|
cmd2.ExecuteNonQuery();
|
|
|
|
|
logger.Debug($"执行语句1:{strSql2.ToString()}");
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrEmpty(CUSTNO))
|
|
|
|
|
{
|
|
|
|
|
var strSql = new StringBuilder();
|
|
|
|
|
strSql.Append("update op_seae set MBLNO='" + feeback.FeedbackData.MBLNO + "' where CUSTNO='" + CUSTNO + "' AND ISNULL(MBLNO,'')='' ");
|
|
|
|
|
strSql.Append("update op_seae set MBLNO='" + feeback.FeedbackData.MBLNO + "' where IRCODE='" + CUSTNO + "' AND ISNULL(MBLNO,'')='' ");
|
|
|
|
|
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
|
|
|
|
|
cmd.ExecuteNonQuery();
|
|
|
|
|
logger.Debug($"执行语句1:{strSql.ToString()}");
|
|
|
|
|
}
|
|
|
|
|
if (!string.IsNullOrEmpty(IRCODE))
|
|
|
|
|
{
|
|
|
|
|
var strSql = new StringBuilder();
|
|
|
|
|
strSql.Append("update op_seae set MBLNO='" + feeback.FeedbackData.MBLNO + "' where IRCODE='" + IRCODE + "' AND ISNULL(MBLNO,'')='' ");
|
|
|
|
|
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
|
|
|
|
|
cmd.ExecuteNonQuery();
|
|
|
|
|
logger.Debug($"执行语句1:{strSql.ToString()}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -133,6 +148,7 @@ namespace D7MqClient
|
|
|
|
|
strSql.Append("update t_op_seae set 主提单号='" + feeback.FeedbackData.MBLNO + "' where 业务编号='" + feeback.FeedbackData.BSNO + "' AND ISNULL(主提单号,'')='' ");
|
|
|
|
|
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
|
|
|
|
|
cmd.ExecuteNonQuery();
|
|
|
|
|
logger.Debug($"执行语句1:{strSql.ToString()}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|