zhangxiaofeng 12 months ago
commit 8ebc0226e9

@ -1124,10 +1124,13 @@ namespace Myshipping.Application
}
//把前端传递的已修改字段转换为属性名称
var lstPropName = new List<string>
{
"CNTRTOTAL"
};
if (input.ChangedFields != null && input.ChangedFields.Count > 0)
{
var propsOrder = typeof(BookingOrder).GetProperties();
var lstPropName = new List<string>();
input.ChangedFields.ForEach(x =>
{
var pchg = propsOrder.FirstOrDefault(p => p.Name.ToLower() == x.ToLower());
@ -1137,11 +1140,9 @@ namespace Myshipping.Application
}
});
if (lstPropName.Count > 0)
{
await _rep.AsUpdateable(entity).UpdateColumns(lstPropName.ToArray()).ExecuteCommandAsync();
}
}
await _rep.AsUpdateable(entity).UpdateColumns(lstPropName.ToArray()).ExecuteCommandAsync();
//await _rep.AsUpdateable(entity).IgnoreColumns(it => new
//{
// it.ParentId,

@ -1,7 +1,7 @@
{
//axios
"CorsAccessorSettings": {
"WithExposedHeaders": [ "Content-Disposition" ]
"WithExposedHeaders": [ "Content-Disposition", "access-token", "x-access-token", "need-modify-password" ]
},
//api
//"DynamicApiControllerSettings": {

Loading…
Cancel
Save