提交修改
This commit is contained in:
parent
23c29ad2db
commit
00ed287025
@ -63,12 +63,6 @@ public class TestController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping("/test/relate")
|
@RequestMapping("/test/relate")
|
||||||
public void relate(){
|
public void relate(){
|
||||||
List<DepartmentsStaffRelateEntity> list = departmentsStaffRelateService.selectAll();
|
List<DepartmentsStaffRelateEntity> list = departmentsStaffRelateService.selectAll();
|
||||||
|
|||||||
@ -109,10 +109,6 @@ public class StaffEntity implements Serializable {
|
|||||||
* 工号
|
* 工号
|
||||||
*/
|
*/
|
||||||
private String jobNumber;
|
private String jobNumber;
|
||||||
/**
|
|
||||||
* 是否为领导 不存入staff表中
|
|
||||||
* */
|
|
||||||
private Integer isLeader;
|
|
||||||
|
|
||||||
|
|
||||||
//密码
|
//密码
|
||||||
|
|||||||
@ -34,16 +34,6 @@ public class ResultRecordResp {
|
|||||||
|
|
||||||
private String departmentName;
|
private String departmentName;
|
||||||
|
|
||||||
public String getStatusStr() {
|
private Integer type ;
|
||||||
if (this.status == 0) {
|
|
||||||
return "新建";
|
|
||||||
} else if (this.status == 1) {
|
|
||||||
return "审批中";
|
|
||||||
} else if (this.status == 2) {
|
|
||||||
return "拒绝";
|
|
||||||
} else if (this.status == 3) {
|
|
||||||
return "审批通过";
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,7 +45,7 @@ public class DepartmentsStaffRelateServiceImpl extends ServiceImpl<DepartmentsSt
|
|||||||
DepartmentsStaffRelateEntity departmentsStaffRelateBo = new DepartmentsStaffRelateEntity();
|
DepartmentsStaffRelateEntity departmentsStaffRelateBo = new DepartmentsStaffRelateEntity();
|
||||||
departmentsStaffRelateBo.setDepartmentId(departmentId);
|
departmentsStaffRelateBo.setDepartmentId(departmentId);
|
||||||
departmentsStaffRelateBo.setStaffId(staffId.getId());
|
departmentsStaffRelateBo.setStaffId(staffId.getId());
|
||||||
departmentsStaffRelateBo.setIsLeader(staffId.getIsLeader());
|
//departmentsStaffRelateBo.setIsLeader(staffId.getIsLeader());
|
||||||
departStaffRelateList.add(departmentsStaffRelateBo);
|
departStaffRelateList.add(departmentsStaffRelateBo);
|
||||||
} else /*if (!StringUtil.equals(departmentId, departId))*/ {
|
} else /*if (!StringUtil.equals(departmentId, departId))*/ {
|
||||||
departmentsStaffRelateDao.updateByStaffId(departmentId, staffId);
|
departmentsStaffRelateDao.updateByStaffId(departmentId, staffId);
|
||||||
|
|||||||
@ -344,7 +344,6 @@ public class StaffServiceImpl extends ServiceImpl<StaffDao, StaffEntity> impleme
|
|||||||
staffEntity.setUnionId(staffBo.getUnionId());
|
staffEntity.setUnionId(staffBo.getUnionId());
|
||||||
staffEntity.setAvatar(staffBo.getAvatar());
|
staffEntity.setAvatar(staffBo.getAvatar());
|
||||||
staffEntity.setJobNumber(staffBo.getEmployeeNo());
|
staffEntity.setJobNumber(staffBo.getEmployeeNo());
|
||||||
staffEntity.setIsLeader(staffBo.getIsLeader());
|
|
||||||
return staffEntity;
|
return staffEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,6 @@ public class RecordAuthServiceImpl extends ServiceImpl<RecordAuthMapper, RecordA
|
|||||||
private RecordAuthMapper recordAuthMapper;
|
private RecordAuthMapper recordAuthMapper;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RecordAuth selectRecordAuthById(Long id){
|
public RecordAuth selectRecordAuthById(Long id){
|
||||||
return recordAuthMapper.selectRecordAuthById(id);
|
return recordAuthMapper.selectRecordAuthById(id);
|
||||||
@ -76,7 +75,7 @@ public class RecordAuthServiceImpl extends ServiceImpl<RecordAuthMapper, RecordA
|
|||||||
if (StringUtil.isNotBlank(flowStaffIdRole)) {
|
if (StringUtil.isNotBlank(flowStaffIdRole)) {
|
||||||
List<StaffRoleDto> list = JSONObject.parseArray(flowStaffIdRole, StaffRoleDto.class);
|
List<StaffRoleDto> list = JSONObject.parseArray(flowStaffIdRole, StaffRoleDto.class);
|
||||||
if (CollectionUtils.isNotEmpty(list)) {
|
if (CollectionUtils.isNotEmpty(list)) {
|
||||||
staffEntityMap = list.stream().collect(Collectors.toMap(StaffRoleDto::getStaffId, StaffRoleDto::getRole));
|
staffEntityMap = list.stream().collect(Collectors.toMap(StaffRoleDto::getStaffId, StaffRoleDto::getRoleId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return staffEntityMap;
|
return staffEntityMap;
|
||||||
|
|||||||
@ -124,6 +124,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
departmentStaffIds = new ArrayList<>(setStaffId);
|
departmentStaffIds = new ArrayList<>(setStaffId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(StringUtil.isNotBlank(params.getName())){
|
if(StringUtil.isNotBlank(params.getName())){
|
||||||
List<StaffEntity> staffEntities = staffService.selectByName(params.getName());
|
List<StaffEntity> staffEntities = staffService.selectByName(params.getName());
|
||||||
if(CollectionUtils.isNotEmpty(staffEntities)){
|
if(CollectionUtils.isNotEmpty(staffEntities)){
|
||||||
@ -133,9 +134,8 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
|
|
||||||
params.setDepartmentStaffIds(departmentStaffIds);
|
params.setDepartmentStaffIds(departmentStaffIds);
|
||||||
params.setStaffIds(staffIds);
|
params.setStaffIds(staffIds);
|
||||||
|
|
||||||
PageUtils pageUtils = null;
|
PageUtils pageUtils = null;
|
||||||
if(params.getIsSelf() == 1 ){ // 我的业绩
|
if(params.getIsSelf() == 1){ // 我的业绩
|
||||||
params.setStaffId(user.getUserId());
|
params.setStaffId(user.getUserId());
|
||||||
pageUtils = PageUtils.startPage(params.getPage(), params.getLimit() ).doSelect(
|
pageUtils = PageUtils.startPage(params.getPage(), params.getLimit() ).doSelect(
|
||||||
page -> resultRecordMapper.selectByCondition(page, params)
|
page -> resultRecordMapper.selectByCondition(page, params)
|
||||||
|
|||||||
@ -130,11 +130,11 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
and staff_id = #{req.staffId}
|
||||||
order by id desc
|
order by id desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="selectByConditionTest" resultType="com.lz.modules.sys.entity.app.ResultRecord">
|
<select id="selectByConditionTest" resultType="com.lz.modules.sys.entity.app.ResultRecord">
|
||||||
select * from lz_result_record where is_delete = 0
|
select * from lz_result_record where is_delete = 0
|
||||||
<if test="monthBeginDate != null and monthBeginDate != '' ">
|
<if test="monthBeginDate != null and monthBeginDate != '' ">
|
||||||
|
|||||||
@ -91,7 +91,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectByStaffId" resultType="com.lz.modules.flow.entity.FlowDepartment">
|
<select id="selectByStaffId" resultType="com.lz.modules.flow.entity.FlowDepartment">
|
||||||
select * from lz_flow_department where is_delete = 0 and taff_id = #{staffId} limit 1
|
select * from lz_flow_department where is_delete = 0 and staff_id = #{staffId} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user