工具类

    @Autowired
    private VipUserBiz vipUserBiz;
    public String addRed(String redId,String userId, Integer packetSource, String orderCode, int totalNum, int totalMoney, int packetMoney) {
        //int code=SUCCESS;
        List<String>  packetCodeList=redPacketGrantDao.selectPacketCode();
        RedPacketGrant redPacketGrant = new RedPacketGrant();
        redPacketGrant.setId(redId);
        redPacketGrant.setUserId(userId);
        redPacketGrant.setPacketSource(packetSource);
        redPacketGrant.setOrderCode(orderCode);
        redPacketGrant.setTotalMoney(totalMoney);
        redPacketGrant.setTotalNum(totalNum);
        redPacketGrant.setPacketMoney(packetMoney);
        redPacketGrant.setPacketStatus(packet_status1);
        redPacketGrant.setShareDate(new Date());
        String packetCode = vipUserBiz.getCode(8,packetCodeList);
        redPacketGrant.setPacketCode(packetCode);
        redPacketGrantDao.insertSelective(redPacketGrant);
        return packetCode;
    }

上一篇:1538. 卡牌游戏 II


下一篇:vue面试题(四)