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