|
|
@@ -1928,7 +1928,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1928
|
1928
|
|
|
1929
|
1929
|
|
|
1930
|
1930
|
string pysql = "select top 1 * from PublicComment WITH(NOLOCK) where " +
|
|
1931
|
|
- " WorkOrderId ='" + workorderid + "' order by CreateTime";
|
|
|
1931
|
+ " WorkOrderId ='" + workorderid + "' order by CreateTime desc";
|
|
1932
|
1932
|
var pydt = DbHelperSQL.Query(pysql).Tables[0];
|
|
1933
|
1933
|
|
|
1934
|
1934
|
var modeloper = new BLL.T_Bus_Operation()
|
|
|
@@ -1943,7 +1943,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1943
|
1943
|
else
|
|
1944
|
1944
|
jsonList.VISIT_NAME = model.F_CreateUser;
|
|
1945
|
1945
|
|
|
1946
|
|
- if (pydt.Rows[0]["strSsf_Cst_Ass_CntDsc"] !=null )
|
|
|
1946
|
+ if (pydt.Rows[0]["strSsf_Cst_Ass_CntDsc"] ==null )
|
|
1947
|
1947
|
jsonList.VISIT_CONTENT = "无";
|
|
1948
|
1948
|
else
|
|
1949
|
1949
|
jsonList.VISIT_CONTENT = pydt.Rows[0]["strSsf_Cst_Ass_CntDsc"].ToString ();
|
|
|
@@ -2539,7 +2539,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2539
|
2539
|
|
|
2540
|
2540
|
|
|
2541
|
2541
|
string pysql = "select top 1 * from PublicComment WITH(NOLOCK) where " +
|
|
2542
|
|
- " WorkOrderId ='" + workorderid + "' order by CreateTime";
|
|
|
2542
|
+ " WorkOrderId ='" + workorderid + "' order by CreateTime desc";
|
|
2543
|
2543
|
var pydt = DbHelperSQL.Query(pysql).Tables[0];
|
|
2544
|
2544
|
|
|
2545
|
2545
|
var modeloper = new BLL.T_Bus_Operation()
|
|
|
@@ -2554,7 +2554,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2554
|
2554
|
else
|
|
2555
|
2555
|
jsonList.VISIT_NAME = model.F_CreateUser;
|
|
2556
|
2556
|
|
|
2557
|
|
- if (pydt.Rows[0]["strSsf_Cst_Ass_CntDsc"] != null)
|
|
|
2557
|
+ if (pydt.Rows[0]["strSsf_Cst_Ass_CntDsc"] == null)
|
|
2558
|
2558
|
jsonList.VISIT_CONTENT = "无";
|
|
2559
|
2559
|
else
|
|
2560
|
2560
|
jsonList.VISIT_CONTENT = pydt.Rows[0]["strSsf_Cst_Ass_CntDsc"].ToString();
|