Commit 7ab22bdc by ilal Committed by chenzg

提交

parent 75a7ebfd
...@@ -262,11 +262,17 @@ public class CrmController { ...@@ -262,11 +262,17 @@ public class CrmController {
List<Map<String, Object>> members = new ArrayList<Map<String, Object>>(); List<Map<String, Object>> members = new ArrayList<Map<String, Object>>();
for (CrmBusinessGroupMember crmBusinessGroupManager : crmBusinessGroupMembers) { for (CrmBusinessGroupMember crmBusinessGroupManager : crmBusinessGroupMembers) {
Integer empNum = crmBusinessGroupManager.getEmpNum(); Integer empNum = crmBusinessGroupManager.getEmpNum();
String name = getEmpName(orgCode, empNum);
Map<String, Object> map = new HashMap<String, Object>(); YgglMainEmp emps = YgglMainEmp.builder().build()
map.put("name", name); .selectOne(new QueryWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getEmpNum, empNum)
map.put("empNum", empNum); .eq(YgglMainEmp::getOrgCode, orgCode).select(YgglMainEmp::getName, YgglMainEmp::getHeadUrl));
members.add(map); if(emps != null) {
String name = getEmpName(orgCode, empNum);
Map<String, Object> map = new HashMap<String, Object>();
map.put("name", name);
map.put("empNum", empNum);
members.add(map);
}
} }
crmBusinessGroup.setMembers(members); crmBusinessGroup.setMembers(members);
...@@ -1154,9 +1160,15 @@ public class CrmController { ...@@ -1154,9 +1160,15 @@ public class CrmController {
String name = "未知"; String name = "未知";
if (belonger == 0) if (belonger == 0)
name = "公海客户"; name = "公海客户";
else if (belonger > 0) else if (belonger > 0) {
name = getEmpName(orgCode, belonger); YgglMainEmp emps = YgglMainEmp.builder().build()
.selectOne(new QueryWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getEmpNum, belonger)
.eq(YgglMainEmp::getOrgCode, orgCode).select(YgglMainEmp::getName, YgglMainEmp::getHeadUrl));
if(emps != null) {
name = getEmpName(orgCode, belonger);
}
}
map.put("name", name); map.put("name", name);
map.put("num", num); map.put("num", num);
return map; return map;
......
...@@ -795,9 +795,12 @@ public class AttendanceTaskTiming{ ...@@ -795,9 +795,12 @@ public class AttendanceTaskTiming{
if(summaryid > 0) { if(summaryid > 0) {
summary.setId(summaryid); summary.setId(summaryid);
summary.updateById();
}else {
summary.insert();
} }
summary.insertOrUpdate(); // summary.insertOrUpdate();
} }
} }
......
...@@ -115,7 +115,7 @@ public class RealTimeUpdate{ ...@@ -115,7 +115,7 @@ public class RealTimeUpdate{
List<AdditionalDto> userlist = null; List<AdditionalDto> userlist = null;
if(typeid == 1) {//考勤组 if(typeid == 1) {//考勤组
userlist = kqglassoleavebalancemapper.RealTimeUpdate(org_code,numcode); userlist = kqglassoleavebalancemapper.RealTimeUpdate(org_code,numcode);
}else if(typeid == 2) {//添加员工 }else if(typeid == 2) {//添加员工 离职员工
userlist = kqglassoleavebalancemapper.selectAdditionalByempnum(org_code,numcode); userlist = kqglassoleavebalancemapper.selectAdditionalByempnum(org_code,numcode);
}else if(typeid == 3) { }else if(typeid == 3) {
userlist = userlist_; userlist = userlist_;
......
...@@ -65,6 +65,7 @@ import cn.timer.api.bean.clazz.SysRegion; ...@@ -65,6 +65,7 @@ import cn.timer.api.bean.clazz.SysRegion;
import cn.timer.api.bean.kqmk.KqglAssoLeaveBalance; import cn.timer.api.bean.kqmk.KqglAssoLeaveBalance;
import cn.timer.api.bean.kqmk.KqglAssoLeaveEmployeeBalance; import cn.timer.api.bean.kqmk.KqglAssoLeaveEmployeeBalance;
import cn.timer.api.bean.kqmk.KqglAssoLeaveRules; import cn.timer.api.bean.kqmk.KqglAssoLeaveRules;
import cn.timer.api.bean.kqmk.KqglAssoYhkqz;
import cn.timer.api.bean.qyzx.QyzxEmpEntAsso; import cn.timer.api.bean.qyzx.QyzxEmpEntAsso;
import cn.timer.api.bean.qyzx.QyzxEmpLogin; import cn.timer.api.bean.qyzx.QyzxEmpLogin;
import cn.timer.api.bean.yggl.YgglAttaClfjb; import cn.timer.api.bean.yggl.YgglAttaClfjb;
...@@ -1370,7 +1371,17 @@ public class YgglController { ...@@ -1370,7 +1371,17 @@ public class YgglController {
if (listEEA != null && listEEA.size() > 0) { if (listEEA != null && listEEA.size() > 0) {
QyzxEmpLogin.builder().id(empNum).orgId(CollUtil.getFirst(listEEA).getOrgCode()).build().updateById(); QyzxEmpLogin.builder().id(empNum).orgId(CollUtil.getFirst(listEEA).getOrgCode()).build().updateById();
} }
KqglAssoYhkqz.builder().build().delete(new QueryWrapper<KqglAssoYhkqz>().lambda().eq(KqglAssoYhkqz::getUserid, empNum).eq(KqglAssoYhkqz::getQyid, userBean.getOrgCode()));
try {
realtimeupdate.AttendanceTask(userBean.getOrgCode(), empNum, 2,null);
} catch (ParseException e) {
e.printStackTrace();
}
return ResultUtil.success("确认离职员工成功"); return ResultUtil.success("确认离职员工成功");
} }
......
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