Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
94790bb7
Commit
94790bb7
authored
Nov 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f3f52594
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
7 deletions
+58
-7
RB_Customer.cs
Edu.Model/Entity/Customer/RB_Customer.cs
+20
-0
CustomerModule.cs
Edu.Module.Customer/CustomerModule.cs
+18
-0
CustomerController.cs
Edu.WebApi/Controllers/Customer/CustomerController.cs
+20
-2
run.cmd
Edu.WebApi/run.cmd
+0
-5
No files found.
Edu.Model/Entity/Customer/RB_Customer.cs
View file @
94790bb7
...
@@ -146,5 +146,25 @@ namespace Edu.Model.Entity.Customer
...
@@ -146,5 +146,25 @@ namespace Edu.Model.Entity.Customer
/// 账号状态
/// 账号状态
/// </summary>
/// </summary>
public
CustomerStateEnum
CustomerState
{
get
;
set
;
}
public
CustomerStateEnum
CustomerState
{
get
;
set
;
}
/// <summary>
/// 审批状态 1-审批通过,2-拒绝
/// </summary>
public
int
ApproveState
{
get
;
set
;
}
/// <summary>
/// 审批意见
/// </summary>
public
string
ApproveContent
{
get
;
set
;
}
/// <summary>
/// 审核人
/// </summary>
public
int
ApproveId
{
get
;
set
;
}
/// <summary>
/// 审核时间
/// </summary>
public
DateTime
ApproveTime
{
get
;
set
;
}
}
}
}
}
\ No newline at end of file
Edu.Module.Customer/CustomerModule.cs
View file @
94790bb7
...
@@ -99,5 +99,23 @@ namespace Edu.Module.Customer
...
@@ -99,5 +99,23 @@ namespace Edu.Module.Customer
var
extModel
=
customerRepository
.
GetEntity
<
RB_Customer_Extend
>(
CustomerId
);
var
extModel
=
customerRepository
.
GetEntity
<
RB_Customer_Extend
>(
CustomerId
);
return
extModel
;
return
extModel
;
}
}
/// <summary>
/// 客户审批
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
AuditCustomerModule
(
RB_Customer_Extend
model
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Customer_Extend
.
ApproveState
),
model
.
ApproveState
},
{
nameof
(
RB_Customer_Extend
.
ApproveContent
),
model
.
ApproveContent
},
{
nameof
(
RB_Customer_Extend
.
ApproveId
),
model
.
ApproveId
},
{
nameof
(
RB_Customer_Extend
.
ApproveTime
),
model
.
ApproveTime
},
};
var
flag
=
customerRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Customer_Extend
.
CustomerId
),
model
.
CustomerId
));
return
flag
;
}
}
}
}
}
Edu.WebApi/Controllers/Customer/CustomerController.cs
View file @
94790bb7
...
@@ -72,10 +72,9 @@ namespace Edu.WebApi.Controllers.Customer
...
@@ -72,10 +72,9 @@ namespace Edu.WebApi.Controllers.Customer
LngLat
=
base
.
ParmJObj
.
GetStringValue
(
"LngLat"
),
LngLat
=
base
.
ParmJObj
.
GetStringValue
(
"LngLat"
),
Account
=
base
.
ParmJObj
.
GetStringValue
(
"Account"
),
Account
=
base
.
ParmJObj
.
GetStringValue
(
"Account"
),
Remark
=
base
.
ParmJObj
.
GetStringValue
(
"Remark"
),
Remark
=
base
.
ParmJObj
.
GetStringValue
(
"Remark"
),
};
};
model
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
model
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
model
.
CreateBy
=
base
.
UserInfo
.
Account
Id
;
model
.
CreateBy
=
base
.
UserInfo
.
Id
;
model
.
CreateTime
=
DateTime
.
Now
;
model
.
CreateTime
=
DateTime
.
Now
;
model
.
UpdateTime
=
DateTime
.
Now
;
model
.
UpdateTime
=
DateTime
.
Now
;
model
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
model
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
...
@@ -108,5 +107,24 @@ namespace Edu.WebApi.Controllers.Customer
...
@@ -108,5 +107,24 @@ namespace Edu.WebApi.Controllers.Customer
var
data
=
customerModule
.
GetCustomerModule
(
CustomerId
);
var
data
=
customerModule
.
GetCustomerModule
(
CustomerId
);
return
ApiResult
.
Success
(
data
:
data
);
return
ApiResult
.
Success
(
data
:
data
);
}
}
/// <summary>
/// 客户审批
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
AuditCustomer
()
{
var
model
=
new
RB_Customer_Extend
()
{
CustomerId
=
base
.
ParmJObj
.
GetInt
(
"CustomerId"
),
ApproveState
=
base
.
ParmJObj
.
GetInt
(
"ApproveState"
),
ApproveContent
=
base
.
ParmJObj
.
GetStringValue
(
"ApproveContent"
),
ApproveId
=
base
.
UserInfo
.
Id
,
ApproveTime
=
DateTime
.
Now
};
var
flag
=
customerModule
.
AuditCustomerModule
(
model
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
}
}
}
Edu.WebApi/run.cmd
deleted
100644 → 0
View file @
f3f52594
@echo off
echo ASPNETCORE_ENVIRONMENT=Development
dotnet build
start "Edu.WebApi" dotnet bin\Debug\netcoreapp3.0\Edu.WebApi.dll --urls http://0.0.0.0:5001 --ip="127.0.0.1" --port=5001
exit
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment