|
|
@ -56,11 +56,18 @@ public class AuditServiceImpl implements AuditService { |
|
|
|
@Transactional |
|
|
|
public int goldedit(Audit audit) throws Exception { |
|
|
|
audit.setAuditTime(new Date()); |
|
|
|
System.out.println("11111111111111111111111111111111111111111111111"); |
|
|
|
System.out.println(audit); |
|
|
|
System.out.println("11111111111111111111111111111111111111111111111"); |
|
|
|
int result = auditMapper.update(audit); |
|
|
|
if (result != 1) { |
|
|
|
throw new Exception("Failed to insert recharge data"); |
|
|
|
throw new Exception("审核失败"); |
|
|
|
} |
|
|
|
|
|
|
|
Integer status = audit.getStatus(); |
|
|
|
System.out.println("11111111111111111111111111111111111111111111111"); |
|
|
|
System.out.println(status); |
|
|
|
System.out.println("11111111111111111111111111111111111111111111111"); |
|
|
|
if(status == 1){ |
|
|
|
String jwcode=audit.getJwcode(); |
|
|
|
System.out.println(jwcode); |
|
|
@ -122,25 +129,25 @@ public class AuditServiceImpl implements AuditService { |
|
|
|
Date createTime = audit.getCreateTime(); |
|
|
|
|
|
|
|
DetailY detailY = new DetailY(); |
|
|
|
// detailY.setJwcode(JwCode); |
|
|
|
// detailY.setActivityId(activityId); |
|
|
|
// detailY.setRechargeCoin(paidGold); |
|
|
|
// detailY.setRechargeWay(Way); |
|
|
|
// detailY.setFreeCoin(freeGold); |
|
|
|
// detailY.setRemark(remark); |
|
|
|
// detailY.setUpdateType(0); |
|
|
|
// detailY.setAdminId(adminId); |
|
|
|
// detailY.setActivityName(activityName); |
|
|
|
// detailY.setArea(area); |
|
|
|
// detailY.setName(name); |
|
|
|
// detailY.setUsername(username); |
|
|
|
// detailY.setOrderCode(uuid); |
|
|
|
// detailY.setStatus(status1); |
|
|
|
// detailY.setReson(reson); |
|
|
|
// detailY.setFlag(flag); |
|
|
|
// detailY.setCreateTime(createTime); |
|
|
|
// detailY.setConsumePlatform("金币系统"); |
|
|
|
// detailY.setAuditTime(audit.getAuditTime()); |
|
|
|
detailY.setJwcode(JwCode); |
|
|
|
detailY.setActivityId(activityId); |
|
|
|
detailY.setRechargeCoin(paidGold); |
|
|
|
detailY.setRechargeWay(Way); |
|
|
|
detailY.setFreeCoin(freeGold); |
|
|
|
detailY.setRemark(remark); |
|
|
|
detailY.setUpdateType(0); |
|
|
|
detailY.setAdminId(adminId); |
|
|
|
detailY.setActivityName(activityName); |
|
|
|
detailY.setArea(area); |
|
|
|
detailY.setName(name); |
|
|
|
detailY.setUsername(username); |
|
|
|
detailY.setOrderCode(uuid); |
|
|
|
detailY.setStatus(status1); |
|
|
|
detailY.setReson(reson); |
|
|
|
detailY.setFlag(flag); |
|
|
|
detailY.setCreateTime(createTime); |
|
|
|
detailY.setConsumePlatform("金币系统"); |
|
|
|
detailY.setAuditTime(audit.getAuditTime()); |
|
|
|
|
|
|
|
// BeanUtils.copyProperties(audit,detailY); |
|
|
|
|
|
|
|