zhangkun лет назад: 5
Родитель
Сommit
dbb9ed3f27

+ 1 - 1
代码/System.Model/T_Bus_Order.cs

106
 			get { return _f_recommendId; }
106
 			get { return _f_recommendId; }
107
 		}
107
 		}
108
 		/// <summary>
108
 		/// <summary>
109
-		/// 审核备注
109
+		/// 审核备注 售后id
110
 		/// </summary>
110
 		/// </summary>
111
 		public string F_AfterSaleId
111
 		public string F_AfterSaleId
112
 		{
112
 		{

+ 17 - 1
代码/TVShoppingCallCenter_ZLJ/Controllers/Order/KFOrderController.cs

143
                 {
143
                 {
144
                     return Error("订单已审核");
144
                     return Error("订单已审核");
145
                 }
145
                 }
146
+                if (string.IsNullOrEmpty(modelOrder.F_Express))
147
+                {
148
+                    return Error("快递不能为空");
149
+                }
150
+                if (string.IsNullOrEmpty(modelOrder.F_AddPhone))
151
+                {
152
+                    return Error("收件人电话不能为空");
153
+                }
154
+                if (string.IsNullOrEmpty(modelOrder.F_AddTown))
155
+                {
156
+                    return Error("收件人地址不能为空");
157
+                }
158
+                if (string.IsNullOrEmpty(modelOrder.F_Address))
159
+                {
160
+                    return Error("收件人详细地址不能为空");
161
+                }
146
                 modelOrder.F_CheckTime = DateTime.Now;
162
                 modelOrder.F_CheckTime = DateTime.Now;
147
                 modelOrder.F_CheckUser = int.Parse(User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.PrimarySid).Value, 0);
163
                 modelOrder.F_CheckUser = int.Parse(User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.PrimarySid).Value, 0);
148
                 modelOrder.F_CheckUserName = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Name).Value;
164
                 modelOrder.F_CheckUserName = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Name).Value;
323
             }
339
             }
324
             if (input.F_IsExpress > -1)
340
             if (input.F_IsExpress > -1)
325
             {
341
             {
326
-                conModels.Add(new ConditionalModel() { FieldName = "F_IsExpress", ConditionalType = ConditionalType.GreaterThan, FieldValue = input.F_IsExpress.ToString() });
342
+                conModels.Add(new ConditionalModel() { FieldName = "F_IsExpress", ConditionalType = ConditionalType.Equal, FieldValue = input.F_IsExpress.ToString() });
327
             }
343
             }
328
 
344
 
329
 
345
 

+ 14 - 11
代码/TVShoppingCallCenter_ZLJ/Controllers/Order/KGOrderController.cs

68
 
68
 
69
             conModels.Add(new ConditionalModel() { FieldName = "F_State", ConditionalType = ConditionalType.GreaterThanOrEqual, FieldValue = "3" });
69
             conModels.Add(new ConditionalModel() { FieldName = "F_State", ConditionalType = ConditionalType.GreaterThanOrEqual, FieldValue = "3" });
70
 
70
 
71
-            //根据角色展示列表
72
-            if (UserLogin.RoleCode == "XS")
71
+            if (input.F_State >= 0)
73
             {
72
             {
74
-                conModels.Add(new ConditionalModel() { FieldName = "F_AddUser", ConditionalType = ConditionalType.Equal, FieldValue = UserLogin.UserId });
75
-            }
76
-            else if (UserLogin.RoleCode == "KF" && input.F_State != 1)
77
-            {
78
-                conModels.Add(new ConditionalModel() { FieldName = "F_CheckUser", ConditionalType = ConditionalType.Equal, FieldValue = UserLogin.UserId });
73
+                conModels.Add(new ConditionalModel() { FieldName = "F_State", ConditionalType = ConditionalType.Equal, FieldValue = input.F_State.ToString() });
74
+
79
             }
75
             }
80
-            else if (UserLogin.RoleCode == "KG" && input.F_State != 3)
76
+
77
+            conModels.Add(new ConditionalCollections()
81
             {
78
             {
82
-                conModels.Add(new ConditionalModel() { FieldName = "F_StockUser", ConditionalType = ConditionalType.Equal, FieldValue = UserLogin.UserId });
83
-                //OR  conModels.Add(new ConditionalModel() { FieldName = "F_SendUser", ConditionalType = ConditionalType.Equal, FieldValue = UserLogin.UserId });
84
-            }
79
+                ConditionalList = new List<KeyValuePair<WhereType, SqlSugar.ConditionalModel>>()
80
+{
81
+                     new  KeyValuePair<WhereType, ConditionalModel>
82
+                     ( WhereType.And ,    new ConditionalModel() { FieldName = "F_StockUser", ConditionalType = ConditionalType.Equal, FieldValue = UserLogin.UserId }),
83
+                     new  KeyValuePair<WhereType, ConditionalModel>
84
+                     (WhereType.Or,    new ConditionalModel() { FieldName = "F_State", ConditionalType = ConditionalType.Equal, FieldValue = "3" })
85
+}
86
+            });
87
+
85
             if (!string.IsNullOrEmpty(input.F_ADFrom))
88
             if (!string.IsNullOrEmpty(input.F_ADFrom))
86
             {
89
             {
87
                 conModels.Add(new ConditionalModel() { FieldName = "F_ADFrom", ConditionalType = ConditionalType.Equal, FieldValue = input.F_ADFrom });
90
                 conModels.Add(new ConditionalModel() { FieldName = "F_ADFrom", ConditionalType = ConditionalType.Equal, FieldValue = input.F_ADFrom });

+ 2 - 0
代码/TVShoppingCallCenter_ZLJ/Controllers/Order/OrderFunctionController.cs

83
             List<T_Bus_StockLog> newstockLogList = new List<T_Bus_StockLog>();
83
             List<T_Bus_StockLog> newstockLogList = new List<T_Bus_StockLog>();
84
             if (state == 1) 
84
             if (state == 1) 
85
             {
85
             {
86
+                if (modelDetailList.Count <= 0)
87
+                    return "提交商品详情不能为空";
86
                 foreach (T_Bus_OrderDetail productstock in modelDetailList)
88
                 foreach (T_Bus_OrderDetail productstock in modelDetailList)
87
                 {
89
                 {
88
                     T_Bus_StockLog modelStock = new T_Bus_StockLog();
90
                     T_Bus_StockLog modelStock = new T_Bus_StockLog();

+ 1 - 1
代码/TVShoppingCallCenter_ZLJ/Controllers/Product/ProductController.cs

579
                 return Error("请输入删除id");
579
                 return Error("请输入删除id");
580
             #endregion
580
             #endregion
581
 
581
 
582
-            if (await _productRepository.Update(s => new T_Bus_Product() { F_IsDelete = -1 }, q => ids.Contains("," + q.F_ProductId.ToString() + ",")))
582
+            if (await _productRepository.Delete( q => ids.Contains("," + q.F_ProductId.ToString() + ",")))
583
                 return Success("删除商品成功");
583
                 return Success("删除商品成功");
584
             else
584
             else
585
                 return Success("删除商品失败");
585
                 return Success("删除商品失败");