Commit 10ea4240 authored by jiaorz's avatar jiaorz

添加积分消息队列接口

parent 7647b2fe
...@@ -58,7 +58,7 @@ public class IntegralUserRecord { ...@@ -58,7 +58,7 @@ public class IntegralUserRecord {
* 获取积分的途径id:如订单id,评论id,签到记录id * 获取积分的途径id:如订单id,评论id,签到记录id
*/ */
@Column(name = "channel_id") @Column(name = "channel_id")
private Integer channelId; private String channelId;
} }
\ No newline at end of file
...@@ -23,7 +23,7 @@ public class IntegralUserRecordDto extends PageParam { ...@@ -23,7 +23,7 @@ public class IntegralUserRecordDto extends PageParam {
/** /**
* 获取积分的途径id:如订单id,评论id,签到记录id * 获取积分的途径id:如订单id,评论id,签到记录id
*/ */
private Integer channelId; private String channelId;
public IntegralUserRecord getIntegralUserRecord() { public IntegralUserRecord getIntegralUserRecord() {
IntegralUserRecord integralUserRecord = new IntegralUserRecord(); IntegralUserRecord integralUserRecord = new IntegralUserRecord();
......
...@@ -138,7 +138,7 @@ public class IntegralSignRecordBiz extends BaseBiz<IntegralSignRecordMapper, Int ...@@ -138,7 +138,7 @@ public class IntegralSignRecordBiz extends BaseBiz<IntegralSignRecordMapper, Int
IntegralUserRecordDto integralUserRecord = new IntegralUserRecordDto(); IntegralUserRecordDto integralUserRecord = new IntegralUserRecordDto();
integralUserRecord.setUserId(appUserDTO.getUserid()); integralUserRecord.setUserId(appUserDTO.getUserid());
integralUserRecord.setType(0); integralUserRecord.setType(0);
integralUserRecord.setChannelId(integralSignRecords.get(0).getId()); integralUserRecord.setChannelId(integralSignRecords.get(0).getId().toString());
integralUserRecord.setIntegralRuleCode(integralRule.getCode()); integralUserRecord.setIntegralRuleCode(integralRule.getCode());
integralUserRecord.setPoint(point); integralUserRecord.setPoint(point);
integralUserRecordBiz.add(integralUserRecord); integralUserRecordBiz.add(integralUserRecord);
......
...@@ -148,7 +148,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper,OrderPay> { ...@@ -148,7 +148,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper,OrderPay> {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("userId", newValue.getUserId()); jsonObject.put("userId", newValue.getUserId());
jsonObject.put("amount", newValue.getAmount()); jsonObject.put("amount", newValue.getAmount());
jsonObject.put("channelId", newValue.getId()); jsonObject.put("channelId", newValue.getOrderNo());
if(newValue.getChannel() == 1) {//租车 if(newValue.getChannel() == 1) {//租车
jsonObject.put("integralRuleCode", "RENTRV"); jsonObject.put("integralRuleCode", "RENTRV");
} else if(newValue.getChannel() == 2) { //旅游 } else if(newValue.getChannel() == 2) { //旅游
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment