Commit b29efd27 by 涂亚平

新电脑了

1 parent 198c7aa0
...@@ -3,6 +3,7 @@ package com.subsidy.mapper; ...@@ -3,6 +3,7 @@ package com.subsidy.mapper;
import com.subsidy.model.CompanyDictDO; import com.subsidy.model.CompanyDictDO;
import com.subsidy.model.JobDictDO; import com.subsidy.model.JobDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
...@@ -29,10 +30,4 @@ public interface JobDictMapper extends BaseMapper<JobDictDO> { ...@@ -29,10 +30,4 @@ public interface JobDictMapper extends BaseMapper<JobDictDO> {
*/ */
List<JobDictDO> queryMemberJobs(Long memberId); List<JobDictDO> queryMemberJobs(Long memberId);
/**
* 查询岗位
* @param companyId
* @return
*/
List<JobDictDO> queryJobs(Long companyId);
} }
...@@ -44,6 +44,7 @@ import com.subsidy.model.MemberDepartmentMappingDO; ...@@ -44,6 +44,7 @@ import com.subsidy.model.MemberDepartmentMappingDO;
import com.subsidy.model.OprAdmDictDO; import com.subsidy.model.OprAdmDictDO;
import com.subsidy.model.PaperDictDO; import com.subsidy.model.PaperDictDO;
import com.subsidy.model.RoleAdministerMappingDO; import com.subsidy.model.RoleAdministerMappingDO;
import com.subsidy.model.RoleDictDO;
import com.subsidy.model.SignInRecordDO; import com.subsidy.model.SignInRecordDO;
import com.subsidy.model.VodDictDO; import com.subsidy.model.VodDictDO;
import com.subsidy.service.AdministerService; import com.subsidy.service.AdministerService;
...@@ -321,6 +322,11 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis ...@@ -321,6 +322,11 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
}); });
} }
administerPermissionVO.setPermissions(treeList); administerPermissionVO.setPermissions(treeList);
//查询角色
RoleAdministerMappingDO roleAdministerMappingDO = roleAdministerMappingMapper.selectOne(new QueryWrapper<RoleAdministerMappingDO>()
.lambda()
.eq(RoleAdministerMappingDO::getAdministerId,administerDO.getId()));
administerPermissionVO.setRole(roleAdministerMappingDO.getRoleId());
return administerPermissionVO; return administerPermissionVO;
} }
......
...@@ -23,7 +23,19 @@ import java.util.List; ...@@ -23,7 +23,19 @@ import java.util.List;
public class JobDictServiceImpl extends ServiceImpl<JobDictMapper, JobDictDO> implements JobDictService { public class JobDictServiceImpl extends ServiceImpl<JobDictMapper, JobDictDO> implements JobDictService {
public List<JobDictDO> queryJobs(JobDictDO jobDictDO) { 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) { public String deleteJob(JobDictDO jobDictDO) {
......
...@@ -11,7 +11,7 @@ public class AdministerPermissionVO { ...@@ -11,7 +11,7 @@ public class AdministerPermissionVO {
private String userName; private String userName;
private String role; private Long role;
private String img; private String img;
......
...@@ -7,5 +7,4 @@ public class LoginVO { ...@@ -7,5 +7,4 @@ public class LoginVO {
private String token; private String token;
} }
# 环境配置 # 环境配置
spring.profiles.active=dev spring.profiles.active=prod
# 端口号 # 端口号
spring.server.port=23457 spring.server.port=23459
#嵌入tomcat配置 #嵌入tomcat配置
#和CPU数 #和CPU数
spring.server.acceptorThreadCount=600 spring.server.acceptorThreadCount=600
......
...@@ -44,15 +44,4 @@ ...@@ -44,15 +44,4 @@
and t.member_id = #{memberId} and t.member_id = #{memberId}
</select> </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> </mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!