|
|
@@ -31,16 +31,13 @@ public class TsbExpirePointJob extends TsbAbstractJob<Collection<Point>, GagaMap
|
|
|
|
|
|
@Override
|
|
|
public GagaMap process(Collection<Point> readItem) throws Exception {
|
|
|
- Point point1 = new Point();
|
|
|
- point1.setUpdNo(TsbConstants.REG_NO);
|
|
|
- pointService.updateCustPointExpire(point1);
|
|
|
-
|
|
|
- for (Point point2 : readItem) {
|
|
|
+ for (Point point : readItem) {
|
|
|
try {
|
|
|
- point2.setRegNo(TsbConstants.REG_NO);
|
|
|
- point2.setUpdNo(TsbConstants.REG_NO);
|
|
|
- point2.setPntAmt(point2.getRmPntAmt()* -1);
|
|
|
- pointService.saveExpirePointHst(point2);
|
|
|
+ point.setRegNo(TsbConstants.REG_NO);
|
|
|
+ point.setUpdNo(TsbConstants.REG_NO);
|
|
|
+ point.setPntAmt(point.getRmPntAmt()* -1);
|
|
|
+ pointService.saveExpirePointHst(point);
|
|
|
+ pointService.updateCustPointExpire(point);
|
|
|
succCnt++;
|
|
|
} catch (Exception e) {
|
|
|
failCnt++;
|