Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jy_jfb
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
jy_jfb
Commits
9905f91e
提交
9905f91e
authored
9月 02, 2025
作者:
wml
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
招聘类型
上级
c5eadde3
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
115 行增加
和
9 行删除
+115
-9
RecruitTypeController.java
...ava/com/jfb/recruit/controller/RecruitTypeController.java
+44
-0
RecruitTypeService.java
...main/java/com/jfb/recruit/service/RecruitTypeService.java
+21
-0
RecruitTypeServiceImpl.java
.../com/jfb/recruit/service/impl/RecruitTypeServiceImpl.java
+46
-0
bootstrap.yaml
jfb-recruit/src/main/resources/bootstrap.yaml
+4
-9
没有找到文件。
jfb-recruit/src/main/java/com/jfb/recruit/controller/RecruitTypeController.java
0 → 100644
浏览文件 @
9905f91e
package
com
.
jfb
.
recruit
.
controller
;
import
base.controller.BaseController
;
import
base.result.BaseResult
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.jfb.recruit.service.RecruitTypeService
;
import
data.recruit.RecruitType
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
/**
* @author wangmenglong
* @description: 招聘类型
* @date 2023/12/11 11:35
*/
@RestController
@RequestMapping
(
"/recruit/type"
)
public
class
RecruitTypeController
extends
BaseController
{
@Resource
RecruitTypeService
recruitTypeService
;
/**
* @description: 获取所有招聘类型列表
* @author: wangmenglong
* @date; 2023/12/7 10:07
* @param: [req]
* @return: com.github.pagehelper.PageInfo
**/
@GetMapping
(
"/all"
)
public
BaseResult
all
(
HttpServletRequest
req
,
RecruitType
recrutiType
){
PageInit
(
req
);
List
<
RecruitType
>
list
=
recruitTypeService
.
listAll
(
recrutiType
);
PageInfo
<
RecruitType
>
pageInfo
=
new
PageInfo
<
RecruitType
>(
list
);
return
BaseResult
.
success
(
pageInfo
);
}
}
jfb-recruit/src/main/java/com/jfb/recruit/service/RecruitTypeService.java
0 → 100644
浏览文件 @
9905f91e
package
com
.
jfb
.
recruit
.
service
;
import
data.recruit.RecruitType
;
import
data.user.User
;
import
java.util.List
;
/**
*
* @return: 招聘类型
* @Author: wml
* @Date 2025/5/9 10:20
*/
public
interface
RecruitTypeService
{
List
<
RecruitType
>
listAll
(
RecruitType
recruitType
);
}
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/RecruitTypeServiceImpl.java
0 → 100644
浏览文件 @
9905f91e
package
com
.
jfb
.
recruit
.
service
.
impl
;
import
com.alibaba.cloud.commons.lang.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.jfb.recruit.mapper.RecruitTypeMapper
;
import
com.jfb.recruit.service.RecruitTypeService
;
import
data.recruit.RecruitType
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
*
* @return: 招聘类型管理
* @Author: wml
* @Date 2025/5/9 10:22
*/
@Service
@Transactional
public
class
RecruitTypeServiceImpl
extends
ServiceImpl
<
RecruitTypeMapper
,
RecruitType
>
implements
RecruitTypeService
{
/**
* @description: 获取所有列表
* @author: wangmenglong
**/
@Override
public
List
<
RecruitType
>
listAll
(
RecruitType
recruitType
)
{
//创建查询条件
LambdaQueryWrapper
<
RecruitType
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
like
(
StringUtils
.
isNotBlank
(
recruitType
.
getName
()),
RecruitType:
:
getName
,
recruitType
.
getName
())
.
eq
(
RecruitType:
:
getDel
,
false
)
.
eq
(
StringUtils
.
isNotBlank
(
recruitType
.
getBaseCode
()),
RecruitType:
:
getBaseCode
,
recruitType
.
getBaseCode
())
.
orderByDesc
(
RecruitType:
:
getCreateTime
);
List
<
RecruitType
>
orgList
=
super
.
list
(
qw
);
//返回查询结果
return
orgList
;
}
}
jfb-recruit/src/main/resources/bootstrap.yaml
浏览文件 @
9905f91e
nacos
:
server-addr
:
192.168.0.100:8848
namespace
:
cm_crm
group
:
cm-crm
-group
namespace
:
jy-jfb
group
:
jy-jfb
-group
port
:
8000
profiles
:
active
:
...
...
@@ -25,7 +25,7 @@ spring:
profiles
:
active
:
#必须在application上面
application
:
name
:
cm_crm
name
:
jfb-recruit
#毕竟各个不同的组件都是独立开发的,集成到一起后总会遇到各种惊喜。spring.main.allow-bean-definition-overriding=true就是解决bean重复定义的。设置为true时,后定义的bean会覆盖之前定义的相同名称的bean。
# main:
# allow-bean-definition-overriding: true
...
...
@@ -48,12 +48,7 @@ spring:
file-extension
:
yaml
shared-configs[0]
:
namespace
:
${nacos.namespace}
data-id
:
cm-crm-datasource-config.yaml
group
:
${nacos.group}
refresh
:
true
shared-configs[1]
:
namespace
:
${nacos.namespace}
data-id
:
cm-crm-redis-config.yaml
data-id
:
jfb-recruit-datasource-config.yaml
group
:
${nacos.group}
refresh
:
true
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论