Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b29efd27
authored
Mar 04, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新电脑了
1 parent
198c7aa0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
22 deletions
src/main/java/com/subsidy/mapper/JobDictMapper.java
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
src/main/java/com/subsidy/service/impl/JobDictServiceImpl.java
src/main/java/com/subsidy/vo/administer/AdministerPermissionVO.java
src/main/java/com/subsidy/vo/administer/LoginVO.java
src/main/resources/application.properties
src/main/resources/mapper/JobDictMapper.xml
src/main/java/com/subsidy/mapper/JobDictMapper.java
View file @
b29efd2
...
...
@@ -3,6 +3,7 @@ package com.subsidy.mapper;
import
com.subsidy.model.CompanyDictDO
;
import
com.subsidy.model.JobDictDO
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
...
...
@@ -29,10 +30,4 @@ public interface JobDictMapper extends BaseMapper<JobDictDO> {
*/
List
<
JobDictDO
>
queryMemberJobs
(
Long
memberId
);
/**
* 查询岗位
* @param companyId
* @return
*/
List
<
JobDictDO
>
queryJobs
(
Long
companyId
);
}
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
View file @
b29efd2
...
...
@@ -44,6 +44,7 @@ import com.subsidy.model.MemberDepartmentMappingDO;
import
com.subsidy.model.OprAdmDictDO
;
import
com.subsidy.model.PaperDictDO
;
import
com.subsidy.model.RoleAdministerMappingDO
;
import
com.subsidy.model.RoleDictDO
;
import
com.subsidy.model.SignInRecordDO
;
import
com.subsidy.model.VodDictDO
;
import
com.subsidy.service.AdministerService
;
...
...
@@ -321,6 +322,11 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
});
}
administerPermissionVO
.
setPermissions
(
treeList
);
//查询角色
RoleAdministerMappingDO
roleAdministerMappingDO
=
roleAdministerMappingMapper
.
selectOne
(
new
QueryWrapper
<
RoleAdministerMappingDO
>()
.
lambda
()
.
eq
(
RoleAdministerMappingDO:
:
getAdministerId
,
administerDO
.
getId
()));
administerPermissionVO
.
setRole
(
roleAdministerMappingDO
.
getRoleId
());
return
administerPermissionVO
;
}
...
...
src/main/java/com/subsidy/service/impl/JobDictServiceImpl.java
View file @
b29efd2
...
...
@@ -23,7 +23,19 @@ import java.util.List;
public
class
JobDictServiceImpl
extends
ServiceImpl
<
JobDictMapper
,
JobDictDO
>
implements
JobDictService
{
public
List
<
JobDictDO
>
queryJobs
(
JobDictDO
jobDictDO
)
{
return
this
.
baseMapper
.
queryJobs
(
jobDictDO
.
getId
());
if
(
null
!=
jobDictDO
.
getCompanyId
()){
return
this
.
baseMapper
.
selectList
(
new
QueryWrapper
<
JobDictDO
>()
.
lambda
()
.
eq
(
JobDictDO:
:
getCompanyId
,
jobDictDO
.
getCompanyId
())
.
orderByDesc
(
JobDictDO:
:
getCreateDate
));
}
else
{
return
this
.
baseMapper
.
selectList
(
new
QueryWrapper
<
JobDictDO
>()
.
lambda
()
.
isNull
(
JobDictDO:
:
getCompanyId
)
.
orderByDesc
(
JobDictDO:
:
getCreateDate
));
}
}
public
String
deleteJob
(
JobDictDO
jobDictDO
)
{
...
...
src/main/java/com/subsidy/vo/administer/AdministerPermissionVO.java
View file @
b29efd2
...
...
@@ -11,7 +11,7 @@ public class AdministerPermissionVO {
private
String
userName
;
private
Stri
ng
role
;
private
Lo
ng
role
;
private
String
img
;
...
...
src/main/java/com/subsidy/vo/administer/LoginVO.java
View file @
b29efd2
...
...
@@ -7,5 +7,4 @@ public class LoginVO {
private
String
token
;
}
src/main/resources/application.properties
View file @
b29efd2
# 环境配置
spring.profiles.active
=
dev
spring.profiles.active
=
prod
# 端口号
spring.server.port
=
2345
7
spring.server.port
=
2345
9
#嵌入tomcat配置
#和CPU数
spring.server.acceptorThreadCount
=
600
...
...
src/main/resources/mapper/JobDictMapper.xml
View file @
b29efd2
...
...
@@ -44,15 +44,4 @@
and t.member_id = #{memberId}
</select>
<select
id=
"queryJobs"
parameterType=
"long"
resultType=
"com.subsidy.model.JobDictDO"
>
select * from job_dict t where t.delete_date is null
<if
test=
"companyId != null and companyId != ''"
>
and t.company_id = #{companyId}
</if>
<if
test=
"companyId == null "
>
and t.company_id is null
</if>
order by t.order_no
</select>
</mapper>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment