Commit 5d436d2e authored by gaoyingwei's avatar gaoyingwei

修改 金币充值

parent 02b09b53
......@@ -92,10 +92,10 @@ public class AppOrderController extends CyPaginationController<CmsOrder> {
@Operation(summary="充值金币", description="充值金币")
@PostMapping(value = "/order/addGold")
public CyResult addGold(@Valid @RequestBody CmsOrder cmsOrder, BindingResult bindingResult) {
CyPersistModel data = cmsOrderServiceImpl.addGold(cmsOrder);
return CyResultGenUtil.builder(data,
CmsOrder data = cmsOrderServiceImpl.addGold(cmsOrder);
return CyResultGenUtil.builder(new CyPersistModel(1),
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
cmsOrder);
data);
}
}
......@@ -134,5 +134,5 @@ public interface CmsOrderService {
* @param cmsOrder
* @return
*/
CyPersistModel addGold(CmsOrder cmsOrder);
CmsOrder addGold(CmsOrder cmsOrder);
}
......@@ -1794,7 +1794,7 @@ public class CmsOrderServiceImpl extends ServiceImpl<CmsOrderRepository,CmsOrder
*/
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public CyPersistModel addGold(CmsOrder cmsOrder){
public CmsOrder addGold(CmsOrder cmsOrder){
//增加操作
int line = 1;
//添加实名判断
......@@ -1833,6 +1833,6 @@ public class CmsOrderServiceImpl extends ServiceImpl<CmsOrderRepository,CmsOrder
orderInfo.setCreateBy(CyUserUtil.getAuthenBusinessId());
orderInfo.setState(0);
cyRedisServiceImpl.set(RedisCons.ORDER_GOLD +":"+ orderInfo.getGoodsId() + ":" + orderId,orderInfo);
return new CyPersistModel(line);
return orderInfo;
}
}
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