|
@@ -17,6 +17,7 @@ import com.ruoyi.ahrs.postPlanChange.service.IAhrsPostPlanChangeService;
|
|
|
import com.ruoyi.common.enums.FlowTypeEnums;
|
|
|
import com.ruoyi.common.exception.BusinessException;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
+import com.ruoyi.common.utils.bean.BeanUtils;
|
|
|
import com.ruoyi.framework.util.ShiroUtils;
|
|
|
import com.ruoyi.system.domain.SysDept;
|
|
|
import com.ruoyi.system.domain.SysUser;
|
|
@@ -1347,18 +1348,8 @@ public class AhrsPostServiceImpl implements IAhrsPostService {
|
|
|
//如果flag==false 则说明为增员,添加
|
|
|
if (flag == false) {
|
|
|
Personnel personnel = new Personnel();
|
|
|
- personnel.setIdcard(ahrsPostChangeVos.get(i).getIdcard());
|
|
|
- personnel.setDeptId(ahrsPostChangeVos.get(i).getDeptId());
|
|
|
- personnel.setDeptName(ahrsPostChangeVos.get(i).getDeptName());
|
|
|
- personnel.setSonDept(ahrsPostChangeVos.get(i).getSonDept());
|
|
|
- personnel.setName(ahrsPostChangeVos.get(i).getName());
|
|
|
- personnel.setSex(ahrsPostChangeVos.get(i).getSex());
|
|
|
- personnel.setPersonnelStatus(ahrsPostChangeVos.get(i).getPersonnelStatus());
|
|
|
- personnel.setEnterWay(ahrsPostChangeVos.get(i).getEntWayValue());
|
|
|
- personnel.setCurrentPostType(ahrsPostChangeVos.get(i).getNewPostType());
|
|
|
- personnel.setCurrentPostGrades(ahrsPostChangeVos.get(i).getNewPostGrades());
|
|
|
- personnel.setAdditionalPostType(ahrsPostChangeVos.get(i).getNewAdditionalType());
|
|
|
- personnel.setAdditionalPostGrades(ahrsPostChangeVos.get(i).getNewAdditionalGrades());
|
|
|
+ PersonnelLsb personnellsb = personnelLsbMapper.selectPersonnelLsbByIdcard(ahrsPostChangeVos.get(i).getIdcard());
|
|
|
+ BeanUtils.copyProperties(personnellsb, personnel);
|
|
|
list.add(personnel);
|
|
|
}
|
|
|
}
|