人员离职后不关注部门和成本中心
This commit is contained in:
parent
6a705de3f2
commit
bbfd2d8738
|
|
@ -160,7 +160,8 @@ public class PersonControler implements Serializable {
|
||||||
costCenter = QueryServiceHelper.queryOne(ccName,"id,number",new QFilter[]{new QFilter("number","=",fycc)});
|
costCenter = QueryServiceHelper.queryOne(ccName,"id,number",new QFilter[]{new QFilter("number","=",fycc)});
|
||||||
if(costCenter != null){
|
if(costCenter != null){
|
||||||
dataMap.put("shjh_fycc", costCenter.getLong("id"));//设置成本中心ID
|
dataMap.put("shjh_fycc", costCenter.getLong("id"));//设置成本中心ID
|
||||||
}else{
|
}else if("1".equals(json_body.getString("status"))){
|
||||||
|
//如果是离职人员,不管成本中心是否可以找到
|
||||||
log.error(String.format("入参的成本中心编号在金蝶中未找到对应组织:%s", fycc));
|
log.error(String.format("入参的成本中心编号在金蝶中未找到对应组织:%s", fycc));
|
||||||
itemInfo = new JSONObject();
|
itemInfo = new JSONObject();
|
||||||
itemInfo.put("code",number);
|
itemInfo.put("code",number);
|
||||||
|
|
@ -185,7 +186,8 @@ public class PersonControler implements Serializable {
|
||||||
entryentity.put("seq", 1);//职位顺序号 1
|
entryentity.put("seq", 1);//职位顺序号 1
|
||||||
posList.add(entryentity);
|
posList.add(entryentity);
|
||||||
dataMap.put("entryentity", posList);
|
dataMap.put("entryentity", posList);
|
||||||
}else{
|
}else if("1".equals(json_body.getString("status"))){
|
||||||
|
//如果是离职人员,不管部门是否可以找到,因为现在离职人员挂的是老的部门,老的已经关闭的部门没有下发给资金系统
|
||||||
log.error(String.format("入参的部门编号在金蝶中未找到对应组织:%s", deptid));
|
log.error(String.format("入参的部门编号在金蝶中未找到对应组织:%s", deptid));
|
||||||
itemInfo = new JSONObject();
|
itemInfo = new JSONObject();
|
||||||
itemInfo.put("code",number);
|
itemInfo.put("code",number);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue