|
|
@@ -1454,7 +1454,19 @@ public class SicboSubWs extends WebserviceAbstract {
|
|
|
chargeLog.setFee(moneyCharge);
|
|
|
chargeLog.setChargeTime(new Timestamp(System.currentTimeMillis()));
|
|
|
chargeLog.setMsisdn(msisdn);
|
|
|
- chargeLog.setDescription("Charge");
|
|
|
+// chargeLog.setDescription("Charge");
|
|
|
+ String mTOOL_RUN = MessageResponse.get(Common.Message.TOOL_RUN,logger);
|
|
|
+ Boolean msisdnTool = false;
|
|
|
+ try {
|
|
|
+ msisdnTool = db.getMsisdnTool(msisdn);
|
|
|
+ } catch (Exception e) {
|
|
|
+ }
|
|
|
+ if(mTOOL_RUN.equals("START") && msisdnTool == true){
|
|
|
+ chargeLog.setDescription("Charge tool " + productInfo.getProductName());
|
|
|
+ chargeLog.setAccountId("1");
|
|
|
+ }else{
|
|
|
+ chargeLog.setDescription("Charge");
|
|
|
+ }
|
|
|
chargeLog.setStatus(Common.Constant.CHARGE_STATUS);
|
|
|
db.iInsertChargeLog(chargeLog);
|
|
|
}
|
|
|
@@ -1718,6 +1730,16 @@ public class SicboSubWs extends WebserviceAbstract {
|
|
|
}else{
|
|
|
chargeLog.setDescription("Exchange points to money");
|
|
|
}
|
|
|
+ Boolean msisdnTool = false;
|
|
|
+ String mTOOL_RUN = MessageResponse.get(Common.Message.TOOL_RUN,logger);
|
|
|
+
|
|
|
+ try {
|
|
|
+ msisdnTool = db.getMsisdnTool(msisdn);
|
|
|
+ } catch (Exception e) {
|
|
|
+ }
|
|
|
+ if(mTOOL_RUN.equals("START") && msisdnTool == true){
|
|
|
+ chargeLog.setAccountId("1");
|
|
|
+ }
|
|
|
chargeLog.setStatus(Common.Constant.UNCHARGE_STATUS);
|
|
|
db.iInsertChargeLog(chargeLog);
|
|
|
|