其他分享
首页 > 其他分享> > 工具类

工具类

作者:互联网

    @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;
    }

标签:String,RedPacketGrant,int,redPacketGrant,totalMoney,packetCode,工具
来源: https://blog.csdn.net/qq_42520477/article/details/100187742