scopeid 问题处理
This commit is contained in:
parent
4a1213d429
commit
769d5d3db1
|
|
@ -43,7 +43,7 @@ public class ResourceAgeUpdateCron extends BaseCronJob {
|
||||||
if (nums > 0) {
|
if (nums > 0) {
|
||||||
//更新
|
//更新
|
||||||
rs.executeUpdate("update cus_fielddata set "+ageField+" = ? " +
|
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 {
|
}else {
|
||||||
//插入
|
//插入
|
||||||
rs.executeUpdate("insert into cus_fielddata(scope,scopeid,id,"+ageField+") values(?,?,?,?)","HrmCustomFieldByInfoType",scopeId,e.getId(),age);
|
rs.executeUpdate("insert into cus_fielddata(scope,scopeid,id,"+ageField+") values(?,?,?,?)","HrmCustomFieldByInfoType",scopeId,e.getId(),age);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue