scopeid 问题处理

This commit is contained in:
Chengliang 2024-12-27 19:33:08 +08:00
parent 4a1213d429
commit 769d5d3db1
1 changed files with 1 additions and 1 deletions

View File

@ -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);