Commit 67594341 by leialin

Merge branch 'lal' into 'develop'

修复BUG

See merge request 8timerv2/8timerapiv200!273
parents 2421feda 91672991
......@@ -984,6 +984,9 @@ public class TimeCardController {
lea.setCompany(company);
leas.add(lea);
}
return ResultUtil.data(leas, "操作成功!");
}else {
return ResultUtil.success("请先加入考勤组") ;
}
// List<KqglAssoLeaveRules> balheas = kqglassoleaverulesmapper.selHeaderdata(userBean.getOrgCode(), 2, 1);
......@@ -994,7 +997,7 @@ public class TimeCardController {
// lea.setValue(rul.getName());
// leas.add(lea);
// }
return ResultUtil.data(leas, "操作成功!");
}
/**
......@@ -2565,6 +2568,8 @@ public class TimeCardController {
@ApiOperation(value = "222: 加班类型", httpMethod = "GET", notes = " 查询列表-加班补偿方式")
public Result<Object> overtimetypelist(@CurrentUser UserBean userBean) {
KqglMainKqz attgro = kqglmainkqzmapper.getAttendanceGroupInformationByUserid(userBean.getEmpNum(),userBean.getOrgCode()); //考勤组信息
if(attgro != null) {
List<CompensateDto> coms = new ArrayList<CompensateDto>();
KqglAssoYhkqz yhd = KqglAssoYhkqz.builder().build().selectOne(new QueryWrapper<KqglAssoYhkqz>().lambda().eq(KqglAssoYhkqz::getUserid, userBean.getEmpNum()).eq(KqglAssoYhkqz::getQyid, userBean.getOrgCode()));
......@@ -2595,6 +2600,9 @@ public class TimeCardController {
}
}
return ResultUtil.data(coms, "操作成功!");
}else {
return ResultUtil.success("操作失败,请先加入考勤组");
}
}
......
......@@ -190,7 +190,11 @@ public class RouterUtils {
// 装配 部门人员
if (RELATION_TYPE_DEPARTMENT.equals(listRelations.get(i).getType()) && listRelations.get(i).getDepartmentId() != null) {
List<YgglMainEmp> listYgglMainEmp = selectOtherlistent(Integer.parseInt(obj.get("orgCode",FromData.class).getValue().trim()), Integer.valueOf(listRelations.get(i).getDepartmentId().trim()));
String asd = listRelations.get(i).getDepartmentId();
asd = asd.replaceAll("\\[", "").replaceAll("\\]", "").replaceAll("\\\"", "");
// List<YgglMainEmp> listYgglMainEmp = selectOtherlistent(Integer.parseInt(obj.get("orgCode",FromData.class).getValue().trim()), Integer.valueOf(listRelations.get(i).getDepartmentId().trim()));
List<YgglMainEmp> listYgglMainEmp = selectOtherlistent(Integer.parseInt(obj.get("orgCode").toString()), Integer.valueOf(asd));
if (listYgglMainEmp != null && listYgglMainEmp.size() > 0) {
List<User> listUsers = new ArrayList<User>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment