|
|
|
@ -43,7 +43,7 @@ public class ResourceAgeUpdateCron extends BaseCronJob {
|
|
|
|
|
if (nums > 0) {
|
|
|
|
|
//更新
|
|
|
|
|
rs.executeUpdate("update cus_fielddata set "+ageField+" = ? " +
|
|
|
|
|
" where id=? and scope = 'HrmCustomFieldByInfoType' and "+scopeId+" = 1",age,e.getId());
|
|
|
|
|
" where id = ? and scope = 'HrmCustomFieldByInfoType' and scopeid = ?",age,e.getId(),scopeId);
|
|
|
|
|
}else {
|
|
|
|
|
//插入
|
|
|
|
|
rs.executeUpdate("insert into cus_fielddata(scope,scopeid,id,"+ageField+") values(?,?,?,?)","HrmCustomFieldByInfoType",scopeId,e.getId(),age);
|
|
|
|
|