|
|
@ -24,15 +24,15 @@ public class PostionPointsUpdateCron extends BaseCronJob {
|
|
|
|
|
|
|
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
List<PostionPoints> pointsList = new ArrayList<>();
|
|
|
|
List<PostionPoints> pointsList = new ArrayList<>();
|
|
|
|
rs.executeQuery("select id,xm,zwdzlx,rzxzwsxrq,rznx,jftj from uf_yezwjfk");
|
|
|
|
rs.executeQuery("select id,xm,zwdzlx,rbywzwcjqssj,rbywzwcjnx,rbywzwcjljjf from uf_ywzwxx");
|
|
|
|
while (rs.next()) {
|
|
|
|
while (rs.next()) {
|
|
|
|
pointsList.add(PostionPoints.builder()
|
|
|
|
pointsList.add(PostionPoints.builder()
|
|
|
|
.id(Util.getIntValue(rs.getString("id")))
|
|
|
|
.id(Util.getIntValue(rs.getString("id")))
|
|
|
|
.resourceId(Util.getIntValue(rs.getString("xm")))
|
|
|
|
.resourceId(Util.getIntValue(rs.getString("xm")))
|
|
|
|
.changeType(Util.getIntValue(rs.getString("zwdzlx")))
|
|
|
|
.changeType(Util.getIntValue(rs.getString("zwdzlx")))
|
|
|
|
.jobStartDate(Util.null2String(rs.getString("rzxzwsxrq")))
|
|
|
|
.jobStartDate(Util.null2String(rs.getString("rbywzwcjqssj")))
|
|
|
|
.jobYears(Util.null2String(rs.getString("rznx")))
|
|
|
|
.jobYears(Util.null2String(rs.getString("rbywzwcjnx")))
|
|
|
|
.points(Util.getIntValue(rs.getString("jftj"),0))
|
|
|
|
.points(Util.getIntValue(rs.getString("rbywzwcjljjf"),0))
|
|
|
|
.build());
|
|
|
|
.build());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -116,7 +116,7 @@ public class PostionPointsUpdateCron extends BaseCronJob {
|
|
|
|
point.setPoints(point.getPoints() + extraPoints);
|
|
|
|
point.setPoints(point.getPoints() + extraPoints);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
rs.executeUpdate("update uf_yezwjfk set rznx = ?,jftj = ? where id = ?",point.getJobYears(),point.getPoints(),point.getId());
|
|
|
|
rs.executeUpdate("update uf_ywzwxx set rbywzwcjnx = ?,rbywzwcjljjf = ? where id = ?",point.getJobYears(),point.getPoints(),point.getId());
|
|
|
|
} catch (ParseException e) {
|
|
|
|
} catch (ParseException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|