[Y] 修复stuff 提成异常

master
taylor.dang 5 years ago
parent da102239b0
commit 74820c22af

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.1.8</version> <version>1.1.9</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -362,7 +362,10 @@ public class ManageAppServiceImp implements ManageAppService {
JSONObject report = financialBDPrizeRecordMapper.getReport(DateFormatUtils.format(date, "yyyy-MM")); JSONObject report = financialBDPrizeRecordMapper.getReport(DateFormatUtils.format(date, "yyyy-MM"));
if (report != null) { if (report != null) {
totalDetail.putAll(financialBDPrizeLogMapper.findByReportAndBDTotal(report.getString("record_id"), manager.getString("manager_id"))); JSONObject currentBDDetail = financialBDPrizeLogMapper.findByReportAndBDTotal(report.getString("record_id"), manager.getString("manager_id"));
if (currentBDDetail != null) {
totalDetail.putAll(currentBDDetail);
}
} }
return totalDetail; return totalDetail;
} }

@ -3,6 +3,7 @@ package au.com.royalpay.payment.manage.customers.web;
import au.com.royalpay.payment.manage.customers.core.EncourageService; import au.com.royalpay.payment.manage.customers.core.EncourageService;
import au.com.royalpay.payment.tools.CommonConsts; import au.com.royalpay.payment.tools.CommonConsts;
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -30,17 +31,18 @@ public class EncourageMoneyController {
@RequestMapping(value = "/orders/{orderId}", method = RequestMethod.GET) @RequestMapping(value = "/orders/{orderId}", method = RequestMethod.GET)
public JSONObject takeEncourageMoney(@PathVariable String orderId, @ModelAttribute(CommonConsts.WECHATINFO) JSONObject wxUser, public JSONObject takeEncourageMoney(@PathVariable String orderId, @ModelAttribute(CommonConsts.WECHATINFO) JSONObject wxUser,
@ModelAttribute(CommonConsts.ALIUSER) JSONObject aliuser) { @ModelAttribute(CommonConsts.ALIUSER) JSONObject aliuser) {
String user_id = ""; throw new BadRequestException("当前活动暂不支持");
if (wxUser == null) { // String user_id = "";
user_id = aliuser.getString("user_id"); // if (wxUser == null) {
} else { // user_id = aliuser.getString("user_id");
user_id = wxUser.getString("openid"); // } else {
} // user_id = wxUser.getString("openid");
if (StringUtils.isEmpty(user_id)) { // }
return new JSONObject(); // if (StringUtils.isEmpty(user_id)) {
} // return new JSONObject();
return encourageService.takeEncourageMoney(orderId, user_id); // }
// return encourageService.takeEncourageMoney(orderId, user_id);
} }
@RequestMapping(value = "/orders/{orderId}/crit", method = RequestMethod.PUT) @RequestMapping(value = "/orders/{orderId}/crit", method = RequestMethod.PUT)

@ -43,7 +43,7 @@ public class NoticeRefundAuditListener implements ApplicationListener<NewRefundA
if (newRefundAuditEvent.getOperator() != null) { if (newRefundAuditEvent.getOperator() != null) {
audition.put("applyerid", newRefundAuditEvent.getOperator().getString("operator_id")); audition.put("applyerid", newRefundAuditEvent.getOperator().getString("operator_id"));
operatorName = newRefundAuditEvent.getOperator().getString("operator"); operatorName = newRefundAuditEvent.getOperator().getString("operator");
audition.put("applyername", operatorName); audition.put("applyername", StringUtils.defaultString(operatorName, "System"));
} }
String remark = newRefundAuditEvent.getRefundOrder().getString("remark"); String remark = newRefundAuditEvent.getRefundOrder().getString("remark");
audition.put("remark", remark); audition.put("remark", remark);

Loading…
Cancel
Save