@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;
}
相关文章
- 10-22异常处理工具类
- 10-22每日学习总结:数组、数组工具类、方法的重载(Day05)
- 10-22cron表达式工具类
- 10-22properties文档读取工具类
- 10-22Android工具类——时间
- 10-22时间工具类
- 10-22时间处理工具类
- 10-22时间处理工具类
- 10-22工具类(一)-日期格式化工具类
- 10-22数组使用:反转、工具类、冒泡排序