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
69d85471
Commit
69d85471
authored
Apr 12, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增招聘信息实体类
parent
04319fc9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
504 additions
and
0 deletions
+504
-0
RB_Web_Recruitment.cs
Edu.Model/Entity/Web/RB_Web_Recruitment.cs
+94
-0
RB_Web_RecruitmentType.cs
Edu.Model/Entity/Web/RB_Web_RecruitmentType.cs
+54
-0
RB_Web_RecruitmentType_ViewModel.cs
Edu.Model/ViewModel/Web/RB_Web_RecruitmentType_ViewModel.cs
+16
-0
RB_Web_Recruitment_ViewModel.cs
Edu.Model/ViewModel/Web/RB_Web_Recruitment_ViewModel.cs
+12
-0
WebRecruitmentModule.cs
Edu.Module.Web/WebRecruitmentModule.cs
+180
-0
RB_Web_RecruitmentRepository.cs
Edu.Repository/Web/RB_Web_RecruitmentRepository.cs
+57
-0
RB_Web_RecruitmentTypeRepository.cs
Edu.Repository/Web/RB_Web_RecruitmentTypeRepository.cs
+91
-0
No files found.
Edu.Model/Entity/Web/RB_Web_Recruitment.cs
0 → 100644
View file @
69d85471
using
Edu.Common.Enum
;
using
System
;
using
VT.FW.DB
;
namespace
Edu.Model.Entity.Web
{
/// <summary>
/// 招聘管理实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Web_Recruitment
{
/// <summary>
/// 主键编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 岗位名称
/// </summary>
public
string
PositionName
{
get
;
set
;
}
/// <summary>
/// 薪资类型(1-固定薪资,2-面议)
/// </summary>
public
int
?
SalaryType
{
get
;
set
;
}
/// <summary>
/// 开始薪资
/// </summary>
public
decimal
?
SalaryStart
{
get
;
set
;
}
/// <summary>
/// 结束薪资
/// </summary>
public
decimal
?
SalaryEnd
{
get
;
set
;
}
/// <summary>
/// 多少薪
/// </summary>
public
int
?
SalaryNum
{
get
;
set
;
}
/// <summary>
/// 工作经验
/// </summary>
public
string
Experience
{
get
;
set
;
}
/// <summary>
/// 学历
/// </summary>
public
string
Education
{
get
;
set
;
}
/// <summary>
/// 工作地点
/// </summary>
public
string
WorkPlace
{
get
;
set
;
}
/// <summary>
/// 更新时间
/// </summary>
public
DateTime
?
PublishTime
{
get
;
set
;
}
/// <summary>
/// 岗位描述
/// </summary>
public
string
PositionDesc
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
DateStateEnum
Status
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
CreateDate
{
get
;
set
;
}
/// <summary>
/// 创建人编号
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
/// <summary>
/// 集团编号
/// </summary>
public
int
Group_Id
{
get
;
set
;
}
/// <summary>
/// 学校编号
/// </summary>
public
int
School_Id
{
get
;
set
;
}
}
}
Edu.Model/Entity/Web/RB_Web_RecruitmentType.cs
0 → 100644
View file @
69d85471
using
Edu.Common.Enum
;
using
System
;
using
VT.FW.DB
;
namespace
Edu.Model.Entity.Web
{
/// <summary>
/// 招聘类型实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Web_RecruitmentType
{
/// <summary>
/// 招聘类型(主键编号)
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 招聘类型名称
/// </summary>
public
string
TypeName
{
get
;
set
;
}
/// <summary>
/// 封面图
/// </summary>
public
string
ImgCover
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
DateStateEnum
Status
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
CreateDate
{
get
;
set
;
}
/// <summary>
/// 创建人编号
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
/// <summary>
/// 集团编号
/// </summary>
public
int
Group_Id
{
get
;
set
;
}
/// <summary>
/// 学校编号
/// </summary>
public
int
School_Id
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/Web/RB_Web_RecruitmentType_ViewModel.cs
0 → 100644
View file @
69d85471
using
Edu.Model.Entity.Web
;
using
System
;
using
VT.FW.DB
;
namespace
Edu.Model.ViewModel.Web
{
/// <summary>
/// 招聘类型视图实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Web_RecruitmentType_ViewModel
:
RB_Web_RecruitmentType
{
}
}
Edu.Model/ViewModel/Web/RB_Web_Recruitment_ViewModel.cs
0 → 100644
View file @
69d85471
using
Edu.Model.Entity.Web
;
namespace
Edu.Model.ViewModel.Web
{
/// <summary>
/// 招聘管理视图实体类
/// </summary>
public
class
RB_Web_Recruitment_ViewModel
:
RB_Web_Recruitment
{
}
}
Edu.Module.Web/WebRecruitmentModule.cs
0 → 100644
View file @
69d85471
using
Edu.Model.ViewModel.Web
;
using
Edu.Repository.Web
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Edu.Module.Web
{
/// <summary>
/// 招聘管理处理类
/// </summary>
public
class
WebRecruitmentModule
{
/// <summary>
/// 招聘类型仓储层对象
/// </summary>
private
readonly
RB_Web_RecruitmentTypeRepository
web_RecruitmentTypeRepository
=
new
RB_Web_RecruitmentTypeRepository
();
/// <summary>
/// 招聘管理仓储层对象
/// </summary>
private
readonly
RB_Web_RecruitmentRepository
web_RecruitmentRepository
=
new
RB_Web_RecruitmentRepository
();
#
region
招聘类型管理
/// <summary>
/// 获取招聘类型分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Web_RecruitmentType_ViewModel
>
GetWebRecruitmentTypePageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Web_RecruitmentType_ViewModel
query
)
{
return
web_RecruitmentTypeRepository
.
GetWebRecruitmentTypePageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
/// 获取招聘类型列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Web_RecruitmentType_ViewModel
>
GetWebRecruitmentTypeListRepository
(
RB_Web_RecruitmentType_ViewModel
query
)
{
return
web_RecruitmentTypeRepository
.
GetWebRecruitmentTypeListRepository
(
query
);
}
/// <summary>
/// 新增修改招聘类型
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
SetWebRecruitmentTypeModule
(
RB_Web_RecruitmentType_ViewModel
model
)
{
bool
flag
;
if
(
model
.
Id
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Web_RecruitmentType_ViewModel
.
TypeName
),
model
.
TypeName
},
{
nameof
(
RB_Web_RecruitmentType_ViewModel
.
ImgCover
),
model
.
ImgCover
},
};
flag
=
web_RecruitmentTypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Id
),
model
.
Id
));
}
else
{
var
newId
=
web_RecruitmentTypeRepository
.
Insert
(
model
);
model
.
Id
=
newId
;
flag
=
newId
>
0
;
}
return
flag
;
}
/// <summary>
/// 根据编号获取招聘类型详情
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
public
RB_Web_RecruitmentType_ViewModel
GetWebRecruitmentTypeModule
(
object
Id
)
{
return
web_RecruitmentTypeRepository
.
GetEntity
<
RB_Web_RecruitmentType_ViewModel
>(
Id
);
}
/// <summary>
/// 修改招聘类型状态
/// </summary>
/// <param name="Id"></param>
/// <param name="Status">0-正常,1-删除</param>
/// <returns></returns>
public
bool
RemoveWebRecruitmentTypeStatusModule
(
int
Id
,
int
Status
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Status
),
Status
},
};
var
flag
=
web_RecruitmentTypeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Id
),
Id
));
return
flag
;
}
#
endregion
#
region
招聘信息管理
/// <summary>
/// 获取招聘信息分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Web_Recruitment_ViewModel
>
GetWebRecruitmentTypePageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Web_Recruitment_ViewModel
query
)
{
return
web_RecruitmentRepository
.
GetWebRecruitmentTypePageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
/// 新增修改招聘信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
SetWebRecruitmentModule
(
RB_Web_Recruitment_ViewModel
model
)
{
bool
flag
;
if
(
model
.
Id
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Web_Recruitment_ViewModel
.
PositionName
),
model
.
PositionName
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
SalaryType
),
model
.
SalaryType
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
SalaryStart
),
model
.
SalaryStart
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
SalaryEnd
),
model
.
SalaryEnd
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
SalaryNum
),
model
.
SalaryNum
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
Experience
),
model
.
Experience
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
Education
),
model
.
Education
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
WorkPlace
),
model
.
WorkPlace
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
PublishTime
),
model
.
PublishTime
},
{
nameof
(
RB_Web_Recruitment_ViewModel
.
PositionDesc
),
model
.
PositionDesc
},
};
flag
=
web_RecruitmentRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Web_Recruitment_ViewModel
.
Id
),
model
.
Id
));
}
else
{
var
newId
=
web_RecruitmentRepository
.
Insert
(
model
);
model
.
Id
=
newId
;
flag
=
newId
>
0
;
}
return
flag
;
}
/// <summary>
/// 根据编号获取招聘详情
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
public
RB_Web_Recruitment_ViewModel
GetWebRecruitmentModule
(
object
Id
)
{
return
web_RecruitmentRepository
.
GetEntity
<
RB_Web_Recruitment_ViewModel
>(
Id
);
}
/// <summary>
/// 修改招聘状态
/// </summary>
/// <param name="Id"></param>
/// <param name="Status">0-正常,1-删除</param>
/// <returns></returns>
public
bool
RemoveWebRecruitmentStatusModule
(
int
Id
,
int
Status
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Web_Recruitment_ViewModel
.
Status
),
Status
},
};
var
flag
=
web_RecruitmentRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Web_Recruitment_ViewModel
.
Id
),
Id
));
return
flag
;
}
#
endregion
}
}
\ No newline at end of file
Edu.Repository/Web/RB_Web_RecruitmentRepository.cs
0 → 100644
View file @
69d85471
using
Edu.Common.Enum
;
using
Edu.Model.Entity.Web
;
using
Edu.Model.ViewModel.Web
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
VT.FW.DB.Dapper
;
namespace
Edu.Repository.Web
{
/// <summary>
/// 招聘管理仓储层
/// </summary>
public
class
RB_Web_RecruitmentRepository
:
BaseRepository
<
RB_Web_Recruitment
>
{
/// <summary>
/// 获取招聘信息分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Web_Recruitment_ViewModel
>
GetWebRecruitmentTypePageRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Web_Recruitment_ViewModel
query
)
{
rowsCount
=
0
;
var
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
@"
SELECT A.*
FROM RB_Web_Recruitment AS A
WHERE 1=1
"
);
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_Web_Recruitment_ViewModel
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
==
null
)
{
return
new
List
<
RB_Web_Recruitment_ViewModel
>();
}
else
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_Web_Recruitment_ViewModel
.
Group_Id
),
query
.
Group_Id
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
PositionName
))
{
builder
.
AppendFormat
(
" AND A.{0} LIKE @PositionName "
,
nameof
(
RB_Web_Recruitment_ViewModel
.
PositionName
));
parameters
.
Add
(
"PositionName"
,
"%"
+
query
.
PositionName
.
Trim
()
+
"%"
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Web_Recruitment_ViewModel
.
Id
));
return
GetPage
<
RB_Web_Recruitment_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
}
}
}
Edu.Repository/Web/RB_Web_RecruitmentTypeRepository.cs
0 → 100644
View file @
69d85471
using
Edu.Common.Enum
;
using
Edu.Model.Entity.Web
;
using
Edu.Model.ViewModel.Web
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
VT.FW.DB.Dapper
;
namespace
Edu.Repository.Web
{
/// <summary>
/// 招聘类型仓储层
/// </summary>
public
class
RB_Web_RecruitmentTypeRepository
:
BaseRepository
<
RB_Web_RecruitmentType
>
{
/// <summary>
/// 获取招聘类型分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Web_RecruitmentType_ViewModel
>
GetWebRecruitmentTypePageRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Web_RecruitmentType_ViewModel
query
)
{
rowsCount
=
0
;
var
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
@"
SELECT A.*
FROM RB_Web_RecruitmentType AS A
WHERE 1=1
"
);
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
==
null
)
{
return
new
List
<
RB_Web_RecruitmentType_ViewModel
>();
}
else
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Group_Id
),
query
.
Group_Id
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
TypeName
))
{
builder
.
AppendFormat
(
" AND A.{0} LIKE @TypeName "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
TypeName
));
parameters
.
Add
(
"TypeName"
,
"%"
+
query
.
TypeName
.
Trim
()
+
"%"
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Id
));
return
GetPage
<
RB_Web_RecruitmentType_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
}
/// <summary>
/// 获取招聘类型列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Web_RecruitmentType_ViewModel
>
GetWebRecruitmentTypeListRepository
(
RB_Web_RecruitmentType_ViewModel
query
)
{
var
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
Append
(
@"
SELECT A.*
FROM RB_Web_RecruitmentType AS A
WHERE 1=1
"
);
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
==
null
)
{
return
new
List
<
RB_Web_RecruitmentType_ViewModel
>();
}
else
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Group_Id
),
query
.
Group_Id
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
TypeName
))
{
builder
.
AppendFormat
(
" AND A.{0} LIKE @TypeName "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
TypeName
));
parameters
.
Add
(
"TypeName"
,
"%"
+
query
.
TypeName
.
Trim
()
+
"%"
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Web_RecruitmentType_ViewModel
.
Id
));
return
Get
<
RB_Web_RecruitmentType_ViewModel
>(
builder
.
ToString
(),
parameters
).
ToList
();
}
}
}
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