|
|
@ -323,20 +323,49 @@ public class OutRechargePriceController { |
|
|
|
map.put("sourceId" , id); |
|
|
|
map.put("sourceId" , id); |
|
|
|
map.put("rechargePlatform" , dictionary.getCodeValue()); |
|
|
|
map.put("rechargePlatform" , dictionary.getCodeValue()); |
|
|
|
BsRechargeCode rechargeCode = bsRechargeCodeService.findByMap(map); |
|
|
|
BsRechargeCode rechargeCode = bsRechargeCodeService.findByMap(map); |
|
|
|
|
|
|
|
object.put("rechargePlatformName" , dictionary.getCodeName()); |
|
|
|
|
|
|
|
object.put("rechargePlatform" , dictionary.getCodeValue()); |
|
|
|
if (rechargeCode != null) { |
|
|
|
if (rechargeCode != null) { |
|
|
|
object.put("id" , rechargeCode.getId()); |
|
|
|
object.put("id" , rechargeCode.getId()); |
|
|
|
object.put("rechargePlatformName" , dictionary.getCodeName()); |
|
|
|
|
|
|
|
object.put("rechargePlatform" , rechargeCode.getRechargePlatform()); |
|
|
|
|
|
|
|
object.put("goodsId" , rechargeCode.getGoodsId()); |
|
|
|
object.put("goodsId" , rechargeCode.getGoodsId()); |
|
|
|
|
|
|
|
} |
|
|
|
objectList.add(object); |
|
|
|
objectList.add(object); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(objectList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("HighOrderController --> unionStagingPay() error!", e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(objectList); |
|
|
|
@RequestMapping(value = "/editRechargeCode", method = RequestMethod.POST) |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
@ApiOperation(value = "编辑充值编码") |
|
|
|
|
|
|
|
public ResponseData editRechargeCode(@RequestBody List<BsRechargeCode> objectList, HttpServletRequest request) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SessionObject sessionObject = userCenter.getSessionObject(request); |
|
|
|
|
|
|
|
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (BsRechargeCode rechargeCode : objectList) { |
|
|
|
|
|
|
|
rechargeCode.setOperatorId(userInfoModel.getSecUser().getId()); |
|
|
|
|
|
|
|
rechargeCode.setOperatorName(userInfoModel.getSecUser().getUserName()); |
|
|
|
|
|
|
|
rechargeCode.setStatus(100); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (rechargeCode.getId() == null) { |
|
|
|
|
|
|
|
rechargeCode.setCreateTime(new Date()); |
|
|
|
|
|
|
|
rechargeCode.setUpdateTime(new Date()); |
|
|
|
|
|
|
|
bsRechargeCodeService.insertRechargeCode(rechargeCode); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
rechargeCode.setUpdateTime(new Date()); |
|
|
|
|
|
|
|
bsRechargeCodeService.updateRechargeCode(rechargeCode); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("新增成功"); |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("HighOrderController --> unionStagingPay() error!", e); |
|
|
|
log.error("HighOrderController --> unionStagingPay() error!", e); |
|
|
@ -344,4 +373,5 @@ public class OutRechargePriceController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|